Image refresh optimization method, device and electronic equipment

By dynamically adjusting the refresh duration parameters of the image drive signal and managing the buffer, the image refresh smoothness of the IO interface screen in smart wearable devices has been optimized, solving the problem of insufficient refresh smoothness under low power consumption and improving user experience and battery life.

CN115421677BActive Publication Date: 2026-07-03EVOC SMART IOT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
EVOC SMART IOT TECH CO LTD
Filing Date
2022-08-25
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

In smart wearable devices, the image frame refresh rate of the I/O interface screen is relatively low, which cannot meet the requirements for high refresh rate, especially under low power consumption requirements.

Method used

By dynamically adjusting the refresh duration parameters of the image drive signal, the image refresh process of the IO interface screen is optimized according to the timing recommendation time. This includes modifying the low-level duration of the vertical and horizontal drive reset signals, setting the time and clock signal level duration, etc., and optimizing the smoothness of image refresh in combination with buffer management.

Benefits of technology

It improves the smoothness of image frame refresh on the IO interface screen, enhances the user experience, avoids screen flickering or frame drops, and optimizes battery life.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115421677B_ABST
    Figure CN115421677B_ABST
Patent Text Reader

Abstract

The application provides an image refreshing optimization method and device and electronic equipment. When the screen of the electronic equipment is an IO interface screen, the image driving signal refreshing time length parameter is modified according to the time sequence recommendation time between two images refreshed in time sequence. Then, the difference of the total consumption time of the adjacent two images is calculated, and it is judged whether the total consumption time of the latter image is reduced by a preset value compared with the total consumption time of the former image. If yes, the image driving signal refreshing time length parameter used by the former image is used to refresh the latter image. If not, the image driving signal refreshing time length parameter is continuously modified before the next image is refreshed until the total consumption time of the latter image is reduced by the preset value compared with the total consumption time of the former image. The time sequence delay can be adjusted to the optimal state, and the image frame refreshing fluency of the IO interface screen is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart wearable technology, and in particular to an image refresh optimization method, apparatus, and electronic device. Background Technology

[0002] Due to the small size, light weight, long battery life requirements, and numerous components in various applications, smart wearable devices often have very limited structural space. Therefore, the memory capacity of smart wearable devices cannot be very large. Given a fixed battery capacity, to ensure long battery life, all components must be low-power versions.

[0003] Current smart wearable devices generally use MIPI interface screens with controllers for graphics acceleration and rendering, but power consumption is not optimal. To further reduce power consumption, controllerless I / O interface screens have become the only option. However, due to their unique driving method, they require very high image frame refresh smoothness. Existing I / O interface screens, however, have low image frame refresh smoothness, failing to meet these requirements. Summary of the Invention

[0004] This invention provides an image refresh optimization method, apparatus, and electronic device, which improves the image frame refresh smoothness of the I / O interface screen when the screen of the electronic device is an I / O interface screen.

[0005] In a first aspect, the present invention provides an image refresh optimization method, wherein the screen of the electronic device is an I / O interface screen, and the image refresh optimization method includes:

[0006] Step 1: Obtain the total time consumed when the previous frame image is refreshed sequentially;

[0007] Step 2: Modify the image drive signal refresh duration parameter according to the recommended timing sequence;

[0008] Step 3: Use the modified image drive signal refresh duration parameter to refresh the current frame image in sequence, and obtain the total time consumed to complete the refresh of the current frame image;

[0009] Step 4: Calculate the difference between the total time taken to complete the timer refresh of the previous frame and the total time taken to complete the timer refresh of the current frame, and determine whether the difference is greater than a preset value.

[0010] Step 5: If the judgment result is that the difference is greater than the preset value, then use the modified image drive signal refresh duration parameter in Step 2 to refresh the next frame of the image in sequence.

[0011] Step 6: If the judgment result is not greater than the preset value, then take the current frame image as the previous frame image and repeat steps one to four until the judgment result is greater than the preset value.

[0012] In the above scheme, when the screen of the electronic device is an I / O interface screen, during the initial use, between the sequential refresh of two consecutive image frames, the refresh duration parameter of the image drive signal needs to be modified according to the recommended timing time. Then, the difference in the total time consumed during the refresh of two adjacent image frames is calculated to determine whether the total time consumed during the refresh of the subsequent image frame is reduced by a preset value compared to the total time consumed during the refresh of the previous image frame. If the preset value is reduced, the refresh duration parameter of the image drive signal used in the previous frame can be used to refresh the subsequent image frame sequentially. If the preset value is not reduced, the refresh duration parameter of the image drive signal continues to be modified according to the recommended timing time before the next image frame is refreshed, until the total time consumed during the refresh of the subsequent image frame is reduced by the preset value compared to the total time consumed during the refresh of the previous image frame. By dynamically adjusting the image drive signal refresh duration parameter used when refreshing different frame images in the above manner, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the image drive signal refresh duration parameter can be dynamically adjusted according to different manufacturers' IO interface screens to enhance the user experience.

[0013] In one specific implementation, the image driving signal refresh duration parameter includes the duration of the low level of the vertical and horizontal drive reset signals. Modifying the image driving signal refresh duration parameter according to the recommended timing includes adjusting the duration of the low level of the vertical and horizontal drive reset signals. This facilitates optimizing the duration of the low level of the vertical and horizontal drive reset signals used for each frame of image refresh, improving the smoothness of the image refresh of the I / O interface screen.

[0014] In one specific implementation, the image drive signal refresh duration parameter includes the setting time of the vertical and horizontal drive reset signals. Modifying the image drive signal refresh duration parameter according to the recommended timing includes modifying the setting time of the vertical and horizontal drive reset signals. This facilitates optimizing the setting time parameters of the vertical and horizontal drive reset signals used for each frame of image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0015] In one specific implementation, the image drive signal refresh duration parameter includes: the vertical drive start signal setting time. Modifying the image drive signal refresh duration parameter according to the timing recommendation includes: modifying the vertical drive start signal setting time according to the timing recommendation. This facilitates optimizing the vertical drive start signal setting time parameter used for each frame image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0016] In one specific implementation, the image drive signal refresh duration parameter includes: the horizontal drive start signal setting time. Modifying the image drive signal refresh duration parameter according to the timing recommendation time includes: modifying the horizontal drive start signal setting time according to the timing recommendation time. This facilitates optimizing the horizontal drive start signal setting time parameter used for each frame image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0017] In one specific implementation, the image driving signal refresh duration parameter includes the duration of the horizontal driving clock signal level. Modifying the image driving signal refresh duration parameter according to the recommended timing includes adjusting the duration of the horizontal driving clock signal level based on the recommended timing. This facilitates optimizing the duration of the horizontal driving clock signal level used for each image frame refresh, improving the smoothness of the image refresh on the IO interface screen.

[0018] In one specific implementation, the image refresh optimization method further includes:

[0019] Store the current frame image into the first buffer and determine whether the storage was successful; the first buffer is the buffer whose status is set to background.

[0020] If the data is successfully stored, the state of the first buffer is set to the display state, and it is confirmed whether the previous frame image in the second buffer has been displayed. The second buffer is the buffer with its state set to the foreground. The IO interface screen is used to display the image frames in the buffer that are set to the foreground.

[0021] If it is confirmed that the previous frame image has been displayed, the state of the first buffer is set to the foreground state, and the state of the second buffer is set to the background state; the buffer set to the background state is used to store the next frame image.

[0022] Secondly, the present invention also provides an image refresh optimization device for an electronic device, wherein the screen of the electronic device is an I / O interface screen, and the image refresh optimization device is based on any of the above-mentioned image refresh optimization methods. The image refresh optimization device includes: a time acquisition module, a parameter modification module, a refresh module, a calculation module, and a judgment module. The time acquisition module is used to acquire the total time consumed when refreshing the previous frame image in a time-sequential manner. The parameter modification module is used to modify the image drive signal refresh duration parameter according to the recommended time sequence. The refresh module is used to use the modified image drive signal refresh duration parameter to refresh the current frame image in a time-sequential manner; and the time acquisition module is also used to acquire the total time consumed when refreshing the current frame image. The calculation module is used to calculate the difference between the total time consumed when refreshing the previous frame image in a time-sequential manner and the total time consumed when refreshing the current frame image. The judgment module is used to determine whether the difference is greater than a preset value. The refresh module is also used to use the modified image drive signal refresh duration parameter to refresh the next frame image in a time-sequential manner when the judgment result of the judgment module is greater than the preset value. When the judgment result of the judgment module is not greater than the preset value, the time acquisition module, parameter modification module, refresh module, calculation module and judgment module are also used to take the current frame image as the previous frame image and repeat steps one to four until the judgment result is greater than the preset value.

[0023] In the above scheme, when the screen of the electronic device is an I / O interface screen, during the initial use, between the sequential refresh of two consecutive image frames, the refresh duration parameter of the image drive signal needs to be modified according to the recommended timing time. Then, the difference in the total time consumed during the refresh of two adjacent image frames is calculated to determine whether the total time consumed during the refresh of the subsequent image frame is reduced by a preset value compared to the total time consumed during the refresh of the previous image frame. If the preset value is reduced, the refresh duration parameter of the image drive signal used in the previous frame can be used to refresh the subsequent image frame sequentially. If the preset value is not reduced, the refresh duration parameter of the image drive signal continues to be modified according to the recommended timing time before the next image frame is refreshed, until the total time consumed during the refresh of the subsequent image frame is reduced by the preset value compared to the total time consumed during the refresh of the previous image frame. By dynamically adjusting the image drive signal refresh duration parameter used when refreshing different frame images in the above manner, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the image drive signal refresh duration parameter can be dynamically adjusted according to different manufacturers' IO interface screens to enhance the user experience.

