CN111917813A - Communication method, device, equipment, system and storage medium - Google Patents

Communication method, device, equipment, system and storage medium Download PDF

Info

Publication number
CN111917813A
CN111917813A CN201910389260.5A CN201910389260A CN111917813A CN 111917813 A CN111917813 A CN 111917813A CN 201910389260 A CN201910389260 A CN 201910389260A CN 111917813 A CN111917813 A CN 111917813A
Authority
CN
China
Prior art keywords
data
receiving end
data receiving
communication
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910389260.5A
Other languages
Chinese (zh)
Inventor
朱玲
俞人杰
华大
孙常龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN201910389260.5A priority Critical patent/CN111917813A/en
Publication of CN111917813A publication Critical patent/CN111917813A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/14Systems for two-way working
    • H04N7/141Systems for two-way working between two video terminals, e.g. videophone
    • H04N7/147Communication arrangements, e.g. identifying the communication as a video-communication, intermediate storage of the signals

Abstract

The embodiment of the application provides a communication method, a communication device, communication equipment, a communication system and a storage medium. In the communication method provided by the embodiment of the application, when the network quality of a data receiving end or a data sending end does not meet the data transmission condition, communication data to be sent to the data receiving end can be cached to obtain cached data; when the network quality of the data receiving end or the data sending end meets the data transmission condition, the real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data can be sent to the data receiving end by adopting the second transmission channel. In the embodiment, the real-time communication data and the cache data are transmitted by adopting two different transmission channels, and further, the communication data which is not successfully transmitted when the network environment is unstable can be transmitted on the premise of not influencing the transmission of the real-time communication data, so that the risk of communication data loss caused by the instability of the network environment is effectively reduced.

Description

Communication method, device, equipment, system and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method, apparatus, device, system, and storage medium.
Background
With the continuous development of network technology, audio and video communication gradually becomes an indispensable communication mode in people's life and work, and great convenience is provided for people's work and life. For example, in operation, people can launch a teleconference by means of audio-video calls; in life, people can communicate with relatives and friends through audio and video calls.
However, when a user encounters a situation where a network environment is unstable, audio and video data generated in an audio and video call process may have a technical problem that the audio and video data cannot be normally received, so that call data is lost. In view of the above, a solution is needed.
Disclosure of Invention
Aspects of the present disclosure provide a communication method, apparatus, device, system, and storage medium for transmitting unsuccessfully transmitted communication data when a network environment is unstable without affecting real-time communication data transmission.
The embodiment of the application provides a communication method, which comprises the following steps: acquiring the network quality of a data receiving end or a data sending end; when the network quality of the data receiving end or the data sending end does not meet the data transmission condition, caching communication data to be sent to the data receiving end to obtain cached data; and when the network quality of the data receiving end or the data sending end meets the data transmission condition, adopting a first transmission channel to send real-time communication data to the data receiving end, and adopting a second transmission channel to send the cache data to the data receiving end.
An embodiment of the present application further provides a communication apparatus, including: the network monitoring module is used for detecting the network quality of a data receiving end or a data sending end; the data caching module is used for caching communication data to be sent to the data receiving end when the network quality of the data receiving end or the data sending end does not meet data transmission conditions, so as to obtain cached data; and the data transmission module is used for sending the real-time communication data to the data receiving end by adopting a first transmission channel and sending the cache data to the data receiving end by adopting a second transmission channel when the network quality of the data receiving end or the data sending end meets the data transmission condition.
An embodiment of the present application further provides a communication device, including: a memory and a processor; the memory is to store one or more computer instructions; the processor is used for executing the one or more computer instructions to execute the communication method provided by the embodiment of the application.
An embodiment of the present application further provides a communication system, including: a data transmitting terminal and a data receiving terminal; wherein the data sending end is configured to: acquiring the network quality of the data receiving end or the data transmitting end; when the network quality of the data receiving end or the data sending end does not meet the data transmission condition, caching communication data to be sent to the data receiving end to obtain cached data; and when the network quality of the data receiving end or the data sending end meets the data transmission condition, adopting a first transmission channel to send real-time communication data to the data receiving end, and adopting a second transmission channel to send the cache data to the data receiving end.
An embodiment of the present application further provides a communication system, including: the system comprises a data sending end, a server and a data receiving end; wherein the data sending end is configured to: sending the communication data to be sent to the data receiving end to the server; the server is configured to: receiving communication data to be sent to the data receiving end, and detecting the network quality of the data receiving end; when the network quality of the data receiving end does not meet the data transmission condition, caching the received communication data to be sent to the data receiving end to obtain cached data; and when the network quality of the data receiving end meets the data transmission condition, sending the received real-time communication data to the data receiving end by adopting a first transmission channel, and sending the cache data to the data receiving end by adopting a second transmission channel.
Embodiments of the present application further provide a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor can implement the communication method provided in the embodiments of the present application.
In the communication method provided by the embodiment of the application, when the network quality of a data receiving end or a data sending end does not meet the data transmission condition, communication data to be sent to the data receiving end can be cached to obtain cached data; when the network quality of the data receiving end or the data sending end meets the data transmission condition, the real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data can be sent to the data receiving end by adopting the second transmission channel. In the embodiment, the real-time communication data and the cache data are transmitted by adopting two different transmission channels, and further, the communication data which is not successfully transmitted when the network environment is unstable can be transmitted on the premise of not influencing the transmission of the real-time communication data, so that the risk of communication data loss caused by the instability of the network environment is effectively reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1a is a schematic structural diagram of a communication system according to an exemplary embodiment of the present application;
fig. 1b is a schematic structural diagram of a communication system according to another exemplary embodiment of the present application;
fig. 2a is a schematic structural diagram of a communication system according to another exemplary embodiment of the present application;
fig. 2b is a schematic structural diagram of a communication system according to another exemplary embodiment of the present application;
fig. 3 is a schematic structural diagram of a communication system provided in an exemplary application scenario example of the present application;
FIG. 4 is a schematic diagram of a communication system provided in another exemplary application scenario example of the present application;
fig. 5 is a flowchart illustrating a communication method according to an exemplary embodiment of the present application;
fig. 6 is a flowchart illustrating a communication method according to another exemplary embodiment of the present application;
fig. 7 is a flowchart illustrating a communication method according to another exemplary embodiment of the present application;
fig. 8 is a schematic structural diagram of a communication device according to an exemplary embodiment of the present application;
fig. 9 is a schematic structural diagram of a communication device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In some embodiments of the present application, a solution is provided, where the solution includes a communication system composed of a data sending end and a data receiving end. Technical solutions provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1a is a schematic structural diagram of a communication system according to an exemplary embodiment of the present application, and as shown in fig. 1a, the communication system 100 includes: a data transmitting end 10a and a data receiving end 10 b.
In the communication system 100, the data transmitting end 10a refers to a device capable of receiving communication data to be transmitted and transmitting the received communication data according to a set communication protocol.
Generally, the data transmitting end 10a has an input device for receiving data input by a user. For example, in some embodiments, the data transmitting end 10a may include an electronic touch screen that may receive input signals from a user to obtain data input by the user. For example, the data transmitting end 10a may be provided with a physical key through which the user can input data. For another example, the data sending end 10a may have a voice input device, which can detect and receive the voice content sent by the user, as the data input by the user, and will not be described in detail.
Under different application scenarios, the data sender 10a may have different implementation forms. For example, in some scenarios, the data transmitting end 10a may be implemented as a mobile phone, a tablet computer, a notebook computer, an intelligent watch, an intelligent bracelet, an interphone, and other portable devices on the user side; in other scenarios, the data transmitting end 10a may be implemented as a stationary device such as a desktop computer, a fixed telephone, a smart speaker, etc., but the embodiment includes but is not limited to this.
In the communication system 100, the data receiving end 10b refers to a device capable of receiving communication data according to a set communication protocol. The data receiving end 10b also has, in general, data output means for outputting the received communication data to the user. For example, in some embodiments, data receiving end 10b may include a display screen that may present the received communication data. For another example, the data receiving end 10b may include an audio component, and the audio component may play the received communication data, which is not described in detail. In some scenarios, the data receiving end 10b may also be implemented as any one of the above-mentioned portable devices, or any one of the above-mentioned fixed devices, and the embodiment is not limited thereto.
In some scenarios, the data sending end 10a and the data receiving end 10b may have the same implementation form, for example, both the data sending end 10a and the data receiving end 10b may be implemented as a mobile phone on the user side; in other scenes, the data sending end 10a and the data receiving end 10b may be implemented in different forms, for example, the data sending end 10a may be implemented as an intelligent speaker placed in the home of the user, and the data receiving end 10b may be implemented as an intelligent watch worn by the user.
It should be understood that data transmission and data reception are relative actions, and therefore, the data transmitting end 10a does not refer to a certain device in the communication system, but refers to a device performing a data transmission action in the communication system; accordingly, the data receiving end 10b refers to an apparatus that performs a data receiving action in the communication system. For example, in a communication system formed by a smart speaker and a smart watch, when the smart speaker transmits data to the smart watch, the smart speaker may be referred to as a data transmitting end, and the smart watch may be referred to as a data receiving end; when the smart watch sends data to the smart sound box, the smart watch can be called a data sending end, and the smart sound box can be called a data receiving end.
In the communication system 100 provided in this embodiment, in some typical scenarios, the data sending end 10a is mainly configured to: acquiring the network quality of the data sending end 10 a; when the network quality of the data sending end 10a does not meet the data transmission condition, caching communication data to be sent to the data receiving end 10b to obtain cached data; when the network quality of the data transmitting end 10a itself meets the data transmission condition, the real-time communication data is transmitted to the data receiving end 10b by using the first transmission channel, and the cache data is transmitted to the data receiving end 10b by using the second transmission channel.
Alternatively, in other typical scenarios, the data sender 10a is mainly configured to: acquiring the network quality of the data receiving end 10 b; when the network quality of the data receiving terminal 10b does not satisfy the data transmission condition, caching communication data to be sent to the data receiving terminal 10b to obtain cached data; when the network quality of the data receiving terminal 10b satisfies the data transmission condition, the real-time communication data is transmitted to the data receiving terminal 10b by using the first transmission channel, and the cache data is transmitted to the data receiving terminal 10b by using the second transmission channel.
The second transmission channel is independent of the first transmission channel, so that the buffer data transmitted in the second transmission channel is prevented from influencing the real-time communication data transmitted in the first transmission channel.
The communication data to be sent to the data receiving end 10b may be data input by the user to the data sending end 10a, or may also be data transmitted by other devices or other processes on the data sending end 10a, which is not limited in this embodiment.
The network quality of the data sending end 10a is used to analyze whether the network performance of the data sending end 10a can ensure that the data can be sent out. The network quality of the data receiving end 10b is used to analyze whether the network performance of the data receiving end 10b can ensure that the data receiving end 10b receives the communication data more completely.
Wherein the network quality may be evaluated using one or more different evaluation factors. In some embodiments, the evaluation factors for evaluating network quality may include, but are not limited to, one or more of a network on-off condition, a network delay condition, network stability, and a network packet loss rate.
Wherein, an evaluation factor can correspond to an evaluation index. For example, the evaluation indexes corresponding to the network on-off condition are as follows: the network is not interrupted; the evaluation indexes corresponding to the network delay condition are as follows: the network delay is less than the set time length threshold. The evaluation indexes corresponding to the network packet loss rate are as follows: and the network packet loss rate is less than the set packet loss rate threshold.
In some exemplary embodiments, a plurality of evaluation factors may be used to evaluate the network quality so as to comprehensively analyze the network performance of the data transmitting end 10a or the data receiving end 10 b. When any one of the plurality of evaluation factors does not satisfy its corresponding evaluation index, it can be considered that the network quality does not satisfy the data transmission condition. When various factors all meet the corresponding evaluation indexes, the network quality can be considered to meet the data transmission condition. The following description will be made with reference to specific examples.
For example, when the evaluation factors corresponding to the network quality are the network on-off condition and the network packet loss rate, if the network of the data receiving end 10b is not interrupted, but the network delay is greater than the set time threshold, it is determined that the network quality of the data receiving end 10b does not satisfy the data transmission condition, and at this time, the communication data to be sent to the data receiving end 10b may be cached. If the network of the data receiving terminal 10b is not interrupted and the network delay is less than the set time threshold, the network quality of the data receiving terminal 10b may be considered to meet the data transmission condition, and at this time, the real-time communication data may be sent to the data receiving terminal 10b by using the first transmission channel, and the cache data may be sent to the data receiving terminal 10b by using the second transmission channel, which is not described again.
In the communication system 100, in order to implement the above-mentioned data interaction process between the data sending end 10a and the data receiving end 10b, the data sending end 10a and the data receiving end 10b may establish a communication connection, and a specific communication connection manner may depend on an actual application scenario.
In some exemplary embodiments, the data transmitting end 10a and the data receiving end 10b may communicate with each other by wireless communication in a wired communication manner. The WIreless communication mode includes short-distance communication modes such as bluetooth, ZigBee, infrared, WiFi (WIreless-Fidelity), long-distance WIreless communication modes such as LORA, and WIreless communication mode based on a mobile network. When the mobile network is connected through communication, the network format of the mobile network may be any one of 2G (gsm), 2.5G (gprs), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G + (LTE +), 5G, WiMax, and the like.
In this embodiment, when the network quality of the data transmitting end or the data receiving end does not satisfy the data transmission condition, the communication data to be transmitted to the data receiving end can be cached to obtain cached data; when the network quality of the data receiving end meets the data transmission condition, the real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data can be sent to the data receiving end by adopting the second transmission channel. In the embodiment, the real-time communication data and the cache data are transmitted by adopting two different transmission channels, and further, the communication data which is not successfully transmitted when the network environment is unstable can be transmitted on the premise of not influencing the transmission of the real-time communication data, so that the risk of communication data loss caused by the instability of the network environment is effectively reduced.
In the above and following examples of the present application, the mutually independent feature between the first transmission channel and the second transmission channel means that the two transmission channels for transmitting the real-time communication data and the buffer data are mutually independent in service logic. The embodiment of the present application can adopt various implementation manners to implement the first transmission channel and the second transmission channel that are independent of each other, and an exemplary description will be given below.
In some exemplary embodiments, the data sender 10a and the data receiver 10b may establish a communication connection through a plurality of pairs of sockets. Wherein each pair of sockets corresponds to one transmission channel. For example, the data transmitting end 10a and the data receiving end 10b may establish a first transmission channel through a first pair of sockets, and establish a second transmission channel through a second pair of sockets.
The socket is a network development interface provided by a transport protocol used by a transport layer, and two programs on the network can exchange data through a communication connection established by the socket.
For example, when the data transmitting end 10a and the data receiving end 10b communicate based on UDP (User Datagram Protocol), the first pair of sockets and the second pair of sockets may be provided by UDP, and based on this, two UDP transmission channels may be obtained.
For another example, when the data transmitting end 10a and the data receiving end 10b communicate based on TCP (Transmission Control Protocol), the first pair of sockets and the second pair of sockets may be provided by TCP, and based on this, two TCP Transmission channels may be obtained.
For another example, when the data transmitting end 10a and the data receiving end 10b communicate based on UDP and TCP, the first pair of sockets may be provided by UDP, and the second pair of sockets may be provided by TCP; alternatively, the first pair of sockets may be provided by TCP and the second pair of sockets may be provided by UDP, based on which one UDP transport channel and one TCP transport channel are available.
In other exemplary embodiments, the data transmitting end 10a and the data receiving end 10b may establish a communication connection using a pair of sockets. Before transmitting the real-time communication data and the buffer data, the data transmitting end 10a may use different headers to respectively encapsulate the real-time communication data and the buffer data, so that the data packets with different headers are independently transmitted on one data channel. After receiving the data packet, the data receiving end 10b may allocate the data packet to a corresponding process according to a difference between the headers of the data packet.
For example, the header of the real-time communication data is H1, and the header of the buffered data is H2. If the real-time communication data is in audio format and the buffer data is in text format, the data receiving end 10b may allocate the received packet with header H1 to the audio playing process and allocate the packet with header H2 to the text displaying process. It should be understood that, in this embodiment, after abstracting the transmission process of the data packet with the header H1 and the data packet with the header H2, the data packet with the header H1 and the data packet with the header H2 can be considered to be transmitted by using two independent transmission channels. The data packet with the header H1 may correspond to the first transmission channel, and the data packet with the header H2 may correspond to the second transmission channel, which is not described again.
The above embodiment describes an implementation that the data sending end 10a in the communication system 100 can send the buffered data to the data receiving end 10b by using the second transmission channel independent from the first transmission channel when the network quality of the data receiving end 10b satisfies the data transmission condition. The sending of the buffered data to the data receiving end 10b by using the second transmission channel may be implemented by different embodiments, and the following exemplary descriptions are provided:
in a typicalEmbodiment mode S1The data sending end 10a may send a prompt message for checking the lost data to the data receiving end 10b by using the second data transmission channel; further, the data receiving end 10b may send a request for checking the missing data according to the prompt message at the direction of the user. Next, the data sending end 10a may respond to the data checking request sent by the data receiving end 10b according to the prompt message, and send the cached data to the data receiving end 10b by using the second data transmission channel.
For example, the data sender 10a may push a text message to the data receiver 10b, where the text message includes: "do you have lost communication data, do you query? When the data receiving end 10b receives the text message, it may present the text message and detect the user's operation on the text message. In some exemplary embodiments, a user may click on a text message presented by data receiving end 10b to issue a request to view a missing text message. The data receiving end 10b may send a data viewing request to the data sending end 10a according to a click operation of the user on the text message.
Further optionally, the data receiving end 10b may display at least one selection control, such as a query time selection control, a query mode selection control, a data format selection control, and the like, which includes but is not limited to this embodiment. The query time selection control can provide a time setting entrance for a user to set when to check the lost data; for example, the user may set to view the missing data immediately, five minutes later, or half an hour later. The query mode selection control can provide a query mode setting entry for a user to set that the lost data is checked by adopting an instant message mode, or the lost data is checked by adopting an e-mail mode, or the lost data is checked by adopting other user-defined modes. The data format selection control is used for providing a data format setting inlet for a user, and the user can select whether to convert the format of the lost data or not through the data format selection control; for example, the user may select to view the missing data in the original format of the audio format, or select to view the missing data in the audio format after converting the missing data in the audio format into the missing data in the text format, and details are not repeated.
In another typeEmbodiment mode S2In the above embodiment, the data sending end 10a may not send the hint message to the data receiving end 10b, but directly send the cache data to the data receiving end 10b by using the second transmission channel in combination with the network quality of the data sending end 10a or the network quality of the data receiving end 10 b. As will be described in detail below.
Optionally, in an embodiment, the data sending end 10a may determine the remaining available bandwidth in the uplink bandwidth of itself according to the network quality of itself. The remaining available bandwidth in the uplink bandwidth refers to a current bandwidth remaining amount in the uplink bandwidth of the data sending end 10a, except for a bandwidth occupied by the first transmission channel for transmitting the real-time communication data and a bandwidth occupied by other network uploading behaviors of the data sending end 10 a.
If the remaining available bandwidth in the uplink bandwidth of the data sending end 10a is greater than or equal to the set bandwidth threshold, the data sending end 10a may directly send the cached data in the original format to the data receiving end 10 b. In this embodiment, the data sender 10a may send the buffered data to the data sender 10b in a timely manner, and the integrity and authenticity of the buffered data is preserved.
If the remaining available bandwidth in the uplink bandwidth of the data sending end 10a is smaller than the set bandwidth threshold, the data sending end 10a may compress the cache data, and send the compressed cache data to the data receiving end 10b by using the second transmission channel. The compression processing of the cache data means that the data volume of the cache data is reduced on the premise that useful information in the cache data is not lost. Based on this embodiment, the data sending end 10a can effectively reduce the bandwidth cost required for transmitting the buffered data, and does not affect the transmission of the real-time communication data on the first transmission channel.
Optionally, in another embodiment, the data sending end 10a may determine the remaining available bandwidth in the downlink bandwidth of the data receiving end 10b according to the network quality of the data receiving end 10 b; the remaining available bandwidth in the downlink bandwidth refers to a current bandwidth remaining amount in the downlink bandwidth of the data receiving end 10b, except for a bandwidth occupied by the first transmission channel for transmitting the real-time communication data and a bandwidth occupied by other network downloading behaviors of the data receiving end 10 b. If the remaining available bandwidth in the downlink bandwidth of the data receiving end 10b is greater than or equal to the set bandwidth threshold, the data sending end 10a may directly send the cached data in the original format to the data receiving end 10 b. In this embodiment, the data sender 10a can send the buffered data to the data receiver 10b in a timely manner, and the integrity and authenticity of the buffered data is preserved.
If the remaining available bandwidth in the downlink bandwidth of the data receiving end 10b is smaller than the set bandwidth threshold, the data sending end 10a may compress the cache data, and send the compressed cache data to the data receiving end 10b by using the second transmission channel. The compression processing of the cache data means that the data volume of the cache data is reduced on the premise that useful information in the cache data is not lost. Based on this embodiment, the data sending end 10a can effectively reduce the bandwidth cost required for transmitting the buffered data, and does not affect the transmission of the real-time communication data on the first transmission channel.
Optionally, in this embodiment, if the original format of the cached data is different, the manner of compressing the cached data is also different. As will be exemplified below.
In an exemplary embodiment, if the cache data contains audio data, the data sending end 10a may perform voice recognition on the audio data, and obtain text data corresponding to the audio data according to a result of the voice recognition. Therefore, the audio data with large data volume can be converted into the text data with small data volume, and the data volume of the cache data is greatly compressed.
Further, semantic recognition can be performed on the text data obtained by the voice recognition conversion, and a content summary can be extracted from the text data based on the result of the semantic recognition. Therefore, the data volume of the cache data can be further compressed, and the key data lost by the user can be pushed to the user in time on the premise of not influencing real-time data transmission.
In other exemplary embodiments, if the buffered data contains image data such as video and pictures, the data sending end 10a may reduce the resolution of the image data to compress the data size of the image data. Alternatively, in such an embodiment, the data transmitting end 10a may provide the data receiving end 10b with a portal for viewing the original image data, and may transmit the original image data to the data receiving end 10b according to a request for viewing the original image data by the data receiving end 10 b. In this embodiment, the data receiving end 10b can quickly display the key information in the lost data to the user based on the received image data with lower resolution in cooperation with the data sending end 10a, and can display the original image data to the user according to the user's requirement, and meanwhile, the efficiency of receiving real-time communication data and the efficiency of checking the lost data by the user are both considered, and the user experience is greatly improved.
It is noted thatEmbodiment mode S1Andembodiment mode S2On the basis of the corresponding embodiments, the data transmitting end 10a may further perform the implementation described in the following embodiments to further compress the data size of the cache data, which will be described in detail below.
In some exemplary embodiments, the data sending end 10a may perform an effective data extraction operation on the cached data before sending the cached data to the data receiving end 10b by using the second transmission channel; then, the extracted valid data is transmitted to the data receiving end 10b through the second transmission channel. The valid data is data including information amount or data having a substantial meaning to both communication parties.
Based thereon, optionally, atEmbodiment mode S1In a corresponding embodiment, the data sending end 10a may extract valid data from the cache data after obtaining the cache data; then, in response to the data viewing request sent by the data receiving end 10b, the extracted valid data is sent to the data receiving end 10b through the second data transmission channel.
Optionally, inEmbodiment mode S2In a corresponding embodiment, the data sending end 10a may extract valid data from the cache data after obtaining the cache data; next, when the remaining available bandwidth in the uplink bandwidth of the data sending end 10a is smaller than the set bandwidth threshold or the remaining available bandwidth in the downlink bandwidth of the data receiving end 10b is smaller than the set bandwidth threshold, the extracted valid data is compressed, and the compressed valid data is sent to the data receiving end 10b through the second data transmission channel.
Generally, the types of the cache data are different, and the extraction operation of the valid data is also different.
In some exemplary embodiments, if the buffered data contains audio data, the data sending end 10a may perform silence detection on the audio data to identify silence data in the audio data; then, the data transmitting end 10a may remove the mute data from the audio data, and obtain the valid data in the audio data. The silence detection may be implemented based on the energy, spectrum or waveform of the audio data including the voice signal, which is not described herein.
In other exemplary embodiments, if the buffered data includes image data such as video and picture, the data sending end 10a may perform feature recognition on the image data to identify useless information in the image data, for example, identify a background portion and a noise portion in the image data; next, the data transmitting end 10a may remove unnecessary information from the image data to obtain valid data in the image data.
As shown in fig. 1b, in some example embodiments, two data buffers may be provided at the data sender 10 a: a receive buffer and a transmit buffer. The receiving buffer is used for storing the received communication data to be sent to the data receiving end 10 b. And the sending buffer area is used for storing effective data extracted from the data stored in the receiving buffer area. Based on this, when the network quality of the data receiving end 10b meets the data transmission condition, the data transmitting end 10a can directly read the valid data from the transmission buffer area, and the second transmission channel is adopted to transmit the read valid data to the data receiving end 10b, so that the efficiency is higher.
Based on the effective data identification implementation provided in the foregoing embodiment, on one hand, the data sending end 10a further compresses the data size of the cache data, and reduces the transmission bandwidth occupied by the second transmission channel; on the other hand, the data sending end 10a screens out valid data from the cached data, and the efficiency of quickly capturing key information from the lost data by the user is greatly improved.
It should be noted that, in the communication system 100 provided in each of the above embodiments, the data transmitting end 10a may communicate with one or more data receiving ends 10 b. When there are multiple data receiving terminals 10b, the data sending terminal 10a may execute the communication method described in the foregoing embodiments for each data receiving terminal 10b, and details are not repeated.
The above embodiments provide a communication system 100 composed of a data transmitting end 10a and a data receiving end 10b, and in alternative embodiments, a communication system 300 composed of a data transmitting end 30a, a server 30b and a data receiving end 30c is also provided. The system architecture shown in fig. 2a will be described in detail below.
In this embodiment, data interaction between the data sender 30a and the data receiver 30c can be implemented by the server 30 b. The server 30b may be implemented as a conventional server, a cloud host, a virtual center, or other devices, which is not limited in this embodiment. The server device mainly includes a processor, a hard disk, a memory, a system bus, and the like, and is similar to a general computer architecture, and is not described in detail.
In the communication system 300, the implementation form of the data transmitting end 30a may refer to the description of the above embodiment about the optional implementation form of the data transmitting end 10 a; for the implementation of the data receiving end 30c, reference is made to the description of the optional implementation of the data receiving end 10b in the above embodiments, and details are not repeated here.
The data sending end 30a is configured to: the communication data to be transmitted to the data receiving terminal 30c is transmitted to the server 30 b. The communication data to be sent to the data receiving end 30c may be data input by the user to the data sending end 30a, or may also be data transmitted by other devices or other processes on the data sending end 30a, which is not limited in this embodiment.
A server 30b for: receiving communication data to be sent to a data receiving end 30c, which is sent by a data sending end 30a, and detecting the network quality of the data receiving end 30 c; when the network quality of the data receiving terminal 30c does not satisfy the data transmission condition, buffering the received communication data to be sent to the data receiving terminal 30c to obtain buffered data; when the network quality of the data receiving terminal 30c satisfies the data transmission condition, the received real-time communication data is transmitted to the data receiving terminal 30c using the first transmission channel, and the cache data is transmitted to the data receiving terminal 30c using the second transmission channel.
In addition to the above execution logic, the server 30b may also execute other method logic that can be executed by the data sending end 10a in the communication system 100, which may specifically refer to the description of the foregoing embodiments and is not described herein again.
Alternatively, when the server 30b executes the logic of the method for the data sender 10a to extract valid data from the buffered data, the receiving buffer and the sending buffer arranged at the data sender 10a shown in fig. 1b may be arranged on the server 10b, as shown in fig. 2 b. When the network quality of the data receiving end 30c does not satisfy the data transmission condition, the server 30b may buffer the received communication data transmitted from the data transmitting end 30a in a receiving buffer. Next, the server 30b may extract valid data from the buffer data stored in the receiving buffer, and store the valid data in the sending buffer. Based on this, when determining that the network quality of the data receiving end 30c meets the data transmission condition, the server 30b may directly read the valid data from the sending buffer, and send the read valid data to the data receiving end 30c by using the second transmission channel, which is more efficient.
The communication system provided by the above embodiments can be applied to various application scenarios, and will be described below with reference to specific examples.
In a typical application scenario, as shown in fig. 3, user a and user B make voice over internet calls via respective handsets. The user A is located in an office and holds the mobile phone Ma; the user B is located on a traveling train and holds the mobile phone Mb.
As shown in fig. 4, the mobile Ma detects the network quality of the mobile Mb in real time. Conversely, the mobile phone Mb also detects the network quality of the mobile phone Ma in real time. When the mobile phone Ma receives the voice signal sent by the user a, whether the mobile phone Mb is disconnected or the situation of high network packet loss rate exists can be judged according to the network quality of the mobile phone Mb.
If the train taken by the user B travels in the signal coverage area of the communication base station, the mobile phone Mb should detect that the network of the mobile phone Mb is in a connected state, and the network packet loss rate is low. At this time, the mobile phone Ma may send the voice signal sent by the user a to the mobile phone Mb in real time to convey the call content of the user a to the user B.
If the train taken by the user B enters a tunnel or a cave at this time, the mobile phone Mb should detect that the signal of the mobile phone Mb is weakened or the signal is interrupted, and the network packet loss rate is high. At this time, the mobile phone Ma may buffer the voice signal sent by the user a in the local receiving buffer.
The mobile phone Ma continues to detect the network quality of the mobile phone Mb in real time. Meanwhile, the mobile phone Ma can perform voice recognition and analysis on the voice data cached in the receiving buffer, and judge whether the voice data is valid. If there is invalid voice data, it is discarded. If the valid voice data exists, the valid voice data is migrated to the local sending buffer area.
If the train taken by the user B runs out of the tunnel or the cave after a period of time and returns to the signal coverage area of the communication base station again, the mobile phone Ma detects that the network of the mobile phone Mb is in a connection state, and the network packet loss rate is low. At this time, if the user a is still speaking to the mobile phone Ma, the mobile phone Ma may send the part of the real-time generated voice data to the mobile phone Mb through the transmission channel C1.
Meanwhile, if the local sending buffer of the mobile phone Ma stores data, the mobile phone Ma can send a voice message loss reminder to the mobile phone Mb through the transmission channel C2 to remind the user of the lost voice message, and ask the user to check the lost voice content in a text format or listen back to the lost voice content in an audio format. If the user selects the text format, the voice data in the transmission buffer is recognized as text data and transmitted to the mobile phone Mb for display through the transmission channel C2. If the user selects the audio format, the voice data in the sending buffer area is directly sent to the mobile phone Mb through the transmission channel C2 for the user to play.
Or, if it is detected that the network of the mobile phone Mb is in a connected state, the network packet loss rate is low, and the local sending buffer stores data, the mobile phone Ma further determines the remaining available bandwidth in the downlink bandwidth of the mobile phone Mb, and if the remaining available bandwidth is large, the voice data in the sending buffer is directly sent to the mobile phone Mb through the transmission channel C2 for the user to play. If the remaining available bandwidth is small, the voice data of the transmission buffer is recognized as text data and transmitted to the mobile phone Mb for presentation via the transmission channel C2.
In addition to the communication systems provided by the above embodiments, the embodiments of the present application also provide a communication method, which will be described below with reference to the accompanying drawings.
Fig. 5 is a flowchart illustrating a communication method according to an exemplary embodiment of the present application, where as shown in fig. 5, the method includes:
step 501, obtaining the network quality of a data receiving end in a communication system.
Step 502, when the network quality of the data receiving end does not satisfy the data transmission condition, caching the received communication data to be sent to the data receiving end to obtain cached data.
Step 503, when the network quality of the data receiving end meets the data transmission condition, sending the received real-time communication data to the data receiving end by using a first transmission channel, and sending the cache data to the data receiving end by using a second transmission channel.
In this embodiment, when the network quality of the data receiving end does not satisfy the data transmission condition, the communication data to be sent to the data receiving end can be cached to obtain cached data; when the network quality of the data receiving end meets the data transmission condition, the received real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data can be sent to the data receiving end by adopting the second transmission channel. In the embodiment, the real-time communication data and the cache data are transmitted by adopting two different transmission channels, and further, the communication data which is not successfully transmitted when the network environment is unstable can be transmitted on the premise of not influencing the transmission of the real-time communication data, so that the risk of communication data loss caused by the instability of the network environment is effectively reduced.
Fig. 6 is a flowchart illustrating a communication method according to another exemplary embodiment of the present application, where as shown in fig. 6, the method includes:
step 601, acquiring the network quality of a data receiving end in the communication system.
Step 602, judging whether the network quality of a data receiving end meets a data transmission condition; if yes, go to step 603; if not, go to step 605.
Step 603, judging whether cache data corresponding to the data receiving end exists or not; if so, go to step 606 and step 607; if not, go to step 604.
Step 604, sending the received communication data to be sent to the data receiving end, and executing step 601.
Step 605, caching the received communication data to be sent to the data receiving end to obtain cached data, and executing step 601.
And 606, sending the received real-time communication data to the data receiving end by adopting a first transmission channel.
Step 607, sending a prompt message for checking the missing data to the data receiving end by using the second data transmission channel.
Step 608, responding to the data viewing request sent by the data receiving end according to the prompt message, and sending the cache data to the data receiving end by using the second data transmission channel.
Step 606 and step 607 are not in sequence, and the above step numbers are only used to distinguish different steps, so as to facilitate description. In practice, step 606 and step 607 may be executed simultaneously, or step 606 may be executed before step 607, and this embodiment is not limited.
Further optionally, the method further comprises: valid data is extracted from the cached data. Based on this, in step 607, the second transmission channel may be adopted to transmit the valid data extracted from the buffered data to the data receiving end.
In some exemplary embodiments, one way to extract valid data from the cached data may include: if the cache data contains audio data, performing silence detection on the audio data to identify silence data in the audio data; and removing the mute data from the audio data to obtain the effective data.
In this embodiment, when the network quality of the data receiving end does not satisfy the data transmission condition, the communication data to be sent to the data receiving end can be cached to obtain cached data; when the network quality of the data receiving end meets the data transmission condition, the received real-time communication data can be sent to the data receiving end by adopting a first transmission channel, and a prompt message for checking the lost data can be sent to the data receiving end; and when the data receiving end requests to check the lost data, the second transmission channel is adopted to send the cache data to the data receiving end. In the implementation mode, on the premise of fully considering the subjective intention of the user, two different transmission channels are adopted to transmit the real-time communication data and the buffer data, so that the risk of communication data loss caused by unstable network environment is effectively reduced.
Fig. 7 is a flowchart illustrating a communication method according to another exemplary embodiment of the present application, where as shown in fig. 7, the method includes:
step 701, obtaining the network quality of a data receiving end in the communication system.
Step 702, judging whether the network quality of a data receiving end meets a data transmission condition; if yes, go to step 703; if not, go to step 705.
Step 703, judging whether cache data corresponding to the data receiving end already exists; if so, go to step 706 and step 707; if not, go to step 704.
Step 704, sending the received communication data to be sent to the data receiving end, and executing step 701.
Step 705, buffering the received communication data to be sent to the data receiving end to obtain buffered data, and executing step 701.
Step 706, the received real-time communication data is sent to the data receiving end by using the first transmission channel.
Step 707, determining the remaining available bandwidth in the downlink bandwidth of the data receiving end according to the network quality of the data receiving end.
Step 708, determining whether the remaining available bandwidth is less than a set bandwidth threshold; if yes, go to step 709; if not, go to step 710.
And 709, compressing the cache data, and sending the compressed cache data to the data receiving end by using the second transmission channel.
And step 710, directly sending the buffered data to the data receiving end by using the second transmission channel.
Step 706 and step 707 do not have a sequential order, and the above step numbers are only used to distinguish different steps for convenience of description. In practice, step 706 and step 707 may be executed simultaneously, or step 707 may be executed before step 706, and this embodiment is not limited.
In some exemplary embodiments, one way to compress the cached data may include: if the cache data contains audio data, performing voice recognition on the audio data; and acquiring text data corresponding to the audio data according to the result of the voice recognition.
Further optionally, the method further comprises: valid data is extracted from the cached data.
Optionally, this step may be performed before step 709, i.e.: before the cache data is compressed, effective data is extracted from the cache data in advance, the extracted effective data is compressed, and then the compressed effective data is sent to the data receiving end by adopting the second transmission channel.
Optionally, this step may be performed before step 710, i.e.: before the second transmission channel is adopted to directly send the cache data to the data receiving end, effective data is extracted from the cache data in advance, and then the extracted effective data is sent to the data receiving end by adopting the second transmission channel.
In some exemplary embodiments, one way to extract valid data from the cached data may include: if the cache data contains audio data, performing silence detection on the audio data to identify silence data in the audio data; and removing the mute data from the audio data to obtain the effective data.
In this embodiment, when the network quality of the data receiving end does not satisfy the data transmission condition, the communication data to be sent to the data receiving end can be cached to obtain cached data; when the network quality of the data receiving end meets the data transmission condition, the received real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data or the cache data after compression processing is directly sent to the data receiving end by adopting the second transmission channel according to the residual available bandwidth of the data receiving end. In the implementation mode, the downlink bandwidth capability of the data receiving end is fully considered, the influence on the transmission of real-time communication data can be avoided as much as possible while the user can check the lost data in time, and the smooth operation of the real-time communication process is favorably ensured.
In the embodiments corresponding to fig. 5, fig. 6, and fig. 7, an alternative implementation of detecting the network quality of the data receiving end and executing the communication method provided in the embodiments of the present application according to the network quality of the receiving end is described. It should be noted that the communication method described in each of the above embodiments may also be executed in conjunction with the network quality of the data transmitting end. For example, when the network quality of the data sending end does not meet the data transmission condition, the communication data to be sent to the data receiving end is cached to obtain cached data; when the network quality of the data sending end meets the data transmission condition, according to the method described in the above embodiments, the real-time communication data is sent to the data receiving end by using the first transmission channel, and the cache data is sent to the data receiving end by using the second transmission channel, which is not described herein again.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of step 201 to step 204 may be device a; for another example, the execution subject of steps 201 and 202 may be device a, and the execution subject of step 203 may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, etc., are merely used for distinguishing different operations, and the sequence numbers do not represent any execution order per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
An embodiment of the present application further provides a communication apparatus, as shown in fig. 8, the apparatus includes: a network monitoring module 801, a data caching module 802 and a data transmission module 803.
The network monitoring module 801 is configured to detect network quality of a data receiving end or a data sending end.
The data caching module 802 is configured to cache the communication data to be sent to the data receiving end when the network quality of the data receiving end or the data sending end does not satisfy the data transmission condition, so as to obtain cached data.
A data transmission module 803, configured to send real-time communication data to the data receiving end by using a first transmission channel and send the cache data to the data receiving end by using a second transmission channel when the network quality of the data receiving end or the data sending end meets the data transmission condition.
Further optionally, when the data transmission module 803 uses the second transmission channel to send the cached data to the data receiving end, it is specifically configured to: sending a prompt message for checking lost data to the data receiving end by adopting the second data transmission channel; and responding to a data viewing request sent by the data receiving end according to the prompt message, and sending the cache data to the data receiving end by adopting the second data transmission channel.
Further optionally, when the data transmission module 803 uses the second transmission channel to send the cached data to the data receiving end, it is specifically configured to: determining the residual available bandwidth in the downlink bandwidth of the data receiving end according to the network quality of the data receiving end; if the residual available bandwidth is smaller than the set bandwidth threshold, compressing the cache data; and sending the compressed cache data to the data receiving end by adopting the second transmission channel.
Further optionally, when the data transmission module 803 compresses the cached data, it is specifically configured to: if the cache data contains audio data, performing voice recognition on the audio data; and acquiring text data corresponding to the audio data according to the result of the voice recognition.
Further optionally, the apparatus further comprises a pre-processing module 804; the preprocessing module 804 is specifically configured to: extracting valid data from the cache data; correspondingly, when the data transmission module 803 uses the second transmission channel to send the cached data to the data receiving end, it is specifically configured to: and sending the effective data extracted from the cache data to the data receiving end by adopting the second transmission channel.
Further optionally, when the preprocessing module 804 extracts valid data from the cache data, it is specifically configured to: if the cache data contains audio data, performing silence detection on the audio data to identify silence data in the audio data; and removing the mute data from the audio data to obtain the effective data.
In this embodiment, when the network quality of the data receiving end or the data transmitting end does not satisfy the data transmission condition, the communication device may cache the communication data to be transmitted to the data receiving end to obtain cached data; when the network quality of the data receiving end or the data sending end meets the data transmission condition, the real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data can be sent to the data receiving end by adopting the second transmission channel. In the embodiment, the real-time communication data and the cache data are transmitted by adopting two different transmission channels, and further, the communication data which is not successfully transmitted when the network environment is unstable can be transmitted on the premise of not influencing the transmission of the real-time communication data, so that the risk of communication data loss caused by the instability of the network environment is effectively reduced.
Fig. 9 is a schematic structural diagram of a communication device according to an exemplary embodiment of the present application, where the communication device may be implemented as the data sending end 10a in the communication system 100 or the server 30b in the communication system 300 according to the foregoing embodiment. As shown in fig. 9, the communication apparatus includes: memory 901, processor 902, and communications component 903.
A memory 901 for storing computer programs and may be configured to store other various data to support operations on the communication device. Examples of such data include instructions for any application or method operating on the communication device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 901 may be implemented by any type or combination of volatile and non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 902, coupled to the memory 901, for executing the computer program in the memory 901 for: acquiring the network quality of a data receiving end or a data transmitting end through a communication component 903; when the network quality of the data receiving end or the data sending end does not meet the data transmission condition, caching the communication data to be sent to the data receiving end to obtain cached data; when the network quality of the data receiving end or the data transmitting end meets the data transmission condition, the communication component 903 is used for transmitting real-time communication data to the data receiving end by adopting a first transmission channel, and transmitting the cache data to the data receiving end by adopting a second transmission channel.
Further optionally, when the processor 902 uses the second transmission channel to send the buffered data to the data receiving end, it is specifically configured to: sending a prompt message for checking lost data to the data receiving end by adopting the second data transmission channel; and responding to a data viewing request sent by the data receiving end according to the prompt message, and sending the cache data to the data receiving end by adopting the second data transmission channel.
Further optionally, when the processor 902 uses the second transmission channel to send the buffered data to the data receiving end, it is specifically configured to: determining the residual available bandwidth in the downlink bandwidth of the data receiving end according to the network quality of the data receiving end; if the residual available bandwidth is smaller than the set bandwidth threshold, compressing the cache data; and sending the compressed cache data to the data receiving end by adopting the second transmission channel.
Further optionally, when the processor 902 performs compression processing on the cache data, the processor is specifically configured to: if the cache data contains audio data, performing voice recognition on the audio data; and acquiring text data corresponding to the audio data according to the result of the voice recognition.
Further optionally, the processor 902 is further configured to: extracting valid data from the cache data; accordingly, when the processor 902 uses the second transmission channel to send the buffered data to the data receiving end, it is specifically configured to: and sending the effective data extracted from the cache data to the data receiving end by adopting the second transmission channel.
Further optionally, when the processor 902 extracts valid data from the cache data, it is specifically configured to: if the cache data contains audio data, performing silence detection on the audio data to identify silence data in the audio data; and removing the mute data from the audio data to obtain the effective data.
Further, as shown in fig. 9, the communication apparatus further includes: a display 904, a power component 905, an audio component 906, and the like. Only some of the components are schematically shown in fig. 9, and it is not meant that the communication device comprises only the components shown in fig. 9.
Wherein the communication component 903 is configured to facilitate wired or wireless communication between the device in which the communication component is located and other devices. The device in which the communication component is located may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component may be implemented based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The display 904 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP), among others. If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The power supply 905 provides power to various components of the device in which the power supply is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
In this embodiment, when the network quality of the data receiving end or the data transmitting end does not satisfy the data transmission condition, the communication device may cache the communication data to be transmitted to the data receiving end to obtain cached data; when the network quality of the data receiving end or the data sending end meets the data transmission condition, the real-time communication data can be sent to the data receiving end by adopting the first transmission channel, and the cache data can be sent to the data receiving end by adopting the second transmission channel. In the embodiment, the real-time communication data and the cache data are transmitted by adopting two different transmission channels, and further, the communication data which is not successfully transmitted when the network environment is unstable can be transmitted on the premise of not influencing the transmission of the real-time communication data, so that the risk of communication data loss caused by the instability of the network environment is effectively reduced.
Accordingly, the present application further provides a computer readable storage medium storing a computer program, which when executed by a processor enables the processor to implement the steps that can be executed by the communication device in the above method embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (11)

1. A method of communication, comprising:
acquiring the network quality of a data receiving end or a data sending end;
when the network quality of the data receiving end or the data sending end does not meet the data transmission condition, caching communication data to be sent to the data receiving end to obtain cached data;
and when the network quality of the data receiving end or the data sending end meets the data transmission condition, adopting a first transmission channel to send real-time communication data to the data receiving end, and adopting a second transmission channel to send the cache data to the data receiving end.
2. The method of claim 1, wherein sending the buffered data to the data sink using a second transmission channel comprises:
sending a prompt message for checking lost data to the data receiving end by adopting the second data transmission channel;
and responding to a data viewing request sent by the data receiving end according to the prompt message, and sending the cache data to the data receiving end by adopting the second data transmission channel.
3. The method of claim 1, wherein sending the buffered data to the data sink using a second transmission channel comprises:
determining the residual available bandwidth in the downlink bandwidth of the data receiving end according to the network quality of the data receiving end;
if the residual available bandwidth is smaller than a set bandwidth threshold, compressing the cache data;
and sending the compressed cache data to the data receiving end by adopting the second transmission channel.
4. The method of claim 3, wherein compressing the buffered data comprises:
if the cache data contains audio data, performing voice recognition on the audio data;
and acquiring text data corresponding to the audio data according to the result of the voice recognition.
5. The method according to any one of claims 1-4, further comprising:
extracting valid data from the cache data;
adopting a second transmission channel to send the cache data to the data receiving end, including:
and sending the effective data extracted from the cache data to the data receiving end by adopting the second transmission channel.
6. The method of claim 5, wherein extracting valid data from the cached data comprises:
if the cache data contains audio data, performing silence detection on the audio data to identify silence data in the audio data;
and removing the mute data from the audio data to obtain the effective data.
7. A communications apparatus, comprising:
the network monitoring module is used for detecting the network quality of a data receiving end or a data sending end;
the data caching module is used for caching communication data to be sent to the data receiving end when the network quality of the data receiving end or the data sending end does not meet data transmission conditions, so as to obtain cached data;
and the data transmission module is used for sending the real-time communication data to the data receiving end by adopting a first transmission channel and sending the cache data to the data receiving end by adopting a second transmission channel when the network quality of the data receiving end or the data sending end meets the data transmission condition.
8. A communication device, comprising: a memory and a processor;
the memory is to store one or more computer instructions;
the processor is configured to execute the one or more computer instructions for performing the communication method of any of claims 1-6.
9. A communication system, comprising: a data transmitting terminal and a data receiving terminal;
wherein the data sending end is configured to: acquiring the network quality of the data receiving end or the data transmitting end; when the network quality of the data receiving end or the data sending end does not meet the data transmission condition, caching communication data to be sent to the data receiving end to obtain cached data; and when the network quality of the data receiving end or the data sending end meets the data transmission condition, adopting a first transmission channel to send real-time communication data to the data receiving end, and adopting a second transmission channel to send the cache data to the data receiving end.
10. A communication system, comprising: the system comprises a data sending end, a server and a data receiving end;
wherein the data sending end is configured to: sending the communication data to be sent to the data receiving end to the server;
the server is configured to: receiving communication data to be sent to the data receiving end, and detecting the network quality of the data receiving end; when the network quality of the data receiving end does not meet the data transmission condition, caching the received communication data to be sent to the data receiving end to obtain cached data; and when the network quality of the data receiving end meets the data transmission condition, sending the received real-time communication data to the data receiving end by adopting a first transmission channel, and sending the cache data to the data receiving end by adopting a second transmission channel.
11. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, enables the processor to implement the communication method according to any one of claims 1 to 6.
CN201910389260.5A 2019-05-10 2019-05-10 Communication method, device, equipment, system and storage medium Pending CN111917813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910389260.5A CN111917813A (en) 2019-05-10 2019-05-10 Communication method, device, equipment, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910389260.5A CN111917813A (en) 2019-05-10 2019-05-10 Communication method, device, equipment, system and storage medium

Publications (1)

Publication Number Publication Date
CN111917813A true CN111917813A (en) 2020-11-10

Family

ID=73242670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910389260.5A Pending CN111917813A (en) 2019-05-10 2019-05-10 Communication method, device, equipment, system and storage medium

Country Status (1)

Country Link
CN (1) CN111917813A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112512016A (en) * 2021-02-05 2021-03-16 智道网联科技(北京)有限公司 Data transmission method, device and system based on intelligent traffic and storage medium
CN116567720A (en) * 2023-07-10 2023-08-08 北京采立播科技有限公司 Communication method of virtual reality interaction based on wireless network
WO2023236020A1 (en) * 2022-06-06 2023-12-14 北京小米移动软件有限公司 Data requesting method and apparatus, request receiving method and apparatus, communication apparatus and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112512016A (en) * 2021-02-05 2021-03-16 智道网联科技(北京)有限公司 Data transmission method, device and system based on intelligent traffic and storage medium
WO2023236020A1 (en) * 2022-06-06 2023-12-14 北京小米移动软件有限公司 Data requesting method and apparatus, request receiving method and apparatus, communication apparatus and storage medium
CN116567720A (en) * 2023-07-10 2023-08-08 北京采立播科技有限公司 Communication method of virtual reality interaction based on wireless network
CN116567720B (en) * 2023-07-10 2023-09-22 北京采立播科技有限公司 Communication method of virtual reality interaction based on wireless network

Similar Documents

Publication Publication Date Title
CN107229402B (en) Dynamic screen capturing method and device of terminal and readable storage medium
CN106789562B (en) Virtual article sending method, virtual article receiving method, virtual article sending device, virtual article receiving device and virtual article sending system
CN111917813A (en) Communication method, device, equipment, system and storage medium
US9100200B2 (en) Video augmented text chatting
CN103166941A (en) Data sharing method and device
CN107274882B (en) Data transmission method and device
CN108900855B (en) Live content recording method and device, computer readable storage medium and server
CN112423076B (en) Audio screen-throwing synchronous control method, equipment and computer readable storage medium
CN113395477B (en) Sharing method and device based on video conference, electronic equipment and computer medium
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN112202939A (en) Method, device and storage medium for compressing and decompressing IP address and transmitting and receiving message
CN109196936A (en) A kind of resource allocation indicating method and device, base station and terminal
CN113141520B (en) Video stream transmission method and device, electronic equipment and storage medium
US20220311700A1 (en) Method for multiplexing http channels and terminal
CN107318129B (en) Data processing method and device and terminal
US9485458B2 (en) Data processing method and device
JP5508605B1 (en) COMMUNICATION CONTROL SYSTEM, COMMUNICATION CONTROL METHOD, COMMUNICATION CONTROL PROGRAM, TERMINAL, AND TERMINAL PROGRAM
US20140337038A1 (en) Method, application, and device for audio signal transmission
CN114126032A (en) Information synchronization method, intelligent terminal and storage medium
CN110034858B (en) Data packet retransmission method and device, mobile terminal and storage medium
CN110798700B (en) Video processing method, video processing device, storage medium and electronic equipment
CN114125397A (en) Audio and video communication method, device and system
CN110278402B (en) Dual-channel audio processing method and device and computer readable storage medium
CN109714734B (en) DMR system, wireless communication method and device of DMR and terminal equipment
CN112929706A (en) Video data playback method, device, storage medium, and electronic device

Legal Events

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