Dynamic picture display method and device for serial port screen, electronic equipment and storage medium
By using interrupt receiving and processing of picture update data in the serial port screen, the problem of waste of resources and dynamic display complexity of traditional serial port screens is solved, and efficient picture update and cropping functions are realized.
Patent Information
- Application Number
- CN202411133173.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-06
AI Technical Summary
Traditional serial port screens cannot perform other operations at the same time when updating pictures, resulting in waste of resources and unfriendly system, and the dynamic cropping and display functions of dynamically cropping and displaying them is difficult to achieve.
By turning on interrupts to receive image update data from external devices, store it in a temporary cache, and store it in memory, avoiding processor thread blockage, realizing dynamic update of pictures, using interrupt methods to improve resource utilization, and parsing and The packet serial number processes the picture data.
It improves the utilization rate of the processor, realizes that pictures can be updated dynamically without changing the sequence of thread interrupts, and simplifies the implementation of dynamic cropping and display functions.
Smart Images

Figure CN119088329A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field, and in particular to a method, device, electronic device and computer-readable storage medium for dynamically displaying pictures on a serial port screen. Background Art
[0002] Serial port screen, intelligent serial port control display screen with secondary development in configurable way, refers to a thin film transistor (TFT) color LCD display control module with serial port communication, which can be connected to external devices such as PLC, inverter, temperature control instrument, data acquisition module, etc., use the display screen to display relevant data, write parameters or input operation instructions through input units such as touch screen, key, mouse, etc., so as to realize information interaction between users and machines. It is widely used in various display fields such as industrial automation, smart home appliances, transportation tracks, data rooms, charging piles, power medical, national defense security, shared equipment, etc.
[0003] The traditional serial port screen solution is based on the human-computer interaction process between the microcontroller unit and the screen. Most of them realize specific functions through the graphical user interface and the interaction of serial port data. The serial port screens on the market are generally directly driven by pure hardware, relying on the main chip to handle all functions. They are generally single-threaded and the processing method is blocking.
[0004] Due to the single-threaded nature of the existing serial port screen, when updating pictures via the serial port, other operations cannot be performed during the update process. The user can only waste running resources waiting for the process to complete before processing other functions. From the perspective of system resource optimization, this implementation method is not user-friendly.
[0005] At the same time, since the existing technologies all implement specific functions through the interactive mode of graphical user interface and serial port data, the configuration integration under this open mode is relatively high, and the display function of dynamically cropping pictures based on screen coordinates is not easy to implement or the implementation method is relatively complicated. Summary of the invention
[0006] In order to solve at least one of the above technical problems, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for dynamic display of pictures on a serial port screen.
[0007] In a first aspect, an embodiment of the present application provides a method for dynamically displaying pictures on a serial port screen, comprising:
[0008] Enable interrupts and store the image update data sent by the external device received through the serial interface in the target temporary buffer;
[0009] Storing the image update data in the target temporary cache into the image file stored in the memory of the serial port screen;
[0010] Receiving a display instruction sent by an external device;
[0011] The picture update data in the picture file is displayed according to the display instruction.
[0012] In the above implementation process, the interrupt is enabled to store the image update data sent by the external device received through the serial interface in the target temporary cache, and the image update data in the target temporary cache is further stored in the image file stored in the memory of the serial port screen, and finally the image update data is displayed according to the display instruction. The image update data is directly stored in the memory by means of an interrupt, which avoids processor thread blockage and improves resource utilization. At the same time, based on the above method, the file data in the memory can also be directly displayed by display instructions, and the dynamic update of the image can be realized without changing the thread interrupt sequence of the processor by writing code.
[0013] Further, storing the picture update data sent by the external device and received through the serial interface in the target temporary cache includes:
[0014] Receiving picture frame data sent by the external device;
[0015] Parsing the picture frame data to obtain the function code and the picture update data in the picture frame data;
[0016] The picture update data is stored in the target temporary buffer according to the function code.
[0017] In the above implementation process, by parsing the function code in the picture frame data, the key information of the received picture update data can be known. According to the key information, the picture update data can be stored in the target temporary cache to facilitate subsequent calls and displays.
[0018] Further, storing the picture update data in the target temporary cache according to the function code includes:
[0019] If the function code is the first function code, the number of picture update data packets corresponding to the picture update data is parsed in the picture frame data;
[0020] If the function code is the second function code, parsing the picture frame data to obtain a picture update data packet sequence number containing the picture update data;
[0021] The picture update data is stored in the target temporary buffer according to the number of the picture update data packets and the sequence number of the picture update data packets.
[0022] In the above implementation process, when the function code is the first function code, by parsing the picture frame data, it can be determined how many data packets all the picture update data to be sent by the external device are stored in. When the function code is the second function code, by parsing the picture frame data, it can be known which data packet the external device is currently sending, thereby determining whether all the picture update data has been received.
[0023] Further, storing the picture update data in the target temporary cache according to the number of the picture update data packets and the picture update data packet sequence number includes:
[0024] If the sequence number of the picture update data packet is less than the number of the picture update data packets, the picture update data packets are cached in the target temporary cache in the form of an array.
[0025] In the above implementation process, if the sequence number of the picture update data packet is less than the number of the picture update data packets, the picture update data is cached in the target temporary cache in the form of an array. The picture update data is first cached in the target temporary cache in the form of an array. When an error occurs in the transmission of the picture update data, the deletion speed of the picture update data can be improved based on the array method.
[0026] Further, storing the image update data in the target temporary cache into an image file stored in the memory of the serial port screen includes:
[0027] If the sequence number of the picture update data packet is equal to the number of the picture update data packets, the picture update data in the array form is written into the picture file.
[0028] In the above implementation process, if the sequence number of the picture update data packet is greater than the number of the picture update data packets, it means that the picture update data has been completely received, and all the data can be stored in the picture file.
[0029] Further, the display instruction includes: a target location;
[0030] The displaying the picture update data in the picture file according to the display instruction includes:
[0031] If the sequence number of the picture update data packet is equal to the number of the picture update data packets, the picture update data in the array form is written into the picture file.
[0032] In the above implementation process, if the sequence number of the picture update data packet is equal to the number of the picture update data packets, the picture update data in the array form is written into the picture file, so as to be directly called and displayed by the serial port screen later.
[0033] Furthermore, before storing the picture update data sent by the external device received through the serial interface in the target temporary buffer, the method further includes:
[0034] Receiving a picture sending instruction sent by the external device;
[0035] A response instruction is sent to the external device according to the sending instruction, so that the external device sends the picture update data to the serial port screen.
[0036] In the above implementation process, the external device actively sends the picture sending instruction to notify the serial port screen to store the picture update data in the target temporary cache in the form of interruption, thereby improving the flexible control of the display effect of the serial port screen.
[0037] The beneficial effect of the present application is that the processor only needs to execute an interrupt to store the serial image update data into a temporary cache and then write it into the image file. The processor can execute other tasks after the interrupt is executed, and does not need to wait for the image update data to be completely stored in the target temporary cache before executing other tasks, thereby improving the utilization rate of the processor.
[0038] In a second aspect, the present application provides a picture dynamic display device of a serial port screen, comprising:
[0039] A receiving module, used for storing the picture update data sent by the external device received through the serial interface in the target temporary buffer;
[0040] A storage module, used for storing the image update data in the target temporary cache into an image file stored in the memory of the serial port screen;
[0041] The receiving module is also used to receive a display instruction sent by an external device;
[0042] A display module is used to display the picture update data in the picture file according to the display instruction.
[0043] In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.
[0044] In a fourth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0045] In a fifth aspect, the present application provides a computer-readable storage medium having instructions stored thereon. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.
[0046] Other features and advantages disclosed in the present application will be described in the following description, or some features and advantages can be inferred or determined without doubt from the description, or can be learned by implementing the above-mentioned technology disclosed in the present application.
[0047] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 A schematic diagram of a flow chart of a method for dynamically displaying pictures on a serial port screen provided in an embodiment of the present application;
[0050] Figure 2 A schematic diagram of a picture dynamic display device of a serial port screen provided in an embodiment of the present application;
[0051] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0053] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0054] See also Figure 1 The embodiment of the present application provides a method for dynamically displaying pictures on a serial port screen, comprising:
[0055] S1: Enable interruption and store the image update data sent by the external device received through the serial interface in the target temporary buffer;
[0056] S2: storing the image update data in the target temporary cache into the image file stored in the memory of the serial port screen;
[0057] S3: receiving a display instruction sent by an external device;
[0058] S4: Displaying the picture update data in the picture file according to the display instruction.
[0059] In the above embodiment, the external device may be a single chip microcomputer, a processor, etc. The method may be applied to a processor of a serial port screen, and the serial port screen at least includes: a processor, a target temporary buffer, a memory, and a serial port display screen.
[0060] Exemplarily, the external device sends a serial port command to download a picture and waits for a response from the serial port screen; after the serial port screen receives the response, the microcontroller serial port sends the corresponding binary picture data to the serial port screen, and the serial port of the serial port screen receives the corresponding data and writes it into the picture file.
[0061] In the above implementation process, the interrupt is enabled to store the image update data sent by the external device received through the serial interface in the target temporary cache, and the image update data in the target temporary cache is further stored in the image file stored in the memory of the serial port screen, and finally the image update data is displayed according to the display instruction. The image update data is directly stored in the memory by means of an interrupt, which avoids processor thread blockage and improves resource utilization. At the same time, based on the above method, the file data in the memory can also be directly displayed by display instructions, and the dynamic update of the image can be realized without changing the thread interrupt sequence of the processor by writing code.
[0062] In some embodiments, storing the picture update data sent by an external device received via a serial interface in a target temporary cache includes: receiving picture frame data sent by the external device; parsing the picture frame data to obtain a function code and the picture update data in the picture frame data; and storing the picture update data in the target temporary cache according to the function code.
[0063] Exemplarily, the serial port screen performs serial port interrupt processing, and each time the corresponding byte of data is received, it can be processed in the on_uart_recv_data() callback function, and the on_uart_recv_data() callback function receives the picture frame data sent by the external device; parses the picture frame data to obtain the function code and the picture update data in the picture frame data; and stores the picture update data in the target temporary cache according to the function code.
[0064] In the above implementation process, by parsing the function code in the picture frame data, the key information of the received picture update data can be known. According to the key information, the picture update data can be stored in the target temporary cache to facilitate subsequent calls and displays.
[0065] In some embodiments, storing the picture update data in the target temporary cache according to the function code includes: if the function code is a first function code, parsing the number of picture update data packets corresponding to the picture update data in the picture frame data; if the function code is a second function code, parsing the picture update data packet sequence number containing the picture update data in the picture frame data; storing the picture update data in the target temporary cache according to the number of the picture update data packets and the picture update data packet sequence number.
[0066] In the above implementation process, when the function code is the first function code, by parsing the picture frame data, it can be determined how many data packets all the picture update data to be sent by the external device are stored in. When the function code is the second function code, by parsing the picture frame data, it can be known which data packet the external device is currently sending, thereby determining whether all the picture update data has been received.
[0067] In some embodiments, storing the picture update data in the target temporary cache according to the number of the picture update data packets and the picture update data packet sequence number includes: if the picture update data packet sequence number is less than the number of the picture update data packets, caching the picture update data in the target temporary cache in the form of an array.
[0068] In the above implementation process, if the sequence number of the picture update data packet is less than the number of the picture update data packets, the picture update data is cached in the target temporary cache in the form of an array. The picture update data is first cached in the target temporary cache in the form of an array. When an error occurs in the transmission of the picture update data, the deletion speed of the picture update data can be improved based on the array method.
[0069] In some embodiments, storing the image update data in the target temporary cache into an image file stored in the memory of the serial port screen includes: if the sequence number of the image update data packet is equal to the number of the image update data packets, writing the image update data in array form into the image file.
[0070] It is understandable that, under normal circumstances, the serial numbers of the data packets received by the serial port screen are increasing, such as 1, 2, 3, etc.
[0071] For example, in the on_uart_recv_data() callback function, if the function code of the received picture frame data is 0x40, the corresponding file size is calculated, which corresponds to the number of data packets that need to be transmitted. If the processing is successful, __uart_return_reply(0x01) is triggered to return the corresponding response data; if the function code of the received picture frame data is 0x41, the received data packets are cached, and the relationship between the number of data packets and the sequence number of the data packets is used to decide whether to use it as an array cache or write a file operation. When the sequence number of the last received data packet is equal to the number of data packets, the cached array is written to the file.
[0072] The serial port screen verifies the received file data to confirm that the received image data is correct. The image file has been cached in the screen's memory. By sending a command with a function code of 0x33, the draw_image_file() function is triggered, which can dynamically present the image required by the user according to the corresponding coordinate size and the cropping position of the image.
[0073] In the above implementation process, if the sequence number of the picture update data packet is greater than the number of the picture update data packets, it means that the picture update data has been completely received, and all the data can be stored in the picture file.
[0074] In some embodiments, the display instruction includes: a target position; displaying the image update data in the image file according to the display instruction includes: if the image update data packet sequence number is equal to the number of the image update data packets, writing the array form of the image update data into the image file.
[0075] Exemplarily, the correspondence is implemented by the following function draw_image_file(image_name, dstx, dsty, width, height, 0, 0), parameter introduction: image_name: image storage path; dstx: x coordinate of image display; dsty: y coordinate of image display; width: width of image display; height: height of image display; 0: x coordinate of image cropping; 0: y coordinate of image cropping. The display instruction may include: x coordinate of image display; dsty: y coordinate of image display; width: width of image display; height: height of image display; 0: x coordinate of image cropping; 0: y coordinate of image cropping. The display instruction may include one or more of: x coordinate of image display; dsty: y coordinate of image display; width: width of image display; height: height of image display; 0: x coordinate of image cropping; 0: y coordinate of image cropping.
[0076] In the above implementation process, if the sequence number of the picture update data packet is equal to the number of the picture update data packets, the picture update data in the array form is written into the picture file, so as to be directly called and displayed by the serial port screen later.
[0077] In some embodiments, before storing the image update data sent by an external device received via a serial interface in a target temporary cache, it also includes: receiving an image sending instruction sent by the external device; and sending a response instruction to the external device according to the sending instruction, so that the external device sends the image update data to the serial port screen.
[0078] In the above implementation process, the external device actively sends the picture sending instruction to notify the serial port screen to store the picture update data in the target temporary cache in the form of interruption, thereby improving the control flexibility of the serial port screen.
[0079] The beneficial effect of the present application is that the processor only needs to execute an interrupt to store the serial image update data into a temporary cache and then write it into the image file. The processor can execute other tasks after the interrupt is executed, and does not need to wait for the image update data to be completely stored in the target temporary cache before executing other tasks, thereby improving the utilization rate of the processor.
[0080] See also Figure 2 This embodiment also provides a picture dynamic display device of a serial port screen, including:
[0081] The receiving module 1 is used to enable interruption and store the picture update data sent by the external device received through the serial interface in the target temporary buffer;
[0082] Storage module 2, used for storing the picture update data in the target temporary cache into the picture file stored in the memory of the serial port screen;
[0083] The receiving module 1 is also used to receive a display instruction sent by an external device;
[0084] The display module 3 is used to display the picture update data in the picture file according to the display instruction.
[0085] The device of this embodiment is also used to execute the above-mentioned dynamic picture display method of the serial port screen.
[0086] This application also provides an electronic device, see Figure 3 , Figure 3 A block diagram of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33, and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the electronic device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.
[0087] The processor 31 mentioned above can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.
[0088] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 33 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 31, the electronic device may execute the various steps involved in the above method embodiment.
[0089] Optionally, the electronic device may further include a storage controller and an input / output unit.
[0090] The memory 33, storage controller, processor 31, peripheral interface, input and output unit components are directly or indirectly electrically connected to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the electronic device.
[0091] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.
[0092] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0093] The embodiment of the present application also provides a storage medium having instructions stored thereon. When the instructions are run on a computer, the method of the method embodiment is implemented when the computer program is executed by a processor. To avoid repetition, it will not be described again here.
[0094] The present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the method of the method embodiment.
[0095] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0096] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0097] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0098] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0099] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0100] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for dynamically displaying pictures on a serial port screen, characterized in that: include: storing the picture update data sent by the external device received through the serial interface in the target temporary buffer; Storing the image update data in the target temporary cache into the image file stored in the memory of the serial port screen; Receiving a display instruction sent by an external device; The picture update data in the picture file is displayed according to the display instruction.
2. The method for dynamic display of pictures of a serial port screen according to claim 1, characterized in that: The step of storing the picture update data sent by the external device and received through the serial interface in the target temporary buffer comprises: Receiving picture frame data sent by the external device; Parsing the picture frame data to obtain the function code and the picture update data in the picture frame data; The picture update data is stored in the target temporary buffer according to the function code.
3. The method for dynamic display of pictures of a serial port screen according to claim 2, characterized in that: The storing the picture update data in the target temporary cache according to the function code comprises: If the function code is the first function code, the number of picture update data packets corresponding to the picture update data is parsed in the picture frame data; If the function code is the second function code, parsing the picture frame data to obtain a picture update data packet sequence number containing the picture update data; The picture update data is stored in the target temporary buffer according to the number of the picture update data packets and the sequence number of the picture update data packets.
4. The method for dynamic display of pictures of a serial port screen according to claim 3, characterized in that: The storing the picture update data in the target temporary cache according to the number of the picture update data packets and the sequence number of the picture update data packets comprises: If the sequence number of the picture update data packet is less than the number of the picture update data packets, the picture update data packets are cached in the target temporary cache in the form of an array.
5. The method for dynamic display of pictures of a serial port screen according to claim 4, characterized in that: The storing of the image update data in the target temporary cache into the image file stored in the memory of the serial port screen includes: If the sequence number of the picture update data packet is equal to the number of the picture update data packets, the picture update data in the array form is written into the picture file.
6. The method for dynamic display of pictures of a serial port screen according to claim 1, characterized in that: The display instruction includes: a target position; The displaying the picture update data in the picture file according to the display instruction includes: Display the image update data corresponding to the target position.
7. The method for dynamic display of pictures of a serial port screen according to claim 1, characterized in that: Before storing the picture update data sent by the external device received through the serial interface in the target temporary buffer, the method further includes: Receiving a picture sending instruction sent by the external device; A response instruction is sent to the external device according to the sending instruction, so that the external device sends the picture update data to the serial port screen.
8. A picture dynamic display device for a serial port screen, characterized in that: include: The receiving module is used to enable interruption and store the picture update data sent by the external device received through the serial interface in the target temporary buffer; A storage module, used for storing the image update data in the target temporary cache into an image file stored in the memory of the serial port screen; The receiving module is also used to receive a display instruction sent by an external device; A display module is used to display the picture update data in the picture file according to the display instruction.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 7.
