Audio and video data transmission method, vehicle computer, intelligent terminal and storage medium

By using Bluetooth wireless connection and RS encoding technology in audio and video data transmission, audio and video data packets are transmitted separately, which solves the packet loss problem caused by the UDP protocol, achieves efficient and reliable transmission of audio and video data, and reduces costs.

CN115086921BActive Publication Date: 2024-10-11BYD CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202110264349.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-11
Publication Date
2024-10-11
Estimated Expiration
2041-03-11

AI Technical Summary

Technical Problem

In existing audio and video data transmission methods, the use of UDP protocol results in low reliability of data transmission, frequent packet loss, and cannot guarantee the normal transmission of audio and video data.

Method used

Using Bluetooth wireless connection, the audio and video data packets are divided into initial data packets and verification data packets through RS encoding. The UDP protocol is used to transmit the initial data packet and the verification data packet is transmitted through Bluetooth. If the data packet is lost, the audio and video data packets are transmitted according to the audio and video The data packet and check data packet are decoded by RS to recover the initial data packet.

Benefits of technology

It improves the reliability and efficiency of data transmission, reduces the success rate of packet loss recovery, ensures the efficiency and reliability of audio and video data, while reducing costs and avoiding the need for additional connection equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115086921B_ABST
    Figure CN115086921B_ABST
Patent Text Reader

Abstract

The present invention discloses an audio and video data transmission method, a vehicle computer, an intelligent terminal and a storage medium, wherein the audio and video data transmission method comprises: a receiving end receives an audio and video data packet; an audio and video data packet refers to a data packet containing a first quantity of data received by the receiving end after the sending end sends an initial data packet containing the initial quantity of data through the UDP protocol; the receiving end receives a verification data packet obtained by RS encoding the initial data packet transmitted by the sending end through Bluetooth; when confirming that the initial data packet is lost, if the sum of the first quantity and the second quantity is greater than or equal to a preset quantity threshold, the receiving end performs RS decoding to recover the initial data packet. The present invention improves the success rate of recovering the initial data packet that has been lost, and at the same time ensures the reliability, real-time nature and transmission efficiency of data transmission between the vehicle computer and the intelligent terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to an audio and video data transmission method, a vehicle computer, an intelligent terminal and a storage medium. Background Art

[0002] At present, due to the rapid development of car computers and smart terminals (such as mobile phones, etc.), the audio and video transmission scenarios between smart terminals and car computers (such as screen projection and other application scenarios) are becoming more and more. In the audio and video data transmission method in the prior art, it is usually necessary to open a hotspot on the smart terminal and connect the car computer to the hotspot of the smart terminal, so that the smart terminal and the car computer are in the same local area network, and then use TCP (Transmission Control Protocol) or UDP (User Datagram Protocol, User Datagram Protocol, which is characterized by connectionless, unreliable, and fast transmission) protocol to realize the transmission of audio and video data between the car computer and the smart terminal to ensure the real-time transmission of audio and video data. The shortcoming of this solution is that the data transmission reliability of the UDP protocol used to ensure the real-time transmission of audio and video data is not strong, and packet loss often occurs, so the normal transmission of audio and video data cannot be guaranteed. Summary of the invention

[0003] Based on this, it is necessary to provide an audio and video data transmission method, vehicle computer, intelligent terminal and storage medium to address the above technical problems, so as to solve the problem of low reliability of data transmission using the UDP protocol.

[0004] An audio and video data transmission method is applied to a receiving end, wherein the receiving end is one of a vehicle computer and an intelligent terminal that are communicatively connected in the same local area network, and the vehicle computer and the intelligent terminal are wirelessly connected via Bluetooth;

[0005] The audio and video data transmission method comprises:

[0006] Receiving an audio and video data packet; the audio and video data packet refers to a data packet containing a first amount of data received by a receiving end after a sending end sends an initial data packet containing an initial amount of data through a UDP protocol in a local area network; the sending end refers to one of the vehicle computer and the smart terminal other than the receiving end;

[0007] Receiving a verification data packet transmitted by a transmitting end via Bluetooth; the verification data packet includes a second amount of verification data obtained after RS ​​encoding the initial data packet;

[0008] When it is confirmed that the initial data packet sent by the sender is lost, if the sum of the first number and the second number is greater than a preset number threshold, the initial data packet is restored after RS ​​decoding is performed based on the audio and video data packet and the check data packet.