[0024] Thirdly, the present invention also provides an electronic device, comprising: a microcontroller unit and an I / O interface screen communicatively connected to the microcontroller unit. The microcontroller unit integrates the image refresh optimization device of claim 9. When the screen of the electronic device is an I / O interface screen, during initial use, between the sequential refresh of two consecutive frames of images, the image drive signal refresh duration parameter needs to be modified according to the recommended timing time. The difference in the total time consumed during the refresh of two adjacent consecutive frames of images is then calculated to determine whether the total time consumed during the refresh of the subsequent frame of images is reduced by a preset value compared to the total time consumed during the refresh of the preceding frame of images. If the preset value is reduced, the image drive signal refresh duration parameter used in the preceding frame can be used to refresh the subsequent frame of images sequentially. If the preset value is not reduced, the image drive signal refresh duration parameter continues to be modified according to the recommended timing time before the next frame of images is refreshed, until the total time consumed during the refresh of the subsequent frame of images is reduced by a preset value compared to the total time consumed during the refresh of the preceding frame of images. By dynamically adjusting the image drive signal refresh duration parameter used when refreshing different frame images in the above manner, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the image drive signal refresh duration parameter can be dynamically adjusted according to different manufacturers' IO interface screens to enhance the user experience.

[0025] Fourthly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of any of the above-described image refresh optimization methods. Attached Figure Description

[0026] Figure 1 A flowchart illustrating an image refresh optimization method provided in an embodiment of the present invention;

[0027] Figure 2 A flowchart illustrating another image refresh optimization method provided in an embodiment of the present invention;

[0028] Figure 3 A flowchart illustrating another image refresh optimization method provided in an embodiment of the present invention;

[0029] Figure 4 A flowchart illustrating another image refresh optimization method provided in an embodiment of the present invention;

[0030] Figure 5 A flowchart illustrating another image refresh optimization method provided in an embodiment of the present invention;

[0031] Figure 6 A flowchart illustrating another image refresh optimization method provided in an embodiment of the present invention;

[0032] Figure 7 A flowchart illustrating another image refresh optimization method provided in an embodiment of the present invention;

[0033] Figure 8 A hardware connection diagram of an electronic device provided in an embodiment of the present invention;

[0034] Figure 9 A pixel diagram of an I / O interface screen provided in an embodiment of the present invention;

[0035] Figure 10 A timing diagram of the vertical direction during image refresh provided in an embodiment of the present invention;

[0036] Figure 11 This is a timing diagram of the horizontal direction during image refresh provided in an embodiment of the present invention. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] To facilitate understanding of the image refresh optimization method provided in this embodiment of the invention, the application scenario of the image refresh optimization method provided in this embodiment of the invention is first described below. This image refresh optimization method is applied to an electronic device that has an I / O interface screen. Specifically, the electronic device can be, but is not limited to, a smart wearable device, and the smart wearable device can be, but is not limited to, a terminal wearable device such as, but not limited to, a diving computer. The image refresh optimization method will now be described in detail with reference to the accompanying drawings.

[0039] refer to Figure 1 The image refresh optimization method provided in this embodiment of the invention includes:

[0040] Step 1: Obtain the total time consumed when the previous frame image is refreshed sequentially;

[0041] Step 2: Modify the image drive signal refresh duration parameter according to the recommended timing sequence;

[0042] Step 3: Use the modified image drive signal refresh duration parameter to refresh the current frame image in sequence, and obtain the total time consumed to complete the refresh of the current frame image;

[0043] Step 4: Calculate the difference between the total time taken to complete the timer refresh of the previous frame and the total time taken to complete the timer refresh of the current frame, and determine whether the difference is greater than a preset value.

[0044] Step 5: If the judgment result is that the difference is greater than the preset value, then use the modified image drive signal refresh duration parameter in Step 2 to refresh the next frame of the image in sequence.

[0045] Step 6: If the judgment result is not greater than the preset value, then take the current frame image as the previous frame image and repeat steps one to four until the judgment result is greater than the preset value.

[0046] In the above scheme, when the screen of the electronic device is an I / O interface screen, during the initial use, between the sequential refresh of two consecutive image frames, the refresh duration parameter of the image drive signal needs to be modified according to the recommended timing time. Then, the difference in the total time consumed during the refresh of two adjacent image frames is calculated to determine whether the total time consumed during the refresh of the subsequent image frame is reduced by a preset value compared to the total time consumed during the refresh of the previous image frame. If the preset value is reduced, the refresh duration parameter of the image drive signal used in the previous frame can be used to refresh the subsequent image frame sequentially. If the preset value is not reduced, the refresh duration parameter of the image drive signal continues to be modified according to the recommended timing time before the next image frame is refreshed, until the total time consumed during the refresh of the subsequent image frame is reduced by the preset value compared to the total time consumed during the refresh of the previous image frame. The recommended timing time is the refresh duration recommendation time of the image driving signal corresponding to the timing in the pre-stored datasheet. By dynamically adjusting the refresh duration parameter of the image driving signal used when refreshing different frames of images, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the refresh duration parameter of the image driving signal can be dynamically adjusted according to the IO interface screens of different manufacturers, thereby improving the user experience.

[0047] like Figure 8 As shown, the electronic device in this application includes a microcontroller unit (MCU) and an I / O interface screen that communicates with the MCU via a pin bus, etc. The MCU, as the main control unit of the electronic device, is used to process various signals, including but not limited to image refresh. Figure 9 The diagram shows the pixel distribution on the I / O interface screen of an electronic device. A horizontal row has 280 pixels, each composed of RGB pixels; a vertical column has 280 pixels, each composed of LPB (high-order pixel) and SPB (low-order pixel). This configuration is a conventional I / O interface screen configuration in the prior art. Figure 10 and Figure 11 These are timing diagrams for the horizontal and vertical directions during each frame's refresh. The initial state in the vertical direction is configured first through software encoding (e.g., ...). Figure 10 As shown), when the vertical synchronization signal is enabled, each rising or falling edge of the vertical synchronization clock signal corresponds to a full row of 280 pixels in the horizontal direction (e.g., Figure 11 As shown in the figure, it will configure the horizontal start state and send data to the screen's IO interface for an entire row of pixels according to the rising or falling edge of the horizontal synchronization signal to complete the display of one frame of image.

[0048] The timing is consistent with existing methods, following the recommended timing configured in the datasheet to guide specific image refresh operations. Its advantage lies in shorter pixel data transmission screen I / O time. In step two above, the modified image drive signal refresh duration parameter specifically determines the refresh time consumed during the image refresh process. Specifically, the image drive signal refresh duration parameter can be, but is not limited to, the low-level duration of the vertical and horizontal drive reset signals (e.g.,...). Figure 10 and Figure 11 (twXRST), vertical and horizontal drive reset signal setting time (e.g.) Figure 10 and Figure 11 tsXRST in the middle), vertical drive start signal setting time (e.g. Figure 10 and Figure 11 tsVST in the middle), horizontal drive start signal setting time (e.g. Figure 10 and Figure 11 tsHST in the middle), the duration of the horizontal drive clock signal level (e.g. Figure 10 and Figure 11 The timing diagram delay duration (the total time consumed by refreshing a frame of image according to the timing sequence) and other parameters were modified repeatedly through software coding and verification and debugging. Finally, the delay duration was optimized to the best value, solving the problem of no delay or stuttering in the screen display, and improving the smoothness of frame image refresh.

[0049] It should be noted that the difference between the total time taken to complete the timed refresh of the previous frame in step one and the total time taken to complete the timed refresh of the current frame in step three represents the reduction in the total time taken to refresh the current frame using the modified image drive signal refresh duration parameter compared to the time taken before the modification. A positive difference indicates a shorter total time; a negative difference indicates a longer total time. Typically, the preset value can be a value greater than 0 at the beginning, ensuring that each modification aims to shorten the total time taken for one frame. After the total time taken for one frame is reduced to a certain value, the preset value can be gradually reduced to 0, ensuring that the total time taken to refresh each subsequent frame remains within a tolerable range. Further optimization in the above steps is achieved by reducing the recommended timing time, i.e., reducing the time recommended in the datasheet, while ensuring that each frame can be displayed correctly.

[0050] For example, refer to Figure 2 When the image drive signal refresh duration parameter includes the low-level duration of the vertical and horizontal drive reset signals, step two above, which modifies the image drive signal refresh duration parameter according to the recommended timing time, specifically includes modifying the low-level duration of the vertical and horizontal drive reset signals according to the recommended timing time. Specifically, the low-level duration value of the vertical and horizontal drive reset signals can be changed from the original 7.6ms to 3ms through multiple modification cycles. This facilitates optimizing the low-level duration parameters of the vertical and horizontal drive reset signals used during each frame image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0051] For example, refer to Figure 3 When the image drive signal refresh duration parameter includes the vertical and horizontal drive reset signal setting time, the modification of the image drive signal refresh duration parameter in step two above, based on the timing recommendation time, specifically includes modifying the vertical and horizontal drive reset signal setting time according to the timing recommendation time. Specifically, the vertical and horizontal drive reset signal setting time value can be changed from the original 9.4ms to 5ms through multiple modification cycles. This facilitates adjusting the vertical and horizontal drive reset signal setting time parameters used for each frame image refresh to the optimal state, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0052] For example, refer to Figure 4When the image drive signal refresh duration parameter includes the vertical drive start signal setting time, step two above, which modifies the image drive signal refresh duration parameter according to the recommended timing time, specifically includes modifying the vertical drive start signal setting time according to the recommended timing time. Specifically, the vertical and horizontal drive reset signal setting time values ​​can be changed from the original 9.4ms to 5ms through multiple modification cycles. This facilitates optimizing the vertical drive start signal setting time parameter used for each frame image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0053] For example, refer to Figure 5 When the image drive signal refresh duration parameter includes the horizontal drive start signal setting time, step two above, which modifies the image drive signal refresh duration parameter according to the timing recommendation time, specifically includes modifying the horizontal drive start signal setting time according to the timing recommendation time. Specifically, the horizontal drive start signal setting time value can be changed from the original 8.3ms to 5ms through multiple modification cycles. This facilitates optimizing the horizontal drive start signal setting time parameter used for each frame image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0054] For example, refer to Figure 6 When the image drive signal refresh duration parameter includes the duration of the horizontal drive clock signal level, step two above, which modifies the image drive signal refresh duration parameter according to the recommended timing time, specifically includes modifying the duration of the horizontal drive clock signal level according to the recommended timing time. Specifically, the duration of the horizontal drive clock signal level can be changed from the original 6.8ms to 3ms through multiple modification cycles. This facilitates optimizing the duration of the horizontal drive clock signal level used for each frame image refresh, improving the smoothness of the drive frame image refresh on the IO interface screen.

[0055] It needs to be explained that the above Figures 2-6 The adjustment methods can be applied individually or in combination. That is, each time the image drive signal refresh duration parameter is modified, the low-level duration of the vertical and horizontal drive reset signals can be modified (e.g., ...). Figure 10 and Figure 11 (twXRST), vertical and horizontal drive reset signal setting time (e.g.) Figure 10 and Figure 11 tsXRST in the middle), vertical drive start signal setting time (e.g. Figure 10 and Figure 11 tsVST in the middle), horizontal drive start signal setting time (e.g. Figure 10 and Figure 11 tsHST in the middle), the duration of the horizontal drive clock signal level (e.g. Figure 10 and Figure 11 One parameter in `twHCK` can be modified, and any number of parameters can also be modified. For example, when modifying all five parameters simultaneously, in one modification method, the total time consumed by sequentially refreshing one frame of image (twXRST+tsXRST+tsVST+tsHST+twHCK) can be gradually reduced from 50.6ms to 26.6ms. Of course, the preset value can also be set to a nanosecond-level value to improve the optimization accuracy.

[0056] Additionally, refer to Figure 7 The image refresh optimization method may also include the following optimization methods:

[0057] Store the current frame image into the first buffer and determine whether the storage was successful; the first buffer is the buffer whose status is set to background.

[0058] If the data is successfully stored, the state of the first buffer is set to the display state, and it is confirmed whether the previous frame image in the second buffer has been displayed. The second buffer is the buffer with its state set to the foreground. The IO interface screen is used to display the image frames in the buffer that are set to the foreground.

[0059] If it is confirmed that the previous frame image has been displayed, the state of the first buffer is set to the foreground state, and the state of the second buffer is set to the background state; the buffer set to the background state is used to store the next frame image.

[0060] Of course, in other implementations, three buffer zones can also be defined;

[0061] Then, the data of the three consecutively generated image frames are stored in three separate buffers.

[0062] Set the buffer containing the first generated image frame data to the foreground state, and display the image frame data in the buffer in the foreground state on the IO interface screen;

[0063] Set the state of the buffer containing the image frame data generated in the intermediate order to the ready-to-display state, and determine whether the image frame data in the buffer in the foreground state has been displayed. If the result is yes, set the state of the buffer containing the image frame data generated in the intermediate order to the foreground state. If the result is no, continue to determine whether the image frame data in the buffer in the foreground state has been displayed at certain time intervals until the result is that the image frame data in the buffer in the foreground state has been displayed.

[0064] Set the buffer containing the last generated image frame data to the background state, and determine whether the buffer in the waiting-to-be-displayed state has been set to the foreground state. If the result is yes, set the buffer containing the last generated image frame data to the waiting-to-be-displayed state. If the result is no, continue to determine whether the buffer in the waiting-to-be-displayed state has been set to the foreground state at certain time intervals, until the result is that the buffer in the waiting-to-be-displayed state has been set to the foreground state.

[0065] As shown above, three buffer zones are divided into three areas to serve as transitional storage areas for image frame data during the process from generation to display. During image rendering, these three buffers cooperate to complete the display, ensuring that each image frame data is not overwritten before display is complete. This avoids screen flickering or frame drops during I / O interface display, resolves display delays or stuttering, and improves frame refresh smoothness.

[0066] In addition, combined Figure 7 The image refresh optimization method shown allows the foreground buffer to be set to an idle state after the image frame data in the foreground state has been displayed, in order to store newly generated image frame data. This allows the three buffers to alternately store sequentially generated image frame data during the generation and display process, ensuring that each image frame data is not overwritten before display is complete. This avoids screen flickering or frame drops during I / O interface display, resolves display delays or stuttering, and improves frame refresh smoothness.

[0067] In the various embodiments described above, when the screen of the electronic device is an I / O interface screen, during initial use, between the sequential refresh of two consecutive image frames, the image drive signal refresh duration parameter needs to be modified according to the recommended timing time. Then, the difference in the total time consumed during the refresh of two adjacent image frames is calculated to determine whether the total time consumed during the refresh of the subsequent image frame is reduced by a preset value compared to the total time consumed during the refresh of the previous image frame. If the preset value is reduced, the image drive signal refresh duration parameter used in the previous frame can be used to refresh the subsequent image frame sequentially. If the preset value is not reduced, the image drive signal refresh duration parameter continues to be modified according to the recommended timing time before the next image frame is refreshed until the total time consumed during the refresh of the subsequent image frame is reduced by the preset value compared to the total time consumed during the refresh of the previous image frame. By dynamically adjusting the image drive signal refresh duration parameter used when refreshing different frame images in the above manner, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the image drive signal refresh duration parameter can be dynamically adjusted according to different manufacturers' IO interface screens to enhance the user experience.

[0068] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0069] Based on the same inventive concept, this application also provides an image refresh optimization apparatus for implementing the image refresh optimization method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more image refresh optimization apparatus embodiments provided below can be found in the limitations of the image refresh optimization method described above, and will not be repeated here.

[0070] This invention also provides an image refresh optimization device for an electronic device, wherein the screen of the electronic device is an I / O interface screen, and the image refresh optimization device is based on any of the above-mentioned image refresh optimization methods. The image refresh optimization device includes: a time acquisition module, a parameter modification module, a refresh module, a calculation module, and a judgment module. The time acquisition module is used to acquire the total time consumed when refreshing the previous frame image in a time-sequential manner. The parameter modification module is used to modify the image drive signal refresh duration parameter according to the recommended time sequence. The refresh module is used to use the modified image drive signal refresh duration parameter to refresh the current frame image in a time-sequential manner; and the time acquisition module is also used to acquire the total time consumed when refreshing the current frame image. The calculation module is used to calculate the difference between the total time consumed when refreshing the previous frame image in a time-sequential manner and the total time consumed when refreshing the current frame image. The judgment module is used to determine whether the difference is greater than a preset value. The refresh module is also used to use the modified image drive signal refresh duration parameter to refresh the next frame image in a time-sequential manner when the judgment result of the judgment module is greater than the preset value. When the judgment result of the judgment module is not greater than the preset value, the time acquisition module, parameter modification module, refresh module, calculation module and judgment module are also used to take the current frame image as the previous frame image and repeat steps one to four until the judgment result is greater than the preset value.

[0071] In one embodiment, the image driving signal refresh duration parameter may include: the duration of the low level of the vertical and horizontal driving reset signals; the parameter modification module is also used to modify the duration of the low level of the vertical and horizontal driving reset signals according to the timing recommendation time.

[0072] In one specific implementation, the image drive signal refresh duration parameter may include the setting time of the vertical and horizontal drive reset signals. The parameter modification module is also used to modify the setting time of the vertical and horizontal drive reset signals according to the timing recommendation.

[0073] In one specific implementation, the image driving signal refresh duration parameter may include: the vertical drive start signal setting time. The parameter modification module is also used to modify the vertical drive start signal setting time according to the timing recommendation time.

[0074] In one specific implementation, the image drive signal refresh duration parameter may include: the horizontal drive start signal setting time. The parameter modification module is also used to modify the horizontal drive start signal setting time according to the timing recommendation time.

[0075] In one specific implementation, the image driving signal refresh duration parameter may include the duration of the horizontal driving clock signal level. The parameter modification module is also used to modify the duration of the horizontal driving clock signal level according to the timing recommendation.

[0076] In one specific embodiment, the image refresh optimization device may further include:

[0077] The first buffer module is used to store the current frame image into the first buffer area and determine whether the storage was successful; the first buffer area is a buffer area whose status is set to background.

[0078] The second buffer module is used to set the state of the first buffer to the ready-to-display state when the first buffer module determines that the current frame image has been successfully stored in the first buffer, and to confirm whether the previous frame image in the second buffer has been displayed completely; the second buffer is a buffer with its state set to the foreground state; the IO interface screen is used to display the image frames in the buffer set to the foreground state.

[0079] Specifically, when the second cache module confirms that the previous frame image has been displayed, the first cache module is also used to set the state of the first cache area to the foreground state, and the second cache module is also used to set the state of the second cache area to the background state; the cache area set to the background state is used to store the next frame image.

[0080] In the above scheme, when the screen of the electronic device is an I / O interface screen, during the initial use, between the sequential refresh of two consecutive image frames, the refresh duration parameter of the image drive signal needs to be modified according to the recommended timing time. Then, the difference in the total time consumed during the refresh of two adjacent image frames is calculated to determine whether the total time consumed during the refresh of the subsequent image frame is reduced by a preset value compared to the total time consumed during the refresh of the previous image frame. If the preset value is reduced, the refresh duration parameter of the image drive signal used in the previous frame can be used to refresh the subsequent image frame sequentially. If the preset value is not reduced, the refresh duration parameter of the image drive signal continues to be modified according to the recommended timing time before the next image frame is refreshed, until the total time consumed during the refresh of the subsequent image frame is reduced by the preset value compared to the total time consumed during the refresh of the previous image frame. By dynamically adjusting the image drive signal refresh duration parameter used when refreshing different frame images in the above manner, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the image drive signal refresh duration parameter can be dynamically adjusted according to different manufacturers' IO interface screens to enhance the user experience.

[0081] It should be explained that the time acquisition module, parameter modification module, refresh module, calculation module, and judgment module mentioned above are all functional modules that can implement the corresponding functions. They include not only the software code that performs the corresponding functions, but also the storage devices and processing devices that store and execute the corresponding software code.

[0082] In addition, it should be noted that the image refresh optimization device of the aforementioned electronic device may include other modules besides those described above. For example, the image refresh optimization device of the electronic device may also include the following modules:

[0083] The cache partitioning module is used to divide the cache into three cache areas;

[0084] The image frame data storage module is used to store the data of three consecutively generated image frames into three buffer areas respectively;

[0085] The first state setting module is used to set the state of the buffer containing the first generated image frame data to the foreground state, and the image frame data in the buffer in the foreground state is displayed on the screen through the IO interface.

[0086] The second state setting module is used to set the state of the buffer containing the image frame data generated in the intermediate order to the display state, and to determine whether the image frame data in the buffer in the foreground state has been displayed; if the determination result is yes, the state of the buffer containing the image frame data generated in the intermediate order is set to the foreground state.

[0087] The third state setting module is used to set the state of the buffer containing the last generated image frame data to the background state, and to determine whether the buffer in the waiting-to-be-displayed state has been set to the foreground state; if the determination result is yes, the state of the buffer containing the last generated image frame data is set to the waiting-to-be-displayed state.

[0088] In one embodiment, the first state setting module is further configured to set the buffer in the foreground state to an idle state after the image frame data in the buffer in the foreground state has been displayed, so as to store the newly generated image frame data.

[0089] Each module in the aforementioned image refresh optimization device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0090] Furthermore, embodiments of the present invention also provide an electronic device, with reference to Figure 8The electronic device includes a microcontroller unit and an I / O interface screen communicatively connected to the microcontroller unit. The microcontroller unit integrates the image refresh optimization device of claim 9. Specifically, the electronic device can be a submersible computer, or other types of electronic devices. When the screen of the electronic device is an I / O interface screen, during initial use, between the sequential refresh of two consecutive frames of images, the image drive signal refresh duration parameter needs to be modified according to the recommended timing time. The difference in the total time consumed during the refresh of two adjacent consecutive frames of images is then calculated to determine whether the total time consumed during the refresh of the subsequent frame of images is reduced by a preset value compared to the total time consumed during the refresh of the previous frame of images. If the preset value is reduced, the image drive signal refresh duration parameter used in the previous frame can be used to refresh the subsequent frame of images sequentially. If the preset value is not reduced, the image drive signal refresh duration parameter continues to be modified according to the recommended timing time before the next frame of images is refreshed, until the total time consumed during the refresh of the subsequent frame of images is reduced by the preset value compared to the total time consumed during the refresh of the previous frame of images. By dynamically adjusting the image drive signal refresh duration parameter used when refreshing different frame images in the above manner, the timing delay can be optimized to improve the smoothness of image frame refresh on the IO interface screen. Furthermore, the image drive signal refresh duration parameter can be dynamically adjusted according to different manufacturers' IO interface screens to enhance the user experience.

[0091] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0092] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0093] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0094] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0095] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. An image refresh optimization method, applied to an electronic device with an I / O interface screen, characterized in that, include: Step 1: Obtain the total time consumed to complete the sequential refresh of the previous frame image; Step 2: Modify the refresh duration parameter of the image driving signal according to the recommended timing time. The recommended timing time is the refresh duration recommended time of the image driving signal corresponding to the timing in the pre-stored data manual. The refresh duration parameter of the image driving signal includes: the low level duration of the vertical and horizontal drive reset signal, the setting time of the vertical and horizontal drive reset signal, the setting time of the vertical drive start signal, the setting time of the horizontal drive start signal, or the duration of the horizontal drive clock signal level. Step 3: Use the modified image drive signal refresh duration parameter to refresh the current frame image according to the time sequence, and obtain the total time consumed to complete the refresh of the current frame image; Step 4: Calculate the difference between the total time taken to complete the time-sequential refresh of the previous frame image and the total time taken to complete the time-sequential refresh of the current frame image, and determine whether the difference is greater than a preset value; Step 5: If the judgment result is that the difference is greater than the preset value, then use the modified image driving signal refresh duration parameter in Step 2 to refresh the next frame image in sequence. Step Six: If the judgment result is that the difference is not greater than the preset value, then the current frame image is taken as the previous frame image, and Step One to Step Four are repeated until the judgment result is that the difference is greater than the preset value.

2. The image refresh optimization method as described in claim 1, characterized in that, The image driving signal refresh duration parameter includes: the duration of the low level of the vertical and horizontal driving reset signals; The step of modifying the image drive signal refresh duration parameter based on the recommended timing includes: Based on the recommended timing, modify the duration of the low level of the vertical and horizontal drive reset signals.

3. The image refresh optimization method as described in claim 1, characterized in that, The image driving signal refresh duration parameter includes: the setting time of the vertical and horizontal driving reset signals; The step of modifying the image drive signal refresh duration parameter based on the recommended timing includes: Based on the recommended timing, modify the timing settings of the vertical and horizontal drive reset signals.

4. The image refresh optimization method as described in claim 1, characterized in that, The image driving signal refresh duration parameter includes: vertical driving start signal setting time; The step of modifying the image drive signal refresh duration parameter based on the recommended timing includes: Based on the recommended timing, modify the setting time of the vertical drive start signal.

5. The image refresh optimization method as described in claim 1, characterized in that, The image driving signal refresh duration parameter includes: the horizontal driving start signal setting time; The step of modifying the image drive signal refresh duration parameter based on the recommended timing includes: Based on the recommended timing, modify the setting time of the horizontal drive start signal.

6. The image refresh optimization method as described in claim 1, characterized in that, The image driving signal refresh duration parameter includes: the duration of the horizontal driving clock signal level; The step of modifying the image drive signal refresh duration parameter based on the recommended timing includes: The duration of the horizontal drive clock signal level is modified according to the recommended timing.

7. The image refresh optimization method as described in claim 1, characterized in that, Also includes: Store the current frame image into the first buffer and determine whether the storage was successful. The first cache is a cache whose status is set to background. If the storage is successful, the state of the first buffer is set to the display state, and it is confirmed whether the previous frame image in the second buffer has been displayed completely; the second buffer is a buffer with its state set to the foreground state; the IO interface screen is used to display the image frame in the buffer set to the foreground state; If it is confirmed that the previous frame image has been displayed, then the state of the first buffer is set to the foreground state, and the state of the second buffer is set to the background state; The buffer set to the background state is used to store the next frame of the image.

8. An image refresh optimization device for an electronic device, wherein, The screen of the electronic device is an I / O interface screen, and the image refresh optimization device is based on the image refresh optimization method as described in any one of claims 1 to 7, characterized in that it includes: The time acquisition module is used to obtain the total time consumed when the previous frame of the image is refreshed in time sequence; The parameter modification module is used to modify the refresh duration parameter of the image driving signal according to the timing recommendation time. The timing recommendation time is the refresh duration recommendation time of the image driving signal corresponding to the timing in the pre-stored data manual. The refresh duration parameter of the image driving signal includes: the low level duration of the vertical and horizontal drive reset signal, the setting time of the vertical and horizontal drive reset signal, the setting time of the vertical drive start signal, the setting time of the horizontal drive start signal, or the level duration of the horizontal drive clock signal. The refresh module is used to refresh the current frame image sequentially using the modified image drive signal refresh duration parameter. Furthermore, the time acquisition module is also used to acquire the total time consumed when the current frame image is refreshed; The calculation module is used to calculate the total time consumed when the previous frame image is refreshed in time sequence, and the difference between the total time consumed when the current frame image is refreshed; The judgment module is used to determine whether the difference is greater than a preset value; The refresh module is also used to refresh the next frame image in sequence using the modified image driving signal refresh duration parameter when the judgment result of the judgment module is greater than the preset value. When the judgment result of the judgment module is not greater than the preset value, the time acquisition module, parameter modification module, refresh module, calculation module and judgment module are further used to take the current frame image as the previous frame image and repeat steps one to four until the judgment result is greater than the preset value.

9. An electronic device, characterized in that, include: Microcontroller unit; The I / O interface screen is communicatively connected to the microcontroller unit; The microcontroller unit is used to execute the image refresh optimization method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.