Miracast screen projection display optimization method

Optimizing the Miracast screen projection through dual buffer zone design and dynamic packet loss and retransmission mechanism, solving the problem of screen projection delay and lag, improving the fluency and stability of display devices, and suitable for devices such as smart TVs and projectors.

CN120547409APending Publication Date: 2025-08-26索诺克(苏州)光电有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510635376.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

Miracast projection has screen delay, lag and connection stability problems in complex environments, resulting in poor display effect.

Method used

The dual buffer zone design is adopted to determine the packet loss status by detecting the continuity of packet numbers, and dynamically trigger the packet loss retransmission mechanism and adjust the transmission parameters, and optimize data transmission with RTCP feedback.

Benefits of technology

Significantly reduces picture delay and lag, improves screen projection fluency and stability, optimizes bandwidth utilization, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547409A_ABST
    Figure CN120547409A_ABST
Patent Text Reader

Abstract

The invention discloses a Miracast screen projection display optimization method, which comprises the following steps of: S1, opening up and establishing a receiving cache region and a sending and displaying cache region which are respectively used for temporarily storing a received data packet and complete frame data to be displayed; s2, detecting the continuity of the serial numbers of the data packets in the receiving cache region, if the serial numbers are continuous and complete display frame data are formed, sending the data to the sending and displaying cache region to wait for sending and displaying, otherwise, judging that the data packet is in a packet loss state; s3, when the receiving cache region has a packet loss state, dynamically and selectively triggering a packet loss retransmission mechanism according to the data state of the sending and displaying cache region; and S4, if a packet loss retransmission mechanism is triggered, feeding back packet loss information to a sending end through a real-time transmission control protocol, and dynamically adjusting transmission parameters to adapt to a network environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of screen projection technology, and in particular to a Miracast screen projection display optimization method. Background Art

[0002] Miracast is a wireless screen projection standard based on Wi-Fi Direct, allowing direct transmission of high-definition audio and video content between mobile devices (such as smartphones and tablets) and display devices (such as smart TVs and projectors). However, due to the characteristics of Wi-Fi networks and the complex data transmission process, Miracast screen projection may experience certain screen delays, lags, and connection stability issues in some complex usage scenarios, resulting in poor display quality. Summary of the Invention

[0003] The purpose of the present invention is to provide a Miracast screen display optimization method to solve the above problems.

[0004] To achieve the above object, the present invention adopts the following technical solutions:

[0005] A Miracast screen display optimization method includes the following steps:

[0006] S1. Create a receiving buffer area and a display buffer area for temporarily storing received data packets and complete frame data to be displayed, respectively;

[0007] S2. Check the data packet number continuity in the receiving buffer area. If the numbers are continuous and form a complete display frame data, send it to the display buffer area for display. Otherwise, determine that the data packet is in a packet loss state.

[0008] S3. When packet loss occurs in the receiving buffer, a packet loss retransmission mechanism is dynamically and selectively triggered according to the data status of the sending buffer;

[0009] S4. If the packet loss retransmission mechanism is triggered, the packet loss information is fed back to the sender through the real-time transport control protocol, and the transmission parameters are dynamically adjusted to adapt to the network environment.

[0010] Preferably, the method for detecting the continuity of the data packet number is specifically: obtaining the number of the currently received data packet and the number of the previous data packet, and if the difference between the current data packet number and the previous data packet number is greater than 1, it indicates that packet loss has occurred.

[0011] Preferably, if a packet loss state occurs in step S2, the step further includes calculating a packet loss range.

[0012] Preferably, the triggering condition of the packet loss retransmission mechanism is specifically: when the data to be displayed in the display buffer area meets a preset threshold, a retransmission request is triggered; otherwise, the retransmission is skipped and the last frame of data is used to overwrite.

[0013] Preferably, the packet loss retransmission mechanism is provided with a retransmission flag for indicating the triggering status of the mechanism.

[0014] Preferably, the transmission parameter includes at least one of a bit rate and a frame rate.

[0015] Preferably, the capacity of the receiving buffer area and the sending buffer area is dynamically adjusted according to the network delay threshold.

[0016] After adopting the above technical solution, the present invention has the following advantages compared with the background technology:

[0017] The present invention provides a Miracast screen display optimization method that significantly reduces screen delay and lag through a dual buffer design, a dynamic packet loss retransmission mechanism, and adaptive transmission protocol optimization. In the event of network packet loss, the method intelligently determines whether to retransmit based on the status of the display buffer, reducing invalid retransmissions, optimizing bandwidth utilization, and ensuring smooth rendering of the display device even in the face of packet loss, significantly improving the user experience. The method also dynamically adjusts transmission parameters in conjunction with RTCP feedback, improving the smoothness and stability of screen projection in complex environments. The method is suitable for wireless screen projection scenarios for display devices such as smart TVs and projectors. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a network system block diagram of the present invention;

[0019] Figure 2 This is a flow chart of the packet loss judgment state of the present invention. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0021] Example

[0022] Please refer to Figure 1 and Figure 2 As shown, the present invention discloses a Miracast screen display optimization method, comprising the following steps:

[0023] S1. Create a receiving buffer area and a display buffer area for temporarily storing received data packets and complete frame data to be displayed, respectively;

[0024] The capacity of the receiving buffer and the sending buffer is dynamically adjusted according to the network delay threshold. The receiving buffer is used to temporarily store data packets received from the sender and sorted by number. The sending buffer is used to store complete display frame data for GPU (graphics processing unit) rendering and display.

[0025] Initialize the double buffer: the receiving buffer capacity is set to store at least 3 frames of data, and the sending buffer capacity is set to 1 frame of data.

[0026] S2. Check the data packet number continuity in the receiving buffer. If the numbers are continuous and form a complete display frame data, send it to the display buffer to wait for display. Otherwise, it is determined to be a packet loss state.

[0027] S3. When packet loss occurs in the receiving buffer, a packet loss retransmission mechanism is dynamically and selectively triggered according to the data status of the sending buffer;

[0028] S4. If the packet loss retransmission mechanism is triggered, the packet loss information is fed back to the sender through the Real-time Transport Control Protocol (RTCP), and the transmission parameters are dynamically adjusted to adapt to the network environment.

[0029] The method for detecting the continuity of the data packet number is specifically as follows: obtaining the number of the currently received data packet and the number of the previous data packet. If the difference between the current data packet number and the previous data packet number is greater than 1, it indicates that packet loss has occurred.

[0030] If a packet loss state occurs in step S2, the step also includes calculating the packet loss range.

[0031] The triggering conditions of the packet loss retransmission mechanism are as follows: when the data to be displayed in the display buffer area meets the preset threshold (that is, when there is enough data to be displayed in the display buffer area), a retransmission request is triggered; otherwise, the retransmission is skipped and the last frame of data is used to overwrite to avoid blank display.

[0032] The packet loss retransmission mechanism is provided with a retransmission flag to indicate the triggering status of the mechanism. The transmission parameters include at least one of the bit rate and frame rate, which are adapted to the current network status.

[0033] The above are merely preferred embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A Miracast screen display optimization method, characterized by: The following steps are involved: S1. Create a receiving buffer area and a display buffer area for temporarily storing received data packets and complete frame data to be displayed, respectively; S2. Check the data packet number continuity in the receiving buffer area. If the numbers are continuous and form a complete display frame data, send it to the display buffer area for display. Otherwise, determine that the data packet is in a packet loss state. S3. When packet loss occurs in the receiving buffer, a packet loss retransmission mechanism is dynamically and selectively triggered according to the data status of the sending buffer; S4. If the packet loss retransmission mechanism is triggered, the packet loss information is fed back to the sender through the real-time transport control protocol, and the transmission parameters are dynamically adjusted to adapt to the network environment.

2. The Miracast screen display optimization method according to claim 1, wherein: The method for detecting the continuity of the data packet number is specifically: obtaining the number of the currently received data packet and the number of the previous data packet, and if the difference between the current data packet number and the previous data packet number is greater than 1, it indicates that packet loss has occurred.

3. The Miracast screen display optimization method according to claim 2, wherein: If a packet loss state occurs in step S2, the step also includes calculating the packet loss range.

4. The Miracast screen display optimization method according to claim 1, wherein: The triggering condition of the packet loss retransmission mechanism is specifically: when the data to be displayed in the display buffer area meets the preset threshold, a retransmission request is triggered; otherwise, the retransmission is skipped and the last frame data is used to overwrite.

5. The Miracast screen display optimization method according to claim 1, wherein: The packet loss retransmission mechanism is provided with a retransmission flag for indicating the triggering status of the mechanism.

6. The Miracast screen display optimization method according to claim 1, wherein: The transmission parameter includes at least one of a bit rate and a frame rate.

7. The Miracast screen display optimization method according to claim 1, wherein: The capacities of the receiving buffer and the sending buffer are dynamically adjusted according to the network delay threshold.