Debugging method and device of display device, computer device and storage medium
Patent Information
- Application Number
- CN202310028873.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2043-01-09
AI Technical Summary
[0004]但是,上述接口通常不会暴露在显示器外壳,需要打开显示器外壳才能对显示器进行调试,调试的效率较低
[0029]另一方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序由处理器加载并执行,以实现如上述方面所述的显示设备的调试方法。
Smart Images

Figure CN116193104B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a debugging method, apparatus, computer equipment, and storage medium for a display device. Background Technology
[0002] In displays of devices such as televisions, tablets, and laptops, the display driver chip is a crucial component, its primary function being to control the image formation on the screen. By adjusting the display driver chip or upgrading its firmware, the display's image quality can be improved.
[0003] In related technologies, during the debugging or firmware upgrade of display driver chips, it is necessary to connect the debugging equipment and the display driver chip through an interface so that data can be transmitted between them. Common interfaces include JTAG (Joint Test Action Group), UART (Universal Asynchronous Receiver Transmitter), and I2C (Inter-Integrated Circuit).
[0004] However, the aforementioned interfaces are usually not exposed on the monitor casing, requiring the monitor casing to be opened to debug the monitor, which results in low debugging efficiency. Summary of the Invention
[0005] This application provides a debugging method, apparatus, computer device, and storage medium for a display device, the technical solution of which is as follows:
[0006] On the one hand, a debugging method for a display device is provided, the method comprising:
[0007] The data operation instructions are received based on the display interface of the display device and written into the first storage area.
[0008] The data operation instruction is executed based on the first storage area, and the execution result is written to the second storage area. The execution result is used to indicate whether the data operation instruction was executed successfully.
[0009] If the execution result in the second storage area is read by the debugging device, the second storage area is cleared.
[0010] On the other hand, a debugging apparatus for a display device is provided, the apparatus comprising:
[0011] The first writing module is used to receive data operation instructions based on the display interface of the display device and write the data operation instructions into the first storage area.
[0012] The second writing module is used to execute the data operation instruction based on the first storage area and write the execution result into the second storage area. The execution result is used to indicate whether the data operation instruction was executed successfully.
[0013] The clear module is used to clear the second storage area when the execution result in the second storage area is read by the debugging device.
[0014] In some embodiments, the access type of the data operation instruction includes a read operation; the second writing module is configured to, when the access type is a read operation, read first data from the memory of the display device based on a first address and a data length obtained by parsing the data operation instruction, wherein the starting address of the first data is the first address and the length of the first data is the data length; write the first data into a third storage area, the third storage area being used to store data sent by the display device to the debugging device; and write a first execution result into the second storage area, the first execution result being used to indicate that the read operation was executed successfully.
[0015] In some embodiments, the access type of the data operation instruction further includes a write operation; the second writing module is configured to, when the access type is a write operation, write the second data into the memory based on the second address and the second data obtained by parsing the data operation instruction, wherein the starting address of the second data is the second address; and write the second execution result into the second storage area, wherein the second execution result is used to indicate that the write operation was executed successfully.
[0016] In some embodiments, the apparatus further includes:
[0017] The sending module is configured to send an interrupt signal to the central processing unit of the display device in response to writing the data operation instruction into the first storage area;
[0018] The parsing module is used to parse the data operation instructions based on the interrupt signal received by the central processing unit, and determine the access type of the data operation instructions.
[0019] In some embodiments, the second writing module is configured to read the first byte of the data operation instruction, wherein the high n bits of the first byte are used to indicate the access type of the data operation instruction, and the low 8-n bits of the first byte are used to indicate the number of bytes included in the data operation instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8; if the high n bits of the first byte are a first identifier, the second data is written to the memory of the display device based on the second address indicated by the second to fifth bytes of the data operation instruction and the second data indicated by the sixth to last bytes, wherein the starting address of the second data is the second address; and a second execution result is written to the second storage area, wherein the second execution result is used to indicate that the data operation instruction was executed successfully.
[0020] In some embodiments, the second writing module is configured to, when the high n bits of the first byte are a second identifier, read first data from the memory of the display device based on the first address indicated by the second to fifth bytes of the data operation instruction and the data length indicated by the sixth byte, wherein the starting address of the first data is the first address and the length of the first data is the data length; write the first data into a third storage area, the third storage area being used to store data sent by the display device to the debugging device; and write a first execution result into the second storage area, the first execution result being used to indicate that the data operation instruction was executed successfully.
[0021] In some embodiments, the apparatus further includes:
[0022] The receiving module is configured to receive a firmware upgrade instruction based on the display interface of the display device. The firmware upgrade instruction is configured to receive multiple data blocks, which are configured to form a firmware upgrade file. The firmware upgrade file is configured to upgrade the firmware of the display device.
[0023] The determination module is used to determine the starting address of any data block based on the firmware upgrade instruction received from the display interface, wherein the data block includes multiple data frames;
[0024] The acquisition module is used to receive a firmware upgrade instruction based on the display interface for any data frame, and to acquire the data frame and its sequence number.
[0025] The third writing module is used to write the plurality of data frames into the memory of the display device based on the starting address of the data block and the sequence number of the data frame.
[0026] In some embodiments, the receiving module is configured to read the first byte of the firmware upgrade instruction, wherein the high n bits of the first byte are used to indicate the type of the firmware upgrade instruction, and the low 8-n bits of the first byte are used to indicate the number of bytes included in the firmware upgrade instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8; if the high n bits of the first byte are a third identifier, the firmware upgrade instruction is a request instruction, and based on the request instruction, a third execution result is written to the second storage area, the third execution result being used to indicate receipt of the request instruction, which is used to request an upgrade of the display device's firmware; if the high n bits of the first byte are a fourth identifier, the firmware upgrade instruction is an address setting. The firmware upgrade instruction is a data frame transmission instruction. Based on the third address indicated by the second to fifth bytes of the address setting instruction, the starting address of the data block is determined. If the high n bits of the first byte are the fifth identifier, the firmware upgrade instruction is a data frame transmission instruction. Based on the sequence number of the data frame indicated by the second byte of the data frame transmission instruction and the third data indicated by the third to sixteenth bytes, the data frame and its sequence number are determined. If the high n bits of the first byte are the sixth identifier, the firmware upgrade instruction is a termination instruction. Based on the termination instruction, a fourth execution result is written to the second storage area. The fourth execution result indicates that the firmware upgrade of the display device is complete, and the termination instruction indicates that the last data block has been sent.
[0027] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to implement the debugging method of the display device as described above.
[0028] On the other hand, a computer-readable storage medium is provided, wherein at least one computer program is stored therein, the at least one computer program being loaded and executed by a processor to implement the debugging method for the display device as described above.
[0029] On the other hand, a computer program product is provided, including a computer program that is loaded and executed by a processor to implement the debugging method for the display device as described above.
[0030] This application provides a debugging scheme for a display device. The debugging device can debug the display device through its display interface. The display device receives data operation instructions through the display interface and writes these instructions into a first storage area. Then, it executes the data operation instructions and writes the execution result into a second storage area. By reading the execution result from the second storage area, the debugging device can determine whether the display device has successfully executed the data operation instructions. After reading the completion instruction, the debugging device clears the second storage area to allow the execution result of the next data operation instruction to be written there. This allows the display device to be debugged directly through the display interface, improving debugging efficiency. Attached Figure Description
[0031] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0032] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application;
[0033] Figure 2 This is a flowchart of a debugging method for a display device provided in an embodiment of this application;
[0034] Figure 3 This is a flowchart of another debugging method for a display device provided in an embodiment of this application;
[0035] Figure 4 This is a schematic diagram of a storage area provided in an embodiment of this application;
[0036] Figure 5 This is a schematic diagram illustrating the interaction between a debugging device and a display device according to an embodiment of this application;
[0037] Figure 6 This is a schematic diagram illustrating the interaction between another debugging device and a display device provided in an embodiment of this application;
[0038] Figure 7 This is a schematic diagram of the structure of a debugging device for a display device provided in an embodiment of this application;
[0039] Figure 8 This is a schematic diagram of the structure of a debugging device for another display device provided in an embodiment of this application;
[0040] Figure 9 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0042] It is understood that the terms "first," "second," etc., used in this application may be used to describe various concepts herein, but unless otherwise stated, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of this application, a first storage region may be referred to as a second storage region, and similarly, a second storage region may be referred to as a first storage region.
[0043] "At least one" refers to one or more data blocks. For example, at least one data block can be one data block, two data blocks, three data blocks, or any integer number of data blocks greater than or equal to one. "Multiple" refers to two or more data blocks. For example, multiple data blocks can be two data blocks, three data blocks, or any integer number of data blocks greater than or equal to two. "Each" refers to each of the at least one data block. For example, each data block refers to each of the multiple data blocks. If the multiple data blocks are three data blocks, then each data block refers to each of the three data blocks.
[0044] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first data, second data, and third data involved in this application were all obtained with full authorization.
[0045] Figure 1 This is a schematic diagram of an implementation environment provided in an embodiment of this application. See also... Figure 1 The implementation environment includes: display device 101 and debugging device 102.
[0046] Display device 101 can be at least one of the following: LCD monitor, smartphone, smartwatch, desktop computer, laptop, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), and laptop computer.
[0047] Display device 101 is used to receive image signals and display images based on the image signals. Display device 101 includes a display screen and a display driver chip. The display driver chip is one of the important components of the display device's imaging system, and its main function is to control the imaging of the display screen.
[0048] The debugging device 102 can be at least one of a smartphone, desktop computer, laptop, or tablet computer. An application can be installed and run on the debugging device 102 for debugging and firmware upgrades of the display device 101. The display device 101 can be connected to the debugging device 102 via the display interface of its display driver chip. This display interface is a DisplayPort interface. Users can log into the application through the debugging device 102. This application reads or writes data to the display driver chip of the display device 101 via the display interface to debug and upgrade the display driver chip's firmware.
[0049] Figure 2 This is a flowchart illustrating a debugging method for a display device according to an embodiment of this application. This embodiment is executed by a display device, which can be a terminal or an external device connected to the terminal for displaying images. See also... Figure 2 The method includes:
[0050] 201. Receive data operation instructions based on the display interface of the display device, and write the data operation instructions into the first storage area.
[0051] In this embodiment, the display device is used to display images. The display device has a display interface, through which it can connect to a debugging device. The debugging device sends data operation instructions to the display device through the display interface. These data operation instructions are used to instruct the display device to be debugged. Based on the display interface, the display device receives the data operation instructions sent by the debugging device and writes these instructions into a first storage area of the display device. The first storage area is used to store the instructions received by the display device.
[0052] 202. Execute data operation instructions based on the first storage area, and write the execution results to the second storage area. The execution results are used to indicate whether the data operation instructions were executed successfully.
[0053] In this embodiment, the display device sequentially executes data operation instructions stored in the first storage area. Based on these instructions, the display device writes data to or reads data from its memory to debug the device. After successfully executing the data operation instruction, the display device writes the execution result to the second storage area. The second storage area stores the execution result of the received instructions, which can be either successful or unsuccessful.
[0054] 203. If the execution result in the second storage area is read by the debugging device, clear the second storage area.
[0055] In this embodiment, the debugging device determines that the display device has successfully executed the aforementioned data operation instruction by reading the execution result stored in the second storage area. When the execution result stored in the second storage area of the display device is read by the debugging device, the execution result stored in the second storage area is cleared, so that the execution result corresponding to the next data operation instruction and the execution result corresponding to the next data operation instruction read by the debugging device can be written into the second storage area.
[0056] This application provides a debugging method for a display device. The debugging device can debug the display device through its display interface. The display device receives data operation instructions through the display interface and writes these instructions into a first storage area. Then, it executes the data operation instructions and writes the execution result into a second storage area. By reading the execution result from the second storage area, the debugging device can determine whether the display device has successfully executed the data operation instructions. After reading the completion instruction, the debugging device clears the second storage area to allow the execution result of the next data operation instruction to be written there. This allows the display device to be debugged directly through the display interface, improving debugging efficiency.
[0057] Figure 3 This is a flowchart illustrating another debugging method for a display device provided in this application embodiment. This application embodiment is executed by a display device, which can be a terminal or an external device connected to the terminal for displaying images. See also... Figure 3 The method includes:
[0058] 301. Receive data operation instructions based on the display interface of the display device, and write the data operation instructions into the first storage area.
[0059] In this embodiment, the display device is used to display images. The display device has a display interface, through which it can connect to a debugging device. The debugging device sends data operation instructions to the display device through the display interface. These data operation instructions are used to instruct the display device to be debugged. Based on the display interface, the display device receives the data operation instructions sent by the debugging device and writes these instructions into a first storage area of the display device. The first storage area is used to store the instructions received by the display device.
[0060] In some embodiments, the display device includes a display driver chip. The display driver chip includes a display interface, which is a DisplayPort interface. The DisplayPort interface includes four unidirectional main channels and one bidirectional auxiliary channel (Aux channel). The unidirectional main channels are used to transmit audio and video data, and the Aux channel is used to transmit control information. Based on the native Aux channel protocol, the DPCD (DisplayPort Configuration Data) registers can be read and written. The meanings of some DPCD registers are defined by the DisplayPort protocol, and read or write operations on these registers usually trigger specific actions from the display device. However, in the implementation of certain applications, some DPCD registers are not used; that is, the display device does not perform any further actions on these DPCD registers other than read and write operations. Based on these idle DPCD registers, by assigning specific meanings and associated actions to the contents of these registers, and with the help of specialized hardware and firmware, it is possible to perform read and write operations on the internal registers and memory (hereinafter collectively referred to as memory) of the display device, thereby enabling specific applications such as debugging the display driver chip and upgrading firmware.
[0061] In some embodiments, three regions that are not used by native protocol-related functions are allocated in the DPCD register region of the display device. For example... Figure 4 As shown, the three storage areas are the DPCD write area, DPCD read area, and DPCD handshake area. The first storage area is the DPCD write area, which is 16 bytes in size and used to store data written by the upstream device to the downstream device. The upstream device is the device that sends instructions, such as a debugging device. The downstream device is the device that receives instructions, such as a display device. The instructions received by the display device are data written by the upstream device to the downstream device, therefore, the instructions received by the display device are written to the first storage area. The DPCD read area is used to store data returned by the downstream device to the upstream device. The DPCD handshake area is used by the upstream device to confirm the execution result of the instructions executed by the downstream device.
[0062] 302. In response to writing data operation instructions into the first storage area, an interrupt signal is sent to the central processing unit of the display device.
[0063] In this embodiment, the display device has write operation detection capability for the first storage area. When the display device detects that a data operation instruction has been written to the first storage area, or detects that there is an unexecuted data operation instruction in the first storage area, it sends an interrupt signal to the CPU (Central Processing Unit) of the display device. The interrupt signal instructs the CPU to trigger the corresponding firmware in the display device to execute the data operation instruction, or to trigger a dedicated debugging module to execute the data operation instruction. By performing write operation detection on the first storage area, an interrupt signal can be sent to the CPU promptly after a data operation instruction is written to the first storage area, instructing the CPU to trigger the corresponding firmware or a dedicated debugging module to execute the data operation instruction, thereby improving the efficiency of executing data operation instructions.
[0064] 303. Based on the interrupt signal received by the central processing unit, the data operation instructions are parsed to determine the access type of the data operation instructions. The access types of the data operation instructions include read operations and write operations.
[0065] In this embodiment, after receiving an interrupt signal, the central processing unit (CPU) triggers the corresponding firmware in the display device to parse the data operation instruction and determine whether the access type of the data operation instruction is a read operation or a write operation. The CPU can also trigger a dedicated debugging module to parse the data operation instruction to determine its access type. By parsing the data operation instruction, the access type can be determined, and different operations can be used to execute the instruction based on the access type.
[0066] The display device executes steps 304-305 or 306-308 based on the access type of the data operation instruction.
[0067] 304. When the access type is a write operation, based on the second address and second data obtained from the parsed data operation instruction, the second data is written into the memory of the display device, and the starting address of the second data is the second address.
[0068] In this embodiment, when the access type of the data operation instruction is determined to be a write operation, the display device parses the data operation instruction to obtain a second address and second data. The second address is the starting address of the memory carried in the data operation instruction, and the second data is the data to be written to the display device's memory. Based on the second address, the display device determines the memory of the display device and writes the second data to that memory via a bus. The bus can be an APB bus (Advanced Peripheral Bus) or other types of buses; this embodiment does not limit the type of bus.
[0069] In some embodiments, the display device parses the data operation instruction by reading its bytes. This parsing can be performed via firmware or hardware within the display device. Accordingly, the display device reads the first byte of the data operation instruction. The high n bits of the first byte indicate the access type of the data operation instruction, and the low 8-n bits indicate the number of bytes included in the data operation instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. For example, if the high four bits of the first byte are 1, the access type of the data operation instruction is a write operation. Based on the second address indicated by the second to fifth bytes of the data operation instruction and the second data indicated by the sixth to last bytes, the display device writes the second data to its memory. By reading each byte of the data operation instruction, the instruction can be parsed, thereby writing the data to the corresponding memory based on the starting address of the memory indicated by the data operation instruction and the data to be written to the memory.
[0070] The format of data operation instructions with a write access type is shown in Table 1 below. The first byte of the data operation instruction is DATA0. The high four bits of the first byte are CMD, which indicates the access type of the data operation instruction. CMD is 1, indicating that the access type of the data operation instruction is a write operation. The low four bits of the first byte are data_len, which indicates the number of bytes included in the data operation instruction excluding the first byte. In Table 1, data_len is 12. The second to fifth bytes of the data operation instruction, i.e., A_BYTE0 to A_BYTE3 corresponding to DATA1 to DATA4, indicate the second address. The sixth to thirteenth bytes of the data operation instruction, i.e., D0_BYTE0 to D1_BYTE3 corresponding to DATA5 to DATA12, indicate the second data. In a specific embodiment, the width of the second data corresponding to each second address can be 8 bits, 16 bits, or 32 bits. This embodiment uses a 32-bit memory location as an example, where (D0_BYTE3, D0_BYTE2, D0_BYTE1, D0_BYTE0) represents the data to be written to address (A_BYTE3, A_BYTE2, A_BYTE1, A_BYTE0). (D1_BYTE3, D1_BYTE2, D1_BYTE1, D1_BYTE0) represents the data to be written to address (A_BYTE3, A_BYTE2, A_BYTE1, A_BYTE0+1). This data operation instruction can continuously write to two 32-bit memory locations.
[0071] Table 1
[0072]
[0073] 305. Write the second execution result to the second storage area. The second execution result is used to indicate that the write operation was successful.
[0074] In this embodiment, the display device writes the second execution result to the second storage area so that the debugging device can read the second execution result from the second storage area. The second execution result indicates that the display device has written the second data carried in the data operation instruction into the display device's memory, and that the display device has successfully executed the write operation.
[0075] In some embodiments, the second storage area is a DPCD handshake area. After the display device writes the second data into its memory, it writes a 1 to the DPCD handshake area to indicate that the display device has successfully performed the write operation. If the display device fails to perform the write operation, it writes a 0 to the DPCD handshake area.
[0076] 306. When the access type is a read operation, first data is read from the memory of the display device based on the first address and data length obtained from the parsed data operation instruction. The starting address of the first data is the first address, and the length of the first data is the data length.
[0077] In this embodiment, when the access type of the data operation instruction is determined to be a read operation, the display device parses the data operation instruction to obtain a first address and a data length. The first address is the starting address of the memory carried in the data operation instruction, and the data length is the length of the data to be read. Based on the first address, the display device determines the memory of the display device and reads first data from the memory via the bus. The length of the first data is the data length. The bus can be an APB bus or other types of buses; this embodiment does not limit the type of bus.
[0078] In some embodiments, the display device parses the data operation instruction by reading its bytes. This parsing can be performed via firmware or hardware within the display device. Accordingly, the display device reads the first byte of the data operation instruction. The high n bits of the first byte indicate the access type of the data operation instruction, and the low 8-n bits indicate the number of bytes included in the data operation instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. For example, if the high four bits of the first byte are 2, the access type of the data operation instruction is a read operation. The display device reads first data from its memory based on the first address indicated by the second to fifth bytes of the data operation instruction and the data length indicated by the sixth byte. By reading each byte of the data operation instruction, the instruction can be parsed, thereby allowing data to be read from the corresponding memory based on the starting address of the memory indicated by the data operation instruction and the length of the data to be read.
[0079] The format of data manipulation instructions with a read access type is shown in Table 2 below. The first byte of the data manipulation instruction is DATA0. The high four bits of the first byte are CMD, which indicates the access type of the data manipulation instruction. CMD is 2, indicating that the access type of this data manipulation instruction is a read operation. The low four bits of the first byte are data_len, which indicates the number of bytes included in the data manipulation instruction excluding the first byte. In Table 2, data_len is 5. The second to fifth bytes of the data manipulation instruction, i.e., DATA1 to DATA4, corresponding to A_BYTE0 to A_BYTE3, indicate the first address. The sixth byte of the data manipulation instruction, i.e., READ_LEN, indicates the data length. READ_LEN of n indicates that the first data of length n bytes is read from the memory of the display device.
[0080] Table 2
[0081] CMD|data_len A_BYTE0 A_BYTE1 A_BYTE2 A_BYTE3 n
[0082] 307. Write the first data into the third storage area, which is used to store the data sent from the display device to the debugging device.
[0083] In this embodiment, the display device writes the first data it reads into the third storage area via a bus, so that the debugging device can read the first data from the third storage area.
[0084] In some embodiments, the third storage area is a DPCD read area. The DPCD read area is used to store data returned by the downstream device to the upstream device. The display device is the downstream device, and the debugging device is the upstream device. Therefore, the first data returned by the display device to the debugging device belongs to the data returned by the downstream device to the upstream device, and thus the first data is written to the third storage area.
[0085] 308. Write the first execution result to the second storage area. The first execution result is used to indicate that the read operation was successfully executed.
[0086] In this embodiment, the display device writes the first execution result to the second storage area so that the debugging device can read the first execution result from the second storage area. The first execution result indicates that the display device has written the first data to the third storage area, and that the display device has successfully performed the read operation.
[0087] In some embodiments, the second storage area is a DPCD handshake area. After the display device writes the first data to the third storage area, it writes a 1 to the DPCD handshake area to indicate that the display device has successfully performed a read operation. If the display device fails to perform a read operation, it writes a 0 to the DPCD handshake area.
[0088] 309. If the execution result in the second storage area is read by the debugging device, clear the second storage area.
[0089] In this embodiment, the debugging device determines that the display device has successfully executed the aforementioned data operation instruction by reading the execution result stored in the second storage area. When the execution result stored in the second storage area of the display device is read by the debugging device, the execution result stored in the second storage area is cleared, so that the execution result corresponding to the next data operation instruction and the execution result corresponding to the next data operation instruction read by the debugging device can be written into the second storage area.
[0090] To further illustrate the process of debugging the display device by sending a data operation command with a write access type, the following will combine... Figure 5 The diagram illustrates the interaction between the debugging and display devices, and explains the debugging process. Figure 5 As shown, the debugging device sends a data operation command to the display device via the display interface. The display device parses the data operation command and determines that the access type is a write operation. Based on the second address and second data obtained from parsing the data operation command, the display device writes the second data into memory. After writing the second data into memory, the display device writes a 1 to the DPCD handshake area, indicating that the above data operation command was successfully executed. After a certain delay, the debugging device reads the execution result 1 from the DPCD handshake area and ends the current operation. If the execution result in the DPCD handshake area has been read by the debugging device, the display device clears the DPCD handshake area.
[0091] It should be noted that the debugging equipment can not only debug the display device, but also upgrade the firmware of the display device.
[0092] The specific process for upgrading the firmware of a display device is as follows:
[0093] The display interface of the display device receives firmware upgrade instructions and multiple data blocks. These data blocks are used to form a firmware upgrade file, which is used to upgrade the firmware of the display device.
[0094] In this embodiment, the display device receives a firmware upgrade command sent by the debugging device via a display interface, and also receives multiple data blocks sent by the debugging device via the display interface. The display device combines the multiple data blocks to obtain a firmware upgrade file composed of the multiple data blocks. By combining the multiple data blocks sent by the debugging device, a firmware upgrade file can be obtained, thereby upgrading the firmware of the display device.
[0095] In some embodiments, the debugging device sends a request instruction to the display device via the display interface, requesting an firmware upgrade for the display device. Accordingly, the display device reads the first byte of the firmware upgrade instruction. The high n bits of the first byte indicate the type of firmware upgrade instruction, and the low 8-n bits indicate the number of bytes included in the firmware upgrade instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. For example, if the high four bits of the first byte are 3, the firmware upgrade instruction is a request instruction. Based on the request instruction, the display device writes a third execution result to the second storage area. The third execution result indicates that the request instruction has been received, and the request instruction is used to request an firmware upgrade for the display device. By reading each byte of the data operation instruction, the data operation instruction can be parsed to determine that it is a request instruction, and the firmware upgrade can be performed based on the request instruction.
[0096] In some embodiments, if the third execution result in the second storage area is read by the debugging device, the second storage area is cleared.
[0097] The format of the request command is shown in Table 3 below. One byte of the request command is DATA0. The high four bits of DATA0 are CMD, and CMD of 3 indicates that the firmware upgrade command is a request command. The low four bits of DATA0 are data_len, which indicates the number of bytes included in the request command excluding the first byte. In Table 3, data_len is 0.
[0098] Table 3
[0099] CMD|data_len
[0100] In some embodiments, the debugging device sends multiple data blocks to the display device via a display interface. Accordingly, the display device receives the multiple data blocks via the display interface by performing the following steps (1) to (3).
[0101] (1) For any data block, the display device receives a firmware upgrade instruction based on the display interface, determines the starting address of the data block, the data block includes multiple data frames, the data block is used to form a firmware upgrade file, and the firmware upgrade file is used to upgrade the firmware of the display device.
[0102] In this embodiment, because the firmware upgrade file occupies a large amount of storage space, and the addresses of the memory where the data in the firmware upgrade file is to be written are not necessarily contiguous, the debugging device divides the firmware upgrade file into multiple data blocks and sends firmware upgrade instructions carrying the starting addresses of the data blocks to the display device sequentially according to the order of the data blocks. The display device receives the firmware upgrade instructions based on the display interface. The display device parses the firmware upgrade instructions to obtain the starting address of each data block. The starting address of the data block indicates the starting address at which the data block is written to the memory of the display device.
[0103] In some embodiments, after obtaining the starting address of the data block, the display device writes the execution result to the second storage area. The execution result indicates that the display device has successfully executed the firmware upgrade instruction. If the execution result in the second storage area is read by the debugging device, the second storage area is cleared so that the display device can write the corresponding execution result to the second storage area after successfully executing the next firmware upgrade instruction.
[0104] In some embodiments, the display device parses the firmware upgrade instruction by reading its bytes. This parsing can be done through the firmware itself or by the hardware within the display device. Accordingly, the display device reads the first byte of the firmware upgrade instruction. The high n bits of the first byte indicate the type of the firmware upgrade instruction, and the low 8-n bits indicate the number of bytes included in the firmware upgrade instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. For example, if the high four bits of the first byte are 4, the firmware upgrade instruction is an address setting instruction. The display device determines the starting address of the data block based on the third address indicated by the second to fifth bytes of the address setting instruction. By reading and parsing each byte of the data operation instruction, it can be determined that the data operation instruction is an address setting instruction, and thus the starting address of the data block can be determined based on the address setting instruction.
[0105] The format of the address setting instruction is shown in Table 4 below. The first byte of the address setting instruction is DATA0. The high four bits of DATA0 are CMD, and CMD of 4 indicates that the firmware upgrade instruction is an address setting instruction. The low four bits of DATA0 are data_len, which indicates the number of bytes included in the address setting instruction excluding the first byte. In Table 4, data_len is 4. The second to fifth bytes of the address setting instruction, i.e., DATA1 to DATA4, corresponding to A_BYTE0 to A_BYTE3, indicate the third address.
[0106] Table 4
[0107] CMD|data_len A_BYTE0 A_BYTE1 A_BYTE2 A_BYTE3
[0108] (2) For any data frame, the display device receives the firmware upgrade instruction based on the display interface and obtains the data frame and the data frame number.
[0109] In this embodiment, the debugging device divides each data block into multiple data frames for transmission and sends firmware upgrade instructions carrying the data frames and their sequence numbers to the display device sequentially according to the order of the data frames. Each data frame can transmit a maximum of 14 bytes. The display device receives the firmware upgrade instructions via a display interface. The display device parses the firmware upgrade instructions to obtain the data frames and their sequence numbers.
[0110] In some embodiments, after the display device receives the data frame and its sequence number, it writes the execution result to the second storage area. The execution result indicates that the display device has successfully executed the firmware upgrade instruction. If the execution result in the second storage area is read by the debugging device, the second storage area is cleared so that the display device can write the corresponding execution result to the second storage area after successfully executing the next firmware upgrade instruction.
[0111] In some embodiments, the display device parses the firmware upgrade instruction by reading its bytes. This parsing can be done through the firmware itself or by the hardware within the display device. Accordingly, the display device reads the first byte of the firmware upgrade instruction. The high n bits of the first byte indicate the type of the firmware upgrade instruction, and the low 8-n bits indicate the number of bytes included in the firmware upgrade instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. For example, if the high four bits of the first byte are 5, the firmware upgrade instruction is a data frame transmission instruction. The display device determines the data frame and its sequence number based on the sequence number of the data frame indicated by the second byte of the data frame transmission instruction and the third data indicated by bytes three through sixteen. By reading and parsing each byte of the data operation instruction, it can be determined that the data operation instruction is a data frame transmission instruction, and thus, based on the data frame transmission instruction, the data frame and its sequence number can be determined.
[0112] The format of the data frame transmission command is shown in Table 5 below. The first byte of the data frame transmission command is DATA0. The high four bits of DATA0 are CMD, and CMD of 5 indicates that the firmware upgrade command is a data frame transmission command. The low four bits of DATA0 are data_len, which indicates the number of bytes included in the data frame transmission command excluding the first byte. In Table 5, data_len is 15. The second byte of the data frame transmission command is Seq_num, which indicates the sequence number of the data frame. Since Seq_num is eight bits, the maximum data frame sequence number is 2. 8 -1 means the maximum data frame sequence number is 255, and subsequent data frames start counting from 0 again. The third to sixteenth bytes of the data frame transmission instruction, i.e., DATA2 to DATA15, correspond to BYTE0 to BYTE13, which indicate the third data.
[0113] Table 5
[0114] CMD|data_len Seq_num BYTE0 BYTE1 BYTE2 BYTE3 BYTE4 BYTE5 DATA8 DATA9 DATA10 DATA11 DATA12 DATA13 DATA14 DATA15 BYTE6 BYTE7 BYTE8 BYTE9 BYTE10 BYTE11 BYTE12 BYTE13
[0115] (3) The display device writes multiple data frames into the display device’s memory based on the starting address of the data block and the sequence number of the data frame.
[0116] In this embodiment, the display device combines the received data frames according to their sequence numbers to obtain a data block. The display device then writes the data block into its memory based on the starting address of the data block.
[0117] In some embodiments, after the debugging device has sent the last data block, it sends an end command to the display device. Accordingly, the display device reads the first byte of the firmware upgrade command. The high n bits of the first byte indicate the type of firmware upgrade command, and the low 8-n bits indicate the number of bytes included in the firmware upgrade command excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. For example, if the high four bits of the first byte are 6, the firmware upgrade command is an end command. Based on the end command, the display device writes the fourth execution result to the second storage area. The fourth execution result indicates that the firmware upgrade of the display device is complete, and the end command indicates that the last data block has been sent. By reading each byte of the data operation command and parsing it, it can be determined that the data operation command is an end command, and thus, based on the end command, it can be determined that the last data block has been sent.
[0118] The format of the end command is shown in Table 6 below. One byte of the end command is DATA0. The high four bits of DATA0 are CMD, where CMD = 6 indicates that the firmware upgrade command is an end command. The low four bits of DATA0 are data_len, which indicates the number of bytes included in the end command excluding the first byte. In Table 6, data_len is 0.
[0119] Table 6
[0120] CMD|data_len
[0121] To further illustrate the process of firmware upgrades performed on display devices by debugging equipment, the following section will combine... Figure 6 The diagram shown illustrates the interaction between the debugging and display devices, explaining the firmware upgrade process. Figure 6 As shown, the debugging device sends a request command to the display device via the display interface, requesting a firmware upgrade for the display device. The display device receives the request command and writes a third execution result into the second storage area. This third execution result indicates that the request command has been received. After the debugging device reads the third execution result from the second storage area, the display device clears the second storage area. The debugging device then sends an address setting command to the display device to set the starting address of data block 1. After obtaining the starting address of data block 1, the display device writes the corresponding execution result into the second storage area. This execution result indicates that the display device has obtained the starting address of data block 1. When the debugging device reads the execution result from the second storage area, the display device clears the second storage area. After reading the execution result, the debugging device sends a data frame transmission command to the display device to transmit the first data frame of data block 1. After obtaining the first data frame of data block 1 and its sequence number, the display device writes the corresponding execution result into the second storage area. This execution result indicates that the display device has obtained the first data frame of data block 1 and its sequence number. When the execution result in the second storage area is read by the debugging device, the display device clears the second storage area. After reading the execution result, the debugging device sends a data frame transmission command to the display device, transmitting the second data frame of data block 1, and so on, until the display device obtains the last data frame of the last data block and its sequence number. The debugging device sends a termination command to the display device, and based on the termination command, the display device writes the fourth execution result into the second storage area. The termination command indicates that the last data block has been transmitted. The debugging device reads the fourth execution result from the second storage area to confirm that the firmware upgrade of the display device is complete.
[0122] This application provides a debugging method for a display device. The debugging device can debug the display device through its display interface. The display device receives data operation instructions through the display interface and writes these instructions into a first storage area. Then, it executes the data operation instructions and writes the execution result into a second storage area. By reading the execution result from the second storage area, the debugging device can determine whether the display device has successfully executed the data operation instructions. After reading the completion instruction, the debugging device clears the second storage area to allow the execution result of the next data operation instruction to be written there. This allows debugging of the display device directly through the display interface, improving debugging efficiency. The debugging device can also perform firmware upgrades on the display device. It divides the firmware upgrade file into multiple data blocks and sends these blocks to the display device through its display interface, avoiding the problem of excessive bandwidth consumption associated with sending the firmware upgrade file. By combining these multiple data blocks, the display device obtains the firmware upgrade file, enabling firmware upgrades directly through the display interface and making firmware upgrades more convenient.
[0123] Figure 7 This is a schematic diagram of the structure of a debugging device for a display device provided in an embodiment of this application. See also... Figure 7 The device includes: a first write module 701, a second write module 702, and a clear module 703.
[0124] The first writing module 701 is used to receive data operation instructions based on the display interface of the display device and write the data operation instructions into the first storage area.
[0125] The second write module 702 is used to execute data operation instructions based on the first storage area and write the execution result to the second storage area. The execution result is used to indicate whether the data operation instructions were executed successfully.
[0126] The clear module 703 is used to clear the second storage area when the execution result in the second storage area is read by the debugging device.
[0127] In some embodiments, the access type of the data operation instruction includes a read operation; the second writing module 702 is used to read first data from the memory of the display device based on the first address and data length obtained by parsing the data operation instruction when the access type is a read operation, wherein the starting address of the first data is the first address and the length of the first data is the data length; write the first data into a third storage area, wherein the third storage area is used to store data sent from the display device to the debugging device; and write a first execution result into a second storage area, wherein the first execution result is used to indicate that the read operation was executed successfully.
[0128] In some embodiments, the access type of the data operation instruction further includes a write operation; the second write module 702 is used to write the second data into the memory based on the second address and the second data obtained by parsing the data operation instruction when the access type is a write operation, wherein the starting address of the second data is the second address; and to write the second execution result into the second storage area, wherein the second execution result is used to indicate that the write operation was executed successfully.
[0129] In some embodiments, Figure 8 This is a schematic diagram of the structure of a debugging device for another display device provided in an embodiment of this application. See also... Figure 8 As shown, the device also includes:
[0130] The sending module 704 is used to send an interrupt signal to the central processing unit of the display device in response to writing a data operation instruction into the first storage area;
[0131] The parsing module 705 is used to parse data operation instructions based on the interrupt signal received by the central processing unit and determine the access type of the data operation instructions.
[0132] In some embodiments, the second writing module 702 is used to read the first byte of a data operation instruction, wherein the high n bits of the first byte are used to indicate the access type of the data operation instruction, and the low 8-n bits of the first byte are used to indicate the number of bytes included in the data operation instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8; when the high n bits of the first byte are a first identifier, based on the second address indicated by the second to fifth bytes of the data operation instruction and the second data indicated by the sixth to last bytes, the second data is written to the memory of the display device, wherein the starting address of the second data is the second address; and the second execution result is written to the second storage area, wherein the second execution result is used to indicate that the data operation instruction was executed successfully.
[0133] In some embodiments, the second writing module 702 is configured to, when the high n bits of the first byte are a second identifier, read first data from the memory of the display device based on the first address indicated by the second to fifth bytes of the data operation instruction and the data length indicated by the sixth byte, wherein the starting address of the first data is the first address and the length of the first data is the data length; write the first data into a third storage area, the third storage area being used to store data sent from the display device to the debugging device; and write a first execution result into a second storage area, the first execution result being used to indicate that the data operation instruction was executed successfully.
[0134] In some embodiments, the apparatus further includes:
[0135] The receiving module 706 is used to receive firmware upgrade instructions based on the display interface of the display device, and to receive multiple data blocks. The multiple data blocks are used to form a firmware upgrade file, which is used to upgrade the firmware of the display device.
[0136] The determination module 707 is used to determine the starting address of any data block by receiving a firmware upgrade instruction based on the display interface. The data block includes multiple data frames.
[0137] The acquisition module 708 is used to receive a firmware upgrade instruction based on the display interface for any data frame and acquire the data frame and the data frame sequence number.
[0138] The third writing module 709 is used to write multiple data frames into the memory of the display device based on the starting address of the data block and the sequence number of the data frame.
[0139] In some embodiments, the receiving module 706 is configured to read the first byte of the firmware upgrade instruction. The high n bits of the first byte indicate the type of the firmware upgrade instruction, and the low 8-n bits of the first byte indicate the number of bytes included in the firmware upgrade instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. If the high n bits of the first byte are a third identifier, the firmware upgrade instruction is a request instruction. Based on the request instruction, a third execution result is written to the second storage area. The third execution result indicates that the request instruction has been received, and the request instruction is used to request an upgrade of the display device's firmware. If the high n bits of the first byte are a fourth identifier, the firmware upgrade instruction is an address setting instruction. Based on the third address indicated by the second to fifth bytes of the address setting instruction, the starting address of the data block is determined; when the high n bits of the first byte are the fifth identifier, the firmware upgrade instruction is a data frame transmission instruction, and the data frame and its sequence number are determined based on the sequence number of the data frame indicated by the second byte of the data frame transmission instruction and the third data indicated by the third to sixteenth bytes; when the high n bits of the first byte are the sixth identifier, the firmware upgrade instruction is an end instruction, and based on the end instruction, the fourth execution result is written to the second storage area. The fourth execution result is used to indicate that the firmware upgrade of the display device is complete, and the end instruction is used to indicate that the last data block has been sent.
[0140] This application provides a debugging apparatus for a display device, which can debug the display device through its display interface. The display device receives data operation instructions through the display interface and writes these instructions into a first storage area. Then, it executes the data operation instructions and writes the execution result into a second storage area. By reading the execution result from the second storage area, the debugging device can determine whether the display device has successfully executed the data operation instructions. After reading the completion instruction, the debugging device clears the second storage area to allow the execution result of the next data operation instruction to be written into it. This allows for debugging of the display device directly through the display interface, improving debugging efficiency.
[0141] It should be noted that the debugging device for the display device provided in the above embodiments is only an example of the division of the above functional modules. In actual applications, the terminal can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the debugging device for the display device provided in the above embodiments and the debugging method embodiments for the display device belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0142] This application also provides a computer device, which includes a processor and a memory. The memory stores at least one computer program, which is loaded and executed by the processor to implement the debugging method of the display device described above.
[0143] Optionally, the computer device is a terminal. Figure 9 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application.
[0144] Terminal 900 includes a processor 901 and a memory 902.
[0145] Processor 901 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 901 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 901 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 901 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 901 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0146] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 902 are used to store at least one computer program, which is used by the processor 901 to implement the debugging method for the display device provided in the method embodiments of this application.
[0147] In some embodiments, the terminal 900 may also optionally include a peripheral device interface 903 and at least one peripheral device. The processor 901, memory 902, and peripheral device interface 903 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 903 via a bus, signal line, or circuit board. Optionally, the peripheral device includes at least one of a radio frequency circuit 904 and a display screen 905.
[0148] Peripheral device interface 903 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 901 and memory 902. In some embodiments, processor 901, memory 902 and peripheral device interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 901, memory 902 and peripheral device interface 903 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0149] The radio frequency (RF) circuit 904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 904 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 904 can communicate with other devices through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 904 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.
[0150] Display screen 905 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 905 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 901 for processing. In this case, display screen 905 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 905, disposed on the front panel of terminal 900; in other embodiments, there may be at least two display screens 905, disposed on different surfaces of terminal 900 or in a folded design; in other embodiments, display screen 905 may be a flexible display screen, disposed on a curved or folded surface of terminal 900. Furthermore, display screen 905 may be configured as a non-rectangular irregular shape, i.e., a non-rectangular screen. Display screen 905 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).
[0151] Those skilled in the art will understand that Figure 9 The structure shown does not constitute a limitation on terminal 900, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0152] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the debugging method of the display device described above.
[0153] This application also provides a computer program product, including a computer program loaded and executed by a processor to implement the debugging method of the display device as described in the above embodiments.
[0154] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0155] The above are merely optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the protection scope of the present application.
Claims
1. A debugging method for a display device, characterized in that, The method includes: The display device receives data operation instructions based on the display interface of the display device and writes the data operation instructions into the first storage area; The display device reads the first byte of the data operation instruction based on the first storage area. The high n bits of the first byte are used to indicate the access type of the data operation instruction, and the low 8-n bits of the first byte are used to indicate the number of bytes included in the data operation instruction other than the first byte. n is an integer greater than or equal to 1 and less than 8. When the high n bits of the first byte are a first identifier, the second data is written to the memory of the display device based on the second address indicated by the second to fifth bytes of the data operation instruction and the second data indicated by the sixth to last bytes. The first identifier is used to indicate that the access type is a write operation, and the starting address of the second data is the second address. The second execution result is written to the second storage area, and the second execution result is used to indicate that the data operation instruction was executed successfully. When the second execution result in the second storage area is read by the debugging device, the display device clears the second storage area to prepare to receive and execute the next data operation instruction.
2. The method according to claim 1, characterized in that, The method further includes: When the high n bits of the first byte are the second identifier, the first data is read from the memory of the display device based on the first address indicated by the second to fifth bytes of the data operation instruction and the data length indicated by the sixth byte. The second identifier is used to indicate that the access type is a read operation, the starting address of the first data is the first address, and the length of the first data is the data length. The first data is written into a third storage area, which is used to store the data sent from the display device to the debugging device. The first execution result is written to the second storage area, and the first execution result is used to indicate that the data operation instruction was executed successfully. When the first execution result in the second storage area is read by the debugging device, the display device clears the second storage area to prepare to receive and execute the next data operation instruction.
3. The method according to claim 2, characterized in that, Before writing the first execution result or the second execution result to the second storage area, the method further includes: In response to writing the data operation instruction into the first storage area, an interrupt signal is sent to the central processing unit of the display device; Based on the interrupt signal received by the central processing unit, the data operation instruction is parsed to determine the access type of the data operation instruction.
4. The method according to claim 1, characterized in that, The method further includes: The display device receives a firmware upgrade instruction via its display interface. The firmware upgrade instruction receives multiple data blocks, which together form a firmware upgrade file. The firmware upgrade file is used to upgrade the firmware of the display device. For any data block, a firmware upgrade instruction is received based on the display interface to determine the starting address of the data block, and the data block includes multiple data frames; For any data frame, receive the firmware upgrade instruction based on the display interface, and obtain the data frame and its sequence number; Based on the starting address of the data block and the sequence number of the data frame, the plurality of data frames are written into the memory of the display device.
5. The method according to claim 4, characterized in that, The receiving of firmware upgrade instructions based on the display interface of the display device includes: Read the first byte of the firmware upgrade instruction. The high n bits of the first byte are used to indicate the type of the firmware upgrade instruction, and the low 8-n bits of the first byte are used to indicate the number of bytes included in the firmware upgrade instruction other than the first byte. n is an integer greater than or equal to 1 and less than 8. When the high n bits of the first byte are a third identifier, the firmware upgrade instruction is a request instruction. Based on the request instruction, the third execution result is written into the second storage area. The third execution result is used to indicate that the request instruction is received. The request instruction is used to request an upgrade of the firmware of the display device. When the high n bits of the first byte are the fourth identifier, the firmware upgrade instruction is an address setting instruction. Based on the third address indicated by the second to fifth bytes of the address setting instruction, the starting address of the data block is determined. When the high n bits of the first byte are the fifth identifier, the firmware upgrade instruction is a data frame transmission instruction. The data frame and its sequence number are determined based on the sequence number of the data frame indicated by the second byte of the data frame transmission instruction and the third data indicated by the third to sixteenth bytes. When the high n bits of the first byte are the sixth identifier, the firmware upgrade instruction is an end instruction. Based on the end instruction, the fourth execution result is written to the second storage area. The fourth execution result is used to indicate that the firmware upgrade of the display device is complete, and the end instruction is used to indicate that the last data block has been sent.
6. A debugging device for a display device, characterized in that, Configured in a display device, the means includes: The first writing module is used to receive data operation instructions based on the display interface of the display device and write the data operation instructions into the first storage area. The second write module is configured to read the first byte of the data operation instruction based on the first storage area. The high n bits of the first byte are used to indicate the access type of the data operation instruction, and the low 8-n bits of the first byte are used to indicate the number of bytes included in the data operation instruction excluding the first byte, where n is an integer greater than or equal to 1 and less than 8. If the high n bits of the first byte are a first identifier, the second data is written to the memory of the display device based on the second address indicated by the second to fifth bytes of the data operation instruction and the second data indicated by the sixth to last bytes. The first identifier is used to indicate that the access type is a write operation, and the starting address of the second data is the second address. A second execution result is written to the second storage area, and the second execution result is used to indicate that the data operation instruction was executed successfully. The clear module is used to clear the second storage area when the second execution result in the second storage area is read by the debugging device, in order to prepare to receive and execute the next data operation instruction.
7. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing at least one computer program, which is loaded and executed by the processor to implement the debugging method of the display device as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the debugging method of the display device as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Chip debugging agent device and chip debugging method
CN112631851A
Firmware upgrading method, system and device for interface chip and storage medium
CN115525311A