[0009] An audio and video data transmission method is applied to a sending end, wherein the sending end is one of a vehicle computer and an intelligent terminal that are communicatively connected in the same local area network, and the vehicle computer and the intelligent terminal are wirelessly connected via Bluetooth;

[0010] The audio and video data transmission method comprises:

[0011] Storing an initial data packet to be sent in a preset sending buffer; the initial data packet includes an initial amount of data;

[0012] Performing RS encoding on the initial data packet in the preset sending buffer area to obtain a verification data packet, wherein the verification data packet includes a second amount of verification data;

[0013] The initial data packet is sent to the receiving end via the UDP protocol in the local area network, and the verification data packet is sent to the receiving end via Bluetooth, so that after the receiving end receives the data packet containing the first quantity data, if the receiving end confirms that the initial data packet sent by the sending end is lost, and the sum of the first quantity and the second quantity is greater than a preset quantity threshold, the initial data packet is restored after decoding the audio and video data packet and the verification data packet; wherein the receiving end refers to one of the vehicle computer and the smart terminal other than the receiving end.

[0014] A vehicle computer, which is communicatively connected to an intelligent terminal in the same local area network, and the vehicle computer and the intelligent terminal are wirelessly connected via Bluetooth; when the vehicle computer serves as a receiving end, it is used to execute the audio and video data transmission method applied to the receiving end; when the vehicle computer serves as a sending end, it is used to execute the audio and video data transmission method applied to the sending end.

[0015] A smart terminal is communicatively connected to a vehicle computer in the same local area network, and the smart terminal and the vehicle computer are wirelessly connected via Bluetooth; when the smart terminal acts as a receiving end, it is used to execute the audio and video data transmission method applied to the receiving end; when the smart terminal acts as a sending end, it is used to execute the audio and video data transmission method applied to the sending end.

[0016] One or more readable storage media storing computer-readable instructions, wherein the readable storage media are arranged in the vehicle computer or the smart terminal; when the vehicle computer or the smart terminal acts as a receiving end, the computer-readable instructions are executed by one or more processors, so that the one or more processors execute the audio and video data transmission method applied to the receiving end; when the vehicle computer or the smart terminal acts as a transmitting end, the computer-readable instructions are executed by one or more processors, so that the one or more processors execute the audio and video data transmission method applied to the transmitting end.

[0017] The above-mentioned audio and video data transmission method, vehicle computer, intelligent terminal and storage medium, in the audio and video data transmission method, the vehicle computer and the intelligent terminal in the same local area network are connected wirelessly via Bluetooth; the receiving end (the receiving end is one of the vehicle computer and the intelligent terminal) receives the audio and video data packet; the audio and video data packet refers to the data packet containing the first quantity data received by the receiving end after the sending end (the sending end refers to the one of the vehicle computer and the intelligent terminal other than the receiving end) sends the initial data packet containing the initial quantity data via the UDP protocol in the local area network; the receiving end receives the verification data packet transmitted by the sending end via Bluetooth; the verification data packet contains the second quantity verification data obtained after RS ​​encoding the initial data packet; when it is confirmed that the initial data packet sent by the sending end is lost, if the sum of the first quantity and the second quantity is greater than the preset quantity threshold, the receiving end restores the initial data packet after RS ​​decoding according to the audio and video data packet and the verification data packet.

[0018] The present invention uses the UDP protocol to transmit the initial data packet containing a large amount of data to ensure the real-time and efficiency of data transmission; at the same time, the verification data packet containing a small amount of data is transmitted wirelessly via Bluetooth (Bluetooth can provide reliable transmission, and the verification data packet transmitted via Bluetooth will not be lost, which can ensure that the receiving end receives the complete verification data packet) to improve the success rate of packet loss recovery for the initial data packet that has been lost, thereby further improving the data transmission efficiency and ensuring the efficiency and reliability of data (audio and video data) transmission. At the same time, since the current car machine and mobile terminal themselves are equipped with a Bluetooth transmission channel for multimedia interaction, there is no need to set up an additional connection device between the two. Bluetooth connection can be achieved by reusing the above-mentioned Bluetooth transmission channel, which reduces costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0020] Figure 1 It is a flowchart of an audio and video data transmission method in one embodiment of the present invention.

[0021] Figure 2 It is a flowchart of an audio and video data transmission method in another embodiment of the present invention.

[0022] Figure 3 It is a flowchart of an audio and video data transmission method in yet another embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] In one embodiment, a method for transmitting audio and video data is provided, which is applied to a receiving end, wherein the receiving end is one of a vehicle computer and a smart terminal that are connected in communication in the same local area network, and the vehicle computer and the smart terminal are connected wirelessly via Bluetooth; wherein the smart terminal includes but is not limited to various smart phones, tablet computers, and portable wearable devices. A vehicle computer refers to the abbreviation of an in-vehicle infotainment product installed in a car, and the vehicle computer and the smart terminal are connected in communication. Figure 1 As shown, the audio and video data transmission method includes:

[0025] S10, receiving audio and video data packets; the audio and video data packets refer to data packets containing a first quantity of data received by the receiving end after the sending end sends an initial data packet containing an initial quantity of data through the UDP protocol in the local area network (wherein the first quantity of data received by the audio and video data packet is data that is not lost during the transmission of the initial data packet; therefore, the initial quantity is greater than or equal to the first quantity); the sending end refers to one of the vehicle computer and the intelligent terminal other than the receiving end; that is, the initial data packet contains an initial quantity of audio and video data, and the initial data packet is quickly transmitted from the sending end to the receiving end through the UDP protocol. Due to the unreliable characteristics of the UDP protocol, the initial data packet is likely to be lost during the transmission process. At this time, if the initial data packet is not lost during the transmission process, the first quantity of audio and video data contained in the audio and video data packet received by the receiving end is equal to the initial quantity; and if the initial data packet is lost during the transmission process, at this time, due to the loss of part of the data, the first quantity of audio and video data contained in the audio and video data packet received by the receiving end will be less than the initial quantity. It can be understood that in the present invention, the amount of audio and video data in the initial data packet is relatively large (including audio and video that need to be played). Therefore, the sending end sends the initial data packet to the receiving end through the UDP protocol, which can ensure the real-time and efficiency of data transmission.

[0026] S20, receiving a verification data packet transmitted by the transmitting end via Bluetooth; the verification data packet contains a second number of verification data obtained after RS ​​(Reed-Solomon) encoding of the initial data packet; the initial number is greater than the second number; RS encoding is a coding technology used in FEC (Forward Error Correction, FEC adds redundant information of the initial data packet, i.e., the verification data packet, during network transmission, so that the receiving end can directly recover the lost data packet using the redundant information after the initial data packet is lost during transmission in the local area network), and the verification data packet can be obtained after the initial data packet is RS encoded; that is, in the present invention, the verification data packet exists so that when the initial data packet is lost subsequently, RS decoding can be performed based on the verification data packet, thereby realizing recovery of the lost data packet through FEC technology. In the present invention, the verification data packet is obtained through RS encoding, and the verification data packet obtained after RS ​​encoding contains very little data (that is, a verification data packet with a small amount of data, which is only redundant information data for verification). At this time, since the verification data packet containing a small amount of data is transmitted wirelessly via Bluetooth, the transmission speed and efficiency of Bluetooth transmission will not be affected due to the small amount of data transmitted. On this basis, Bluetooth transmission also has high reliability. Therefore, there will be no packet loss when transmitting the verification data packet via Bluetooth, which can ensure that the receiving end receives the complete verification data packet. At the same time, since the current vehicle machine and mobile terminal themselves are equipped with a Bluetooth transmission channel for multimedia interaction, there is no need to set up additional connection equipment between the two. Bluetooth connection can be achieved by reusing the above-mentioned Bluetooth transmission channel, which reduces costs.

[0027] S30, when it is confirmed that the initial data packet sent by the transmitting end is lost, if the sum of the first number and the second number is greater than the preset number threshold, after RS ​​decoding is performed on the audio and video data packet and the verification data packet, the initial data packet is restored. Wherein, the preset number threshold is the minimum amount of data required in the RS decoding process, and the data amount (that is, the preset number threshold) can be determined according to the actual RS decoding calculation process. It can be understood that the preset number threshold can be less than or greater than the initial number. In this embodiment, since the amount of data of the verification data packet transmitted wirelessly via Bluetooth is small, it does not affect the transmission speed and efficiency of Bluetooth transmission. On this basis, Bluetooth transmission also has high reliability. Therefore, the verification data packet transmitted via Bluetooth will not be lost, and the receiving end can be guaranteed to receive a complete verification data packet. In this way, when the FEC technology is used to recover the lost packet (that is, after RS ​​decoding is performed on the audio and video data packet and the verification data packet, the initial data packet is restored), the success rate of the packet loss recovery of the initial data packet that has been lost can be improved (no data loss in Bluetooth transmission), thereby further improving the data transmission efficiency and ensuring the efficiency and reliability of data (audio and video data) transmission.

[0028] Specifically, the initial data packet transmitted contains an initial number of audio and video data, and after the initial data packet is RS decoded, a verification data packet containing a second number of verification data is obtained. At this time, the number of audio and video data plus verification data in the initial data packet is: the initial number plus the second number; therefore, the conditions for recovering packet loss through FEC technology are as follows: when the initial data packet is lost, as long as the sum of the first number and the second number of data in the audio and video data packet received by the receiving end is greater than the preset number threshold, packet loss recovery can be achieved through FEC technology. For example, there are three audio and video data a, b, and c in the initial data packet. After RS ​​encoding, the verification data packet obtained contains two verification data d and e. At this time, the audio and video data in the initial data packet plus the verification data have a total of five data: a, b, c, d, and e. Assuming that the preset number threshold is 2, at this time, when the initial data packet is lost, as long as the lost data is less than or equal to 2, packet loss recovery can be achieved through FEC technology. Since the verification data packet transmitted via Bluetooth has a small amount of data, and Bluetooth is a reliable transmission and is suitable for small-volume data transmission, therefore, in the present invention, the verification data packet is transmitted via Bluetooth (the verification data packet has a small amount of data), and the receiving end can ensure that the second number of verification data in the verification data packet is completely received. At this time, only a small amount of audio and video data with a large amount of data needs to be received through the UDP protocol to restore the complete initial data packet. Therefore, the above-mentioned transmission process of the present invention can simultaneously ensure transmission efficiency and reliability.

[0029] Understandably, if Figure 2As shown, after step S30, the following further includes:

[0030] S40, playing audio and video according to the recovered initial data packet. That is, after recovering the lost initial data packet, the receiving end can start playing audio and video in real time according to the recovered initial data packet, and the audio and video playback will be smooth and the playback quality can be guaranteed.

[0031] The present invention uses the UDP protocol to transmit the initial data packet containing a large amount of data to ensure the real-time and efficiency of data transmission; at the same time, the verification data packet containing a small amount of data is transmitted wirelessly via Bluetooth (Bluetooth can provide reliable transmission, and the verification data packet transmitted via Bluetooth will not be lost, which can ensure that the receiving end receives the complete verification data packet) to improve the success rate of packet loss recovery for the initial data packet that has been lost, thereby further improving the data transmission efficiency and ensuring the efficiency and reliability of data (audio and video data) transmission. At the same time, since the current car machine and mobile terminal themselves are equipped with a Bluetooth transmission channel for multimedia interaction, there is no need to set up an additional connection device between the two. Bluetooth connection can be achieved by reusing the above-mentioned Bluetooth transmission channel, which reduces costs.

[0032] In one embodiment, the step S10, i.e., receiving the audio and video data packet, includes:

[0033] After the receiving end receives the audio and video data packets transmitted by the sending end through the UDP protocol in the local area network, the audio and video data packets are stored in a preset receiving buffer area; the audio and video data packets are retrieved from the preset receiving buffer area through the decoding thread, and the first number of data contained in the audio and video data packets is obtained. In this embodiment, the received audio and video data packets will first be temporarily stored in the receiving buffer area of ​​the receiving end to ensure its storage and retrieval speed and improve processing efficiency. Among them, the decoding thread is a thread in which the receiving end performs comprehensive processing on all data sent by the sending end, including retrieving audio and video data and verification data, or subsequent RS decoding, etc., all of which are executed through an independent decoding thread, so as to avoid interference with other multimedia interactive functions and improve processing speed. It can be understood that each audio and video data packet stored in the receiving buffer area has a first unique identifier corresponding to the initial data packet, and the first unique identifier corresponding to it can be determined according to the number of the initial data packet.

[0034] Furthermore, after receiving the verification data packet transmitted by the transmitting end via Bluetooth, the method further includes:

[0035] The verification data packet is stored in a preset verification buffer area. In this embodiment, after the receiving end receives the verification data packet transmitted by the sending end via Bluetooth, the received verification data packet will first be temporarily stored in the verification buffer area of ​​the receiving end to ensure its storage and retrieval speed and improve processing efficiency. It is understandable that each verification data packet stored in the verification buffer area also has a second unique identifier corresponding to the initial data packet. Therefore, the second unique identifier corresponding to the initial data packet can be determined according to the number of the initial data packet. At the same time, there is also a one-to-one correspondence between the second unique identifier and the first unique identifier, that is, according to a first unique identifier, the second unique identifier corresponding to it can be determined. All of the above numbers or unique identifiers can be composed of letters, numbers, symbols, etc. as required.

[0036] In one embodiment, in step S30, the step of confirming that the initial data packet sent by the sending end is lost includes:

[0037] Determine whether the first number is equal to the initial number; specifically, after determining whether the first number is equal to the initial number, include: when the first number is equal to the initial number, confirm that the initial data packet sent by the sender has not been lost; that is, when the first number is equal to the initial number, it means that the audio and video data packet is still a complete initial data packet, and it is confirmed that the initial data packet has not been lost. After RS ​​decoding of the audio and video data packet retrieved from the preset receiving buffer area by the decoding thread, play the audio and video according to the decoded audio and video data packet. That is, when the audio and video data packet is a complete initial data packet, the received audio and video data packet can be directly played at this time to obtain the best playback effect.

[0038] When the first number is less than or equal to the initial number, it is confirmed that the initial data packet sent by the sender is lost; when the first number is less than or equal to the initial number, it means that the audio and video data packet is no longer a complete initial data packet, and it is confirmed that the initial data packet is lost.

[0039] In one embodiment, in the step S30, if the sum of the first number and the second number is greater than a preset number threshold, before performing RS decoding according to the audio and video data packet and the check data packet, the method further includes:

[0040] The verification data packet corresponding to the initial data packet is determined from the preset verification buffer area by the decoding thread, and the second number of verification data contained in the verification data packet is obtained to determine whether the sum of the first number and the second number is greater than the preset number threshold. In this embodiment, firstly, it is determined whether the initial data packet is lost during the transmission through the UDP protocol by judging whether the first number and the initial number are equal. After the packet loss is determined, the verification data packet corresponding to the initial data packet can be determined from the preset verification buffer area by the decoding thread according to the one-to-one correspondence between the first unique identifier and the second unique identifier, and then the second number is determined. Thereafter, according to the relationship between the first number, the second data and the preset number threshold, it is determined whether the initial data packet that has been lost can be restored by the FEC technology. Specifically, if the sum of the first number and the second number is greater than the preset number threshold, the receiving end restores the initial data packet after RS ​​decoding according to the audio and video data packet and the verification data packet; the receiving end plays the audio and video according to the restored initial data packet.

[0041] Furthermore, after determining whether the sum of the first number and the second number is greater than the preset number threshold, it also includes: if the sum of the first number and the second number is less than or equal to the preset number threshold, sending an automatic retransmission request for the initial data packet to the sending end. That is, in this embodiment, if it is confirmed that the initial data packet sent by the sending end is lost, and the sum of the first number and the second number is less than or equal to the preset number threshold, the receiving end cannot recover the lost initial data packet by performing RS decoding on the audio and video data packet and the verification data packet. Therefore, at this time, an automatic retransmission request is sent to the sending end to request the sending end to retransmit the lost initial data packet.

[0042] In another embodiment, if it is confirmed that the initial data packet sent by the sending end is lost, and the sum of the first number and the second number is less than or equal to a preset number threshold, although the receiving end cannot recover the lost initial data packet by RS decoding based on the audio and video data packet and the verification data packet, after RS ​​decoding based on the above-mentioned audio and video data packet and the verification data packet, the audio and video with certain playback defects (such as screen distortion, ghosting, etc.) can be restored. At this time, in order to ensure transmission efficiency and speed, the automatic retransmission request is no longer sent to the sending end, but the receiving end directly performs RS decoding based on the audio and video data packet and the verification data packet. After that, the receiving end plays the audio and video according to the decoded data after RS ​​decoding; alternatively, the receiving end can also directly play the audio and video according to the received audio and video data packet.

[0043] The present invention also provides an audio and video data transmission method, which is applied to a sending end, wherein the sending end is one of a vehicle computer and a smart terminal that are communicatively connected in the same local area network, and the vehicle computer and the smart terminal are wirelessly connected via Bluetooth; wherein the smart terminal includes but is not limited to various smart phones, tablet computers, and portable wearable devices. A vehicle computer refers to the abbreviation of an in-vehicle infotainment product installed in a car, and the vehicle computer and the smart terminal are communicatively connected. Figure 3 As shown, the audio and video data transmission method includes:

[0044] S50, storing the initial data packet to be sent in a preset sending buffer; the initial data packet contains an initial amount of data; in this embodiment, the initial data packet to be sent will first be temporarily stored in the sending buffer of the sending end to ensure its storage and retrieval speed and improve processing efficiency. Among them, the initial data packet contains an initial amount of audio and video data, and the amount of audio and video data in the initial data packet is relatively large.

[0045] S60, RS encoding is performed on the initial data packet in the preset sending buffer area to obtain a verification data packet, and the verification data packet contains a second amount of verification data; the initial amount is greater than the second amount; in the present invention, the verification data packet exists so that when a subsequent initial data packet is lost, RS decoding can be performed based on the verification data packet, thereby realizing recovery of lost packets through FEC technology. In the present invention, the verification data packet is obtained through RS encoding, and the verification data packet obtained after RS ​​encoding contains very little data (that is, a verification data packet with a small amount of data, which is only redundant information data for verification).

[0046] S70, sending the initial data packet to the receiving end through the UDP protocol in the local area network, and sending the verification data packet to the receiving end through Bluetooth, so that after the receiving end receives the data packet containing the first quantity data, if the receiving end confirms that the initial data packet sent by the sending end is lost, and the sum of the first quantity and the second quantity is greater than the preset quantity threshold, then recover the initial data packet after decoding the audio and video data packet and the verification data packet (in one embodiment, after recovering the initial data packet, the audio and video are played according to the initial data packet recovered by decoding); wherein, the initial quantity is greater than or equal to the first quantity; the receiving end refers to one of the vehicle computer and the smart terminal other than the receiving end.

[0047] It can be understood that in the present invention, the amount of audio and video data in the initial data packet is relatively large (including audio and video that need to be played). Therefore, the sending end sends the initial data packet to the receiving end through the UDP protocol, which can ensure the real-time and efficiency of data transmission; however, due to the unreliable characteristics of the UDP protocol, the initial data packet is likely to be lost during the transmission process. At this time, if the initial data packet is not lost during the transmission process, the first number of audio and video data contained in the audio and video data packet received by the receiving end is equal to the initial number; and if the initial data packet is lost during the transmission process, at this time, due to the loss of part of the data, the first number of audio and video data contained in the audio and video data packet received by the receiving end will be less than the initial number.

[0048] The verification data packet containing a small amount of data transmitted by Bluetooth wireless transmission does not affect the transmission speed and efficiency of Bluetooth transmission due to the small amount of data transmitted. On this basis, Bluetooth transmission also has high reliability. Therefore, the verification data packet transmitted by Bluetooth will not be lost, and the receiving end can be guaranteed to receive the complete verification data packet. Therefore, in the present invention, the verification data packet (the data amount of the verification data packet is small) is transmitted by Bluetooth, and the receiving end can ensure that the second number of verification data in the verification data packet is completely received. At this time, it is only necessary to receive a small amount of audio and video data with a large amount of data through the UDP protocol to restore the complete initial data packet. Therefore, when the FEC technology is used to restore the lost packet (that is, after RS ​​decoding according to the audio and video data packet and the verification data packet, the initial data packet is restored), the success rate of the lost packet recovery of the initial data packet that has been lost can be improved (Bluetooth transmission does not lose data), thereby further improving the data transmission efficiency and ensuring the high efficiency and reliability of data (audio and video data) transmission; that is, the above-mentioned transmission process of the present invention can simultaneously ensure transmission efficiency and reliability.

[0049] The present invention uses the UDP protocol to transmit the initial data packet containing a large amount of data to ensure the real-time and efficiency of data transmission; at the same time, the verification data packet containing a small amount of data is transmitted wirelessly via Bluetooth (Bluetooth can provide reliable transmission, and the verification data packet transmitted via Bluetooth will not be lost, which can ensure that the receiving end receives the complete verification data packet) to improve the success rate of packet loss recovery for the initial data packet that has been lost, thereby further improving the data transmission efficiency and ensuring the efficiency and reliability of data (audio and video data) transmission. At the same time, since the current car machine and mobile terminal themselves are equipped with a Bluetooth transmission channel for multimedia interaction, there is no need to set up an additional connection device between the two. Bluetooth connection can be achieved by reusing the above-mentioned Bluetooth transmission channel, which reduces costs.

[0050] In one embodiment, after step S70, that is, after sending the initial data packet to the receiving end via the UDP protocol in the local area network and sending the verification data packet to the receiving end via Bluetooth, the following further includes:

[0051] The sending end receives the automatic retransmission request of the initial data packet sent by the receiving end, and sends the initial data packet to the receiving end again through the UDP protocol in the local area network; the automatic retransmission request is generated by the receiving end after confirming that the initial data packet sent by the sending end is lost, and the sum of the first number and the second number is less than or equal to the preset number threshold. That is, in this embodiment, if it is confirmed that the initial data packet sent by the sending end is lost, and the sum of the first number and the second number is less than or equal to the preset number threshold, the receiving end cannot recover the lost initial data packet by RS decoding according to the audio and video data packet and the verification data packet. Therefore, at this time, the sending end receives the automatic retransmission request sent by the receiving end, so the sending end will implement packet loss retransmission, that is, the sending end retransmits the lost initial data packet to the receiving end (the verification data packet has been received and wirelessly resent).

[0052] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0053] The present invention also provides a vehicle computer, which is communicatively connected to an intelligent terminal in the same local area network, and the vehicle computer and the intelligent terminal are wirelessly connected via Bluetooth; when the vehicle computer serves as a receiving end, it is used to execute the audio and video data transmission method applied to the receiving end; when the vehicle computer serves as a sending end, it is used to execute the audio and video data transmission method applied to the sending end.

[0054] For the specific limitations of the vehicle computer, please refer to the limitations of the audio and video data transmission method corresponding to the receiving end or the transmitting end respectively in the above text, which will not be repeated here. Each module in the above vehicle computer can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor of the vehicle computer in the form of hardware, or can be stored in the memory of the vehicle computer in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0055] The present invention also provides an intelligent terminal, which is communicatively connected to a vehicle computer in the same local area network, and the intelligent terminal and the vehicle computer are wirelessly connected via Bluetooth; when the intelligent terminal acts as a receiving end, it is used to execute the audio and video data transmission method applied to the receiving end; when the intelligent terminal acts as a sending end, it is used to execute the audio and video data transmission method applied to the sending end.

[0056] For the specific definition of the smart terminal, please refer to the definition of the audio and video data transmission method corresponding to the receiving end or the sending end respectively in the above text, which will not be repeated here. Each module in the above-mentioned smart terminal can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the smart terminal in the form of hardware, or can be stored in the memory of the smart terminal in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0057] The present invention also provides one or more readable storage media storing computer-readable instructions, and the readable storage media are arranged in the vehicle computer or the smart terminal; the readable storage media provided in this embodiment include non-volatile readable storage media and volatile readable storage media. When the vehicle computer or the smart terminal acts as a receiving end, when the computer-readable instructions are executed by one or more processors, the one or more processors execute the audio and video data transmission method applied to the receiving end; when the vehicle computer or the smart terminal acts as a sending end, when the computer-readable instructions are executed by one or more processors, the one or more processors execute the audio and video data transmission method applied to the sending end.

[0058] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0059] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.

[0060] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for transmitting audio and video data, characterized in that: Applied to a receiving end, the receiving end is one of a vehicle computer and a smart terminal that are communicatively connected in the same local area network, and the vehicle computer and the smart terminal are wirelessly connected via Bluetooth; The audio and video data transmission method comprises: Receiving an audio and video data packet; the audio and video data packet refers to a data packet containing a first amount of data received by a receiving end after a sending end sends an initial data packet containing an initial amount of data through a UDP protocol in a local area network; the sending end refers to one of the vehicle computer and the smart terminal other than the receiving end; Receiving a verification data packet transmitted by a transmitting end via Bluetooth; the verification data packet includes a second amount of verification data obtained after RS ​​encoding the initial data packet; When it is confirmed that the initial data packet sent by the sender is lost, if the sum of the first number and the second number is greater than a preset number threshold, the initial data packet is restored after RS ​​decoding is performed based on the audio and video data packet and the check data packet.

2. The method for transmitting audio and video data according to claim 1, characterized in that: The receiving of audio and video data packets comprises: After receiving the audio and video data packets transmitted by the sending end through the UDP protocol in the local area network, the receiving end stores the audio and video data packets in a preset receiving buffer area; Retrieving the audio and video data packet from the preset receiving buffer area through a decoding thread, and obtaining a first amount of data included in the audio and video data packet; After receiving the verification data packet transmitted by the transmitting end via Bluetooth, the method further includes: The verification data packet is stored in a preset verification buffer area.

3. The method for transmitting audio and video data according to claim 2, wherein: The confirming that the initial data packet sent by the sending end is lost includes: determining whether the first quantity is equal to the initial quantity; When the first number is less than or equal to the initial number, confirming that the initial data packet sent by the sending end is lost; If the sum of the first number and the second number is greater than a preset number threshold, before performing RS decoding according to the audio and video data packet and the check data packet, the method further includes: A verification data packet corresponding to the initial data packet is determined from the preset verification buffer area by a decoding thread, and a second quantity of verification data contained in the verification data packet is obtained to determine whether the sum of the first quantity and the second quantity is greater than a preset quantity threshold.

4. The method for transmitting audio and video data according to claim 3, characterized in that: After determining whether the first quantity is equal to the initial quantity, the method further comprises: When the first number is equal to the initial number, confirming that no packet loss occurs to the initial data packet sent by the sending end; After RS ​​decoding is performed on the audio and video data packets retrieved from the preset receiving buffer area through a decoding thread, audio and video are played according to the decoded audio and video data packets.

5. The method for transmitting audio and video data according to claim 3, characterized in that: After determining whether the sum of the first number and the second number is greater than a preset number threshold, the method further includes: If the sum of the first number and the second number is less than or equal to a preset number threshold, an automatic retransmission request for the initial data packet is sent to the sending end.

6. A method for transmitting audio and video data, characterized in that: Applied to a transmitting end, the transmitting end is one of a vehicle computer and a smart terminal that are communicatively connected in the same local area network, and the vehicle computer and the smart terminal are wirelessly connected via Bluetooth; The audio and video data transmission method comprises: Storing an initial data packet to be sent in a preset sending buffer; the initial data packet includes an initial amount of data; Performing RS encoding on the initial data packet in the preset sending buffer area to obtain a verification data packet, wherein the verification data packet includes a second amount of verification data; The initial data packet is sent to the receiving end via the UDP protocol in the local area network, and the verification data packet is sent to the receiving end via Bluetooth, so that after the receiving end receives the data packet containing the first quantity data, if the receiving end confirms that the initial data packet sent by the sending end is lost, and the sum of the first quantity and the second quantity is greater than a preset quantity threshold, the initial data packet is restored after decoding the audio and video data packet and the verification data packet; wherein the receiving end refers to one of the vehicle computer and the smart terminal other than the receiving end.

7. The method for transmitting audio and video data according to claim 6, characterized in that: After sending the initial data packet to the receiving end via the UDP protocol in the local area network and sending the verification data packet to the receiving end via Bluetooth, the method further includes: The sending end receives the automatic retransmission request of the initial data packet sent by the receiving end, and sends the initial data packet to the receiving end again through the UDP protocol in the local area network; the automatic retransmission request is generated by the receiving end after confirming that the initial data packet sent by the sending end is lost and the sum of the first number and the second number is less than or equal to a preset number threshold.

8. A vehicle computer, characterized in that: The vehicle computer is in communication connection with a smart terminal in the same local area network, and the vehicle computer and the smart terminal are wirelessly connected via Bluetooth; When the vehicle computer is used as a receiving end, it is used to execute the audio and video data transmission method as described in any one of claims 1 to 5; when the vehicle computer is used as a sending end, it is used to execute the audio and video data transmission method as described in claim 6 or 7.

9. An intelligent terminal, characterized in that: The smart terminal is connected to the vehicle computer in the same local area network, and the smart terminal and the vehicle computer are connected wirelessly via Bluetooth; When the smart terminal is used as a receiving end, it is used to execute the audio and video data transmission method as described in any one of claims 1 to 5; when the smart terminal is used as a sending end, it is used to execute the audio and video data transmission method as described in claim 6 or 7.

10. One or more readable storage media storing computer-readable instructions, wherein the readable storage media is disposed in the vehicle computer according to claim 8 or the intelligent terminal according to claim 9; When the vehicle computer or the smart terminal serves as a receiving end, when the computer-readable instructions are executed by one or more processors, the one or more processors execute the audio and video data transmission method according to any one of claims 1 to 5; When the vehicle computer or the smart terminal serves as a transmitting end, when the computer-readable instructions are executed by one or more processors, the one or more processors execute the audio and video data transmission method as claimed in claim 6 or 7.

Citation Information

Patent Citations

  • Method and apparatus for smart device accessing wifi and smart device

    CN105898831A

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

    CN109412753A

  • Audio and video transmission forward error correction method and device, computer equipment and storage medium

    CN109862440A

  • System and method for digital communication between computing devices

    US20150264627A1