CN113099279A - TCON parameter writing method and display device - Google Patents

TCON parameter writing method and display device Download PDF

Info

Publication number
CN113099279A
CN113099279A CN202110344338.9A CN202110344338A CN113099279A CN 113099279 A CN113099279 A CN 113099279A CN 202110344338 A CN202110344338 A CN 202110344338A CN 113099279 A CN113099279 A CN 113099279A
Authority
CN
China
Prior art keywords
tcon
bytes
working
module
check
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110344338.9A
Other languages
Chinese (zh)
Inventor
谭少峰
王双优
邱祉凯
李亚
李增波
辛化东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202110344338.9A priority Critical patent/CN113099279A/en
Publication of CN113099279A publication Critical patent/CN113099279A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • H04N21/42607Internal components of the client ; Characteristics thereof for processing the incoming bitstream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4436Power management, e.g. shutting down unused components of the receiver

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The invention discloses a method for writing TCON parameters and display equipment, which are used for realizing initialization of working parameters of TCON and reducing the influence of starting speed to the minimum. The processor is configured to perform: responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON module in the display panel if the power-on instruction is not powered on for the first time; if the check byte is the same as the check byte of the working parameter in the storage partition of the storage module, writing the working parameter in the storage partition into the TCON module, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON module in the display panel in the process of first power-on, checking the working parameter and storing all bytes of the working parameter in the storage partition after the checking is determined to be passed.

Description

TCON parameter writing method and display device
Technical Field
The invention relates to the technical field of intelligent televisions, in particular to a TCON parameter writing method and display equipment.
Background
Most of current smart television products in the market adopt a built-in logic board TCON scheme, which means that a System On Chip (SOC) realizes the function of a TCON Chip, and Power Management Unit (PMU)/display parameter Gamma and other chips of the TCON board are transplanted to an SOC motherboard, and the SOC realizes the control of the PMU/Gamma voltage parameters. The prior built-in TCON scheme generally transplants the whole PMU/Gamma to a mainboard, and because the PMU/Gamma is transferred to the mainboard from the TCON board and can share the Flash storage of an SOC end, a charged Erasable Programmable read only memory (EEPROM) at the PMU/Gamma end does not need to be reserved.
Due to the application of the scheme of storing the built-in TCON, the voltage initialization control of the PMU/Gamma chip is required to be realized at each startup, and how to improve the startup speed while realizing the initialization of the PMU/Gamma chip is an urgent technical problem to be solved.
Disclosure of Invention
The invention provides a method for writing TCON parameters and display equipment, which are used for realizing initialization of working parameters of a TCON, reducing the influence of the starting speed to the minimum and effectively accelerating the starting speed.
In a first aspect, an embodiment of the present invention provides a display device, including a display panel, a TCON module, a processor, and a memory module, where:
the storage module is used for storing the working parameters of the TCON module;
the processor is configured to perform:
responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON module in the display panel if the power-on instruction is not powered on for the first time;
if the check byte is the same as the check byte of the working parameter in the storage partition of the storage module, writing the working parameter in the storage partition into the TCON module, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON module in the display panel in the process of first power-on, checking the working parameter and storing all bytes of the working parameter in the storage partition after the checking is determined to be passed.
The display device provided by the embodiment of the invention can ensure that the starting-up speed is improved and simultaneously the working parameters of the TCON module are written into the TCON module, all bytes of the working parameters read from the display panel are verified and stored into the storage partition of the display device when the display device is powered on for the first time, and only check bytes of the working parameters in the display panel need to be read in the subsequent power-on process, so that the time for reading and checking is effectively reduced, and the starting-up speed is not influenced in the process of writing the working parameters.
In some embodiments, the processor is configured to perform:
reading all register data of the TCON module into a memory;
according to the working parameters in the memory partition, the register data is rewritten in the memory;
and writing all the rewritten register data in the memory into the TCON module.
The embodiment further provides a specific writing mode, and the embodiment can effectively shorten the writing time compared with the existing parameter writing process by reading all register data into the memory and writing all register data into the TCON module after the memory is modified.
In some embodiments, the processor is configured to perform:
determining a register address of a built-in TCON module corresponding to the working parameter;
and in the memory, rewriting the register data corresponding to the register address into the working parameter.
In some embodiments, the processor is configured to perform:
reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a CRC algorithm;
and if the check value is the same as the check byte, determining that the check is passed.
The embodiment of the invention also provides a verification mode, which is used for verifying the working parameters before the working parameters are stored in the storage partition, so that the working parameters passing the verification are stored in the storage partition, and the validity of the working parameters written into the TCON module is ensured when the working parameters are acquired from the storage partition subsequently.
In some embodiments, after reading the check byte of the operating parameter of the TCON module in the display panel, the processor is specifically further configured to perform:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the TCON module in the display panel, and checking the working parameter.
In a second aspect, an embodiment of the present invention provides a method for writing a TCON parameter, including:
responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON in the display panel if the power-on instruction is not powered on for the first time;
and if the check byte is the same as the check byte of the working parameter in the storage partition, writing the working parameter in the storage partition into the TCON, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON in a display panel in the process of first power-on, checking the working parameter and storing all bytes of the working parameter in the storage partition after the working parameter is checked to be passed.
In some embodiments, the writing the operating parameters in the memory partition to the TCON comprises:
reading all register data of the TCON into a memory;
according to the working parameters in the memory partition, the register data is rewritten in the memory;
and writing all the rewritten register data in the memory into the TCON.
In some embodiments, said completing the overwriting of the register data in the memory according to the operating parameters in the memory partition includes:
determining a register address of TCON corresponding to the working parameter;
and in the memory, rewriting the register data corresponding to the register address into the working parameter.
In some embodiments, the verifying the operating parameter and determining that the verification passes includes:
reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a CRC algorithm;
and if the check value is the same as the check byte, determining that the check is passed.
In some embodiments, after reading the check byte of the operating parameter of the TCON in the display panel, the method further includes:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the TCON in the display panel, and checking the working parameter.
In a third aspect, an embodiment of the present invention further provides an apparatus for writing a TCON parameter, including:
the reading unit is used for responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON in the display panel if the power-on instruction is not powered on for the first time;
and the writing unit is used for writing the working parameters in the storage partition into the TCON if the check bytes are the same as the check bytes of the working parameters in the storage partition, wherein the working parameters in the storage partition are obtained by reading all bytes of the working parameters of the TCON in a display panel in the process of first power-on, verifying the working parameters and storing all bytes of the working parameters in the storage partition after the working parameters are verified and the verification is determined to be passed.
In some embodiments, the write unit is specifically configured to:
reading all register data of the TCON into a memory;
according to the working parameters in the memory partition, the register data is rewritten in the memory;
and writing all the rewritten register data in the memory into the TCON.
In some embodiments, the write unit is specifically configured to:
determining a register address of TCON corresponding to the working parameter;
and in the memory, rewriting the register data corresponding to the register address into the working parameter.
In some embodiments, the write unit is specifically configured to:
reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a CRC algorithm;
and if the check value is the same as the check byte, determining that the check is passed.
In some embodiments, after reading the check byte of the operating parameter of the TCON in the display panel, the reading unit is further configured to:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the TCON in the display panel, and checking the working parameter.
In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, where the computer program is used to implement the steps of the method in the first aspect when the computer program is executed by a processor.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a TCON module type of a display device according to an embodiment of the present invention;
fig. 2 is a TCON module type of a display device according to an embodiment of the present invention;
fig. 3 is a TCON module type of a display device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a display device according to an embodiment of the present invention;
FIG. 5 is a flowchart of a boot scenario in Fast STR mode according to an embodiment of the present invention;
fig. 6 is a flowchart illustrating specific implementation steps of a TCON operating parameter initialization method according to an embodiment of the present invention;
FIG. 7 is a byte diagram of an operating parameter according to an embodiment of the present invention;
FIG. 8 is a diagram of a TCON register according to an embodiment of the present invention;
FIG. 9 is a flowchart illustrating an embodiment of a method for writing TCON parameters;
fig. 10 is a functional structure diagram for implementing TCON parameter writing according to an embodiment of the present invention;
fig. 11 is a flowchart illustrating an implementation of initialization of working parameters according to an embodiment of the present invention;
FIG. 12 is a flowchart illustrating an embodiment of a method for writing TCON parameters;
FIG. 13 is a flowchart illustrating an embodiment of a method for writing TCON parameters;
fig. 14 is a schematic diagram of a TCON parameter writing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
In some embodiments, the logic board TCON of the display device includes at least two types, type 1, as shown in fig. 1, the display device adopts an external TCON, the external TCON is located outside the main board, and is a separate TCON board, and is separated from the main board, and for the smart television of the external TCON, the working parameters such as the voltage of the external TCON are stored in an Electrically Erasable Programmable Read Only Memory (EEPROM) at a Power Management Unit (PMU)/display parameter Gamma end; and 2, the display equipment adopts a built-in TCON, PMU/Gamma chips of the built-in TCON are transplanted to a System On Chip (SOC) mainboard, and the SOC realizes the control of PMU/Gamma voltage parameters. The type 2 can be divided into two subtypes, and the subtype 1 is a built-in TCON with storage, as shown in fig. 2, the built-in TCON is located on a main board of the display device, and a memory of the built-in TCON is an EEPROM; subtype 2 is built-in TCON for memory removal, as shown in fig. 3, the built-in TCON is located on the main board of the display device and shares a memory module with the SOC.
The display device such as the smart television and the like adopting the built-in logic board TCON specifically means that the function of a TCON Chip is realized through a System On Chip (SOC), chips such as a Power Management Unit (PMU)/display parameter Gamma and the like of the TCON board are transplanted to an SOC mainboard, and the SOC realizes the control of the PMU/Gamma voltage parameter. The external TCON smart tv stores the operating parameters such as the voltage of the external TCON in a charged Erasable Programmable read only memory (EEPROM) at the PMU/Gamma end.
The prior intelligent television with built-in TCON integrally transplants PMU (microcontroller for controlling digital platform power supply function)/Gamma onto a mainboard, but still retains the original EEPROM of the TCON; in fact, because the PMU/Gamma is transferred from the TCON board to the main board, the Flash storage of the SOC end can be shared, so that the EEPROM of the PMU/Gamma end does not need to be reserved. Therefore, the embodiment of the invention is an initialization method of PMU/Gamma chips of display equipment such as a smart television with built-in TCON based on memory removal. The initialization of the working parameter of the built-in TCON refers to a step of writing the working parameter into a register of the built-in TCON in the starting process.
Because the built-in TCON removes a memory of the built-in TCON, the working parameters of the built-in TCON in the display panel are required to be read and written into a register of the built-in TCON every time the display panel is started. How to increase the boot speed while realizing the initialization of the working parameters of the built-in TCON is an urgent technical problem to be solved.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a display device, which is capable of implementing initialization of working parameters of a built-in TCON and increasing a boot speed, as shown in fig. 4, the display device includes a display panel 400, a built-in TCON module 401, a processor 402, and a storage module 403, where:
in this embodiment, a working parameter of the TCON module is stored in the display panel, and in a process of first power-on, all bytes of the working parameter of the TCON module in the display panel are read, the working parameter is verified, and after the working parameter passes the verification, all bytes of the working parameter are stored in a storage partition of a storage module; and comparing the read check byte with the check byte of the working parameter in the storage partition of the storage module, if the check byte is the same as the check byte of the working parameter in the storage partition, determining that the working parameter in the storage partition is the effective working parameter, and writing the working parameter in the storage partition into the TCON module.
It should be noted that the first power-on in this embodiment refers to the first power-on after power-on detection and factory shipment, that is, the first power-on when the user uses the display device.
In the method, in the starting-up process without first power-on, only the check bytes of the working parameters of the TCON in the display panel are read, and all bytes of the working parameters are not required to be read, so that the time for reading the working parameters is saved, and in the process of checking, only the read check bytes are required to be compared with the check bytes of the working parameters in the storage partition to judge whether the read check bytes are consistent with the check bytes of the working parameters, and the check value is not required to be calculated through the non-check bytes, so that the check time is saved. By using the method, the working parameters in the storage partition are written into the TCON, so that the starting speed can be further improved while the working parameters are initialized.
Because the built-in TCON removes a memory of the built-in TCON, the working parameters of the built-in TCON in the display panel are required to be read and written into a register of the built-in TCON every time the display panel is started. The process of each boot start is to load a small boot loader (sboot) from a boot ROM (a small mask ROM or a write-protected flash memory embedded in a processor chip and containing a first code executed by the processor at power-on or reset) of the CPU, and to ensure that the boot Environment is in a secure Environment (secure world), a secure Environment ARM Trusted Firmware (ARM) and an Open-source Trusted Execution Environment (option) need to be started in the sboot. When starting up (alternating current starting up) in a power-off state, starting up a UBoot, finishing basic hardware initialization through a first stage of a UBoot starting up process, including setting a processor mode to be an SVC mode, closing a watchdog, shielding interruption, initializing a synchronous dynamic random access memory (sdram), setting a stack, setting a clock, copying codes from a flash memory to the memory, clearing a bss section (a memory area used for storing an uninitialized global variable and a static variable which are not initialized or are initialized to be 0 in a program), and the like; and acquiring the kernel mirror image through the second stage of the UBoot starting process, moving the kernel to a proper loading address and finally finishing the kernel starting.
Because a Double Data Rate SDRAM (DDR SDRAM) is not powered down when a Suspend To RAM (STR) is in standby, and a complete UBoot startup stream is not necessarily executed in an STR startup flow, a startup scheme in a Fast STR mode is proposed at present in order to optimize the startup speed in the STR mode, as shown in fig. 5, the startup scheme skips UBoot startup in the startup flow in the original STR mode, and an kernel mirror image of an operating system is directly loaded by an option in a sboot. This embodiment also provides an initialization method for implementing PMU/Gamma chips during the startup process using the Fast STR mode, based on the startup scheme in the Fast STR mode.
As shown in fig. 6, the initialization method includes the following steps:
step 600, responding to an STR starting instruction in an STR standby state, and starting a kernel;
601, in the process of starting the kernel, writing the working parameters of the TCON module in the storage partition of the storage module into the TCON module so as to realize the initialization of the working parameters of the built-in TCON module in the starting process;
the working parameters are stored in the storage partition after the working parameters in the display panel are read in the process of starting up in the power-off state.
It should be noted that, in the TCON module of the display device in this embodiment, a Flash memory in the display panel is used to store operating parameters of the TCON module, such as voltage parameters. Therefore, in the prior art, when the display device is started up each time, namely, in the process of starting up the Uboot each time, the working parameters in the display panel are read, and the read working parameters are written into the PMU/Gamma chip of the TCON module, but the working parameters in the display panel are read only in the process of starting up the display device in the power-off state, and the read working parameters are stored in the memory partition of the memory module of the display device, and then when the STR is executed in the STR standby state, because the DDR is not powered down, the step of reading the working parameters in the display panel by the Uboot can be skipped, and in the process of directly starting the kernel, the working parameters in the memory partition are written into the chip of the TCON module, so that the initialization of the working parameters of the TCON module, namely the initialization of the parameters such as voltage of the PMU/Gamma chip, is realized.
The storage module may be an Embedded memory (eMMC) in the SOC of the display device.
In the initialization process of the working parameters of the TCON module in this embodiment, the EEPROM of the TCON module itself is not needed, but the working parameters are stored in the Flash memory of the display panel, so that the memory of the TCON module is not needed to be reserved, the cost of the PCB is effectively reduced, and in the STR startup starting process, the influence on the startup speed is reduced while the working parameter initialization of the chip with the built-in TCON module is realized.
In some embodiments, in order to ensure the accuracy of the working parameters stored in the storage partition, the present embodiment provides a verification method, which is specifically as follows:
when the display panel is powered on for the first time, in the process of powering on for the first time, all bytes of working parameters of the built-in TCON module in the display panel are read, the working parameters are verified, and the verification is determined to be passed, wherein the specific implementation steps are as follows:
1) reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a CRC algorithm;
2) and if the check value is the same as the check byte, determining that the check is passed.
It should be noted that, as shown in fig. 7, all bytes of the operating parameter include a check byte, which is generally located in the last two bytes of the operating parameter.
In implementation, the voltage parameter of the PMU is fixed and can be stored in an eMMC Flash of the SOC in the form of a configuration file; and the Gamma voltage parameter needs to be started and read from a Flash memory of the display panel through an SPI bus. For example, n bytes of data need to be read each time the computer is started, wherein the first n-2 bytes are valid data, and the last 2 bytes are CRC check values and are marked as read _ CRC; and calculating a CRC value of the first n-2 data through a CRC algorithm, recording the CRC value as calc _ CRC, and writing the read n bytes of data into a Gamma register through I2C if the read _ CRC is consistent with the calc _ CRC.
Because it is longer to start up and read all n byte data each time, in order to further optimize the start-up speed, save the check-up time, this embodiment only reads all n byte data of the working parameter when the first power-on, after passing the check-up, store all n byte working parameters into eMMC subregion, only read the check-up value of last 2 bytes of working parameter that the display panel stores through SPI each time later, compare with check-up value stored in eMMC, if unanimous, prove that the working parameter stored in eMMC is valid, can use n byte data of the working parameter stored in eMMC directly; if the data is inconsistent (for example, the display panel is replaced), all byte data of the working parameters in the display panel need to be read again.
In some embodiments, after reading the check byte of the operating parameter of the built-in TCON in the display panel, the processor is further configured to perform:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the built-in TCON in the display panel, and checking the working parameter.
In implementation, when power is turned on for the first time, n bytes of data stored in the display panel are read through the SPI in the UBoot, a check value calc _ CRC is calculated through a CRC algorithm for the first n-2 bytes of data, the last two bytes are recorded as check bytes read _ CRC, the effectiveness of the read working parameters is confirmed by comparing the read _ CRC with the calc _ CRC, and if the comparison results are the same, all bytes of the working parameters are stored in the eMMC bare partition at the SOC end. And if the comparison result is different, re-reading the n bytes of data stored in the display panel.
In some embodiments, in the process of first power-on, in this embodiment, after reading all bytes of the operating parameter of the TCON module in the display panel, and checking the operating parameter and determining that the checking passes, and before storing all bytes of the operating parameter in the storage partition, the processor is further configured to perform:
and determining the type of the TCON module as a built-in TCON module without storage according to the working parameters.
In some embodiments, after reading all bytes of the operating parameters of the TCON module in the display panel during the first power-on process, and checking the operating parameters and determining that the checking is passed, the processor is further configured to perform:
and if the type of the TCON module is determined to be the TCON module with storage, storing the read working parameters in the display panel in a memory of the TCON module with storage. If the power-on process is not the first power-on process, reading check bytes of working parameters of the TCON module in the display panel; and if the check byte is the same as the check byte of the working parameter in the memory, writing the working parameter in the memory into the TCON module.
In this embodiment, before checking the working parameter, it may be further determined whether the internal TCON module is configured with the memory, if the memory is configured, the working parameter in the configured memory may be read and written into the chip of the TCON module, otherwise, the working parameter is checked, and after the checking is passed, all bytes of the working parameter are stored in the storage partition and written into the chip of the internal TCON module.
In some embodiments, to further increase the boot speed while initializing the operating parameter, the present embodiment further provides a method for writing the operating parameter, that is, the processor is configured to perform:
1) reading all register data of the built-in TCON module into a memory;
in implementation, all register data of the built-in TCON are read through an IIC command based on an IIC bus; the IIC bus is also called I2C bus, and is a simple, bidirectional two-wire synchronous serial bus.
2) According to the working parameters in the memory partition, the register data is rewritten in the memory;
in implementation, the rewriting of the register data is accomplished as follows:
determining a register address of a built-in TCON module corresponding to the working parameter; and in the memory, rewriting the register data corresponding to the register address into the working parameter.
3) And writing all the rewritten register data in the memory into the built-in TCON module.
In implementation, all register data containing the operating parameters are written into the chip of the built-in TCON by another IIC command.
As shown in fig. 8, this embodiment provides a schematic diagram of a TCON register, and in implementation, the operating parameters need to be written into the registers of the PMU/Gamma chip through an IIC bus (command); if the number of registers to be written is 15, and the register addresses are discretely distributed between 0 and 99 as black squares in the figure, the current method is to send 15 IIC commands, each IIC command sends a byte of data to a fixed offset address (register address), and completes writing of one operating parameter, it needs to be noted that IIC devices are generally single-chip microcomputers, and the speed for processing IIC commands is limited, for example, the IIC device starts processing after receiving a first command, and if the IIC device has not finished processing a second command, the second command cannot be responded, so a delay needs to be added between two adjacent IIC commands, the length of the delay depends on the specification definition of a chip manufacturer, and the delay here is also the most time-consuming reason in the whole operating parameter initialization flow.
Therefore, in the current parameter writing method, a delay of 50ms needs to be added between every two IIC commands, so that the delay time is (15-1) × 50 ═ 700ms, and generally, the number of registers to be actually written is 50, and the average time is 2 seconds to 3 seconds. The embodiment of the invention optimizes the writing of the working parameters by the method, and can complete the writing of all the working parameters only by two IIC commands, thereby effectively shortening the writing delay and improving the starting speed.
The specific steps of writing the working parameters in the above manner are as follows:
1) reading 100 register data of 0-99 registers into a memory through an IIC command;
in implementation, 0-99 register data may be read into a global array (e.g., the array is param [100 ]).
2) In the memory, rewriting the register data corresponding to the register address into the working parameter;
in implementation, the register value corresponding to the modification requirement can be replaced by the corresponding operating parameter through a code algorithm, for example, the 0 th, 12 th and 13 th register data need to be replaced, and the replacement method is as follows:
Param[0]=value1;
Param[12]=value2;
Param[13]=value3;
3) and writing the modified 100 bytes of data into the built-in TCON module through an IIC command, thereby completing the writing of the voltage parameter.
In implementation, after the replacement is completed, 100 bytes of data in the whole array are sent to the built-in TCON module through an IIC command, and the writing of the working parameters is completed.
The embodiment optimizes parameter writing, delays the two IIC commands by 50ms, consumes less time than 1ms for data processing in the memory, ensures that the total time consumption is less than 100ms, greatly optimizes the writing time of the built-in TCON parameter, and obviously improves the starting speed.
In some embodiments, after determining the check value by the CRC algorithm using the bytes of the operating parameter other than the check bytes, the processor is further configured to perform:
and if the check byte of the check value is different from the check byte of the working parameter, acquiring the working parameter from a default configuration file. In this embodiment, the storage manner of the default configuration file is not limited too much.
As shown in fig. 9, an embodiment of the present invention proposes a method for writing a TCON parameter based on the display device, where a processor of the display device is configured to execute the following processes:
step 900, responding to a power-on instruction in a power-off state, and reading all bytes of working parameters of a built-in TCON module in a display panel if the power-on instruction is the first power-on;
step 901, after the working parameter is checked and the check is confirmed to pass, storing all bytes of the working parameter in a storage partition;
step 902, responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of a built-in TCON module in a display panel if the power-on instruction is not powered on for the first time;
step 903, judging whether the check byte is the same as the check byte of the working parameter in the storage partition, if so, executing step 904, otherwise, executing step 907;
step 904, reading all register data of the built-in TCON module into a memory;
step 905, according to the working parameters in the memory partition, completing the rewriting of the register data in the memory;
and 906, writing all the rewritten register data in the memory into the built-in TCON module.
Step 907, re-reading all bytes of the working parameters of the built-in TCON module in the display panel, and executing step 901.
As shown in fig. 10, based on the display device, an embodiment of the present invention provides a functional structure diagram for implementing writing of a built-in TCON parameter, including a display panel 1000 and a motherboard 1001, where the display panel includes a Flash memory 1002, the motherboard includes a built-in TCON module 1003, an SOC chip 1004, and a memory module eMMC1005, where the built-in TCON module includes a PMU/Gamma chip, and an EEPROM memory of the built-in TCON module itself is removed.
As shown in fig. 11, in the present embodiment, based on the display device, the processor is configured to perform the following process during the power-on process:
1100, reading all bytes of working parameters of a built-in TCON module stored in a Flash memory of a display panel in the process of first power-on;
specifically, the voltage parameter of the PMU is fixed and can be stored in an eMMC Flash of the SOC in a configuration file form; and the Gamma voltage parameter needs to be started and read from a Flash memory of the display panel through an SPI bus.
Step 1101, after checking the working parameter and determining that the checking is passed, storing all bytes of the working parameter in the eMMC;
step 1102, responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the built-in TCON module in the display panel if the power-on instruction is not powered on for the first time;
1103, determining that the check byte is the same as the check byte of the working parameter in the storage partition of the storage module;
and 1104, writing the working parameters in the eMMC into the built-in TCON module.
The written execution process can be based on responding to an STR starting instruction in an STR standby state, and starting a kernel; and in the process of starting the kernel, writing the working parameters in the eMMC into a chip of the built-in TCON module.
Optionally, if all bytes of the working parameters in the eMMC are 0, it is determined that the working parameters read in the display panel when the eMMC is turned on (turned on in the power-off state) are invalid, and at this time, the working parameters may be obtained from a default configuration file.
As shown in fig. 12, based on the display device, an embodiment of the present invention further provides a detailed method for writing a built-in TCON parameter, where a processor of the display device is configured to execute the following implementation procedures:
step 1200, responding to a power-on instruction in a power-off state, and reading all bytes of working parameters of a built-in TCON module in a display panel if the power-on instruction is the first power-on;
step 1201, checking the working parameters;
step 1202, judging whether the checking is passed, if so, executing step 903, otherwise, executing step 908;
step 1203, storing all bytes of the working parameters in a storage partition;
step 1204, responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of a built-in TCON module in the display panel if the power-on instruction is not powered on for the first time;
step 1205, judging whether the check byte is the same as the check byte of the working parameter in the storage partition, if so, executing step 1206, otherwise, executing step 1209;
step 1206, responding to the STR starting instruction in the STR standby state, and starting a kernel;
1207, in the process of starting the kernel, reading all register data of the built-in TCON module into a memory, completing the rewriting of the register data in the memory according to working parameters in the storage partition, and writing all the register data in the rewritten memory into the built-in TCON module;
step 1208, acquiring the working parameters from a default configuration file;
step 1209, all bytes of the working parameters of the built-in TCON module in the display panel are read again, and the step 1201 is executed again.
The method comprises the steps that through various optimization modes, the starting speed can be improved while the working parameters of the built-in TCON are initialized, the first optimization mode is reading optimization of reading the working parameters of the built-in TCON stored in a display panel when the display panel is powered on in a power-off state, all bytes in the working parameters are read when the display panel is powered on for the first time, the working parameters are stored in a storage partition after verification is passed, all bytes in the working parameters stored in the display panel do not need to be read when the display panel is powered on for each time, only check bytes need to be read, and the read check bytes are compared with the check bytes of the working parameters stored in the storage partition; the second optimization mode is that in the process of starting the kernel in the STR startup process, the working parameters of the built-in TCON are directly obtained from a storage partition, and Uboot startup is skipped; the third optimization mode is write-in optimization for writing the working parameters into the built-in TCON register, and the writing of the working parameters is completed only by two IIC commands, so that the time delay is effectively saved, and the starting speed is improved.
In some embodiments, based on the same inventive concept, embodiments of the present invention further provide a method for writing a built-in TCON parameter, where the method is a method in a display device in an embodiment of the present invention, and a principle of the method for solving a problem is similar to that of the display device, so that the method may be implemented by referring to implementation of the device, and repeated details are not described herein.
As shown in fig. 13, the specific implementation flow of the method is as follows:
step 1300, responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON in the display panel if the power-on instruction is not powered on for the first time;
step 1301, if the check byte is the same as the check byte of the working parameter in the storage partition, writing the working parameter in the storage partition into the TCON, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON in the display panel during the first power-on process, checking the working parameter, and storing all bytes of the working parameter in the storage partition after the checking is determined to be passed.
In some embodiments, the writing the operating parameters in the memory partition to the TCON comprises:
reading all register data of the TCON into a memory; wherein all register data of the TCON can be read by one IIC command based on an IIC bus;
according to the working parameters in the memory partition, the register data is rewritten in the memory;
writing all the rewritten register data in the memory into the TCON; wherein all register data containing the operating parameters can be written into the chip of the TCON by another IIC command.
In some embodiments, said completing the overwriting of the register data in the memory according to the operating parameters in the memory partition includes:
determining a register address of TCON corresponding to the working parameter;
and in the memory, rewriting the register data corresponding to the register address into the working parameter.
In some embodiments, the verifying the operating parameter and determining that the verification passes includes:
reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a CRC algorithm;
and if the check value is the same as the check byte, determining that the check is passed.
In some embodiments, after reading the check byte of the operating parameter of the TCON in the display panel, the method further includes:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the TCON in the display panel, and checking the working parameter.
In some embodiments, reading all bytes in the operating parameter, before determining the check value by the CRC algorithm using the bytes other than the check bytes, further comprises:
and determining that the TCON is not provided with a memory according to the working parameters.
In some embodiments, reading all bytes in the operating parameter, and determining the check value by the CRC algorithm using the bytes except the check byte further comprises:
and if the check byte of the check value is different from the check byte of the working parameter, acquiring the working parameter from a default configuration file.
In some embodiments, a method for writing a TCON parameter is further provided, where the method is implemented as follows:
starting a kernel in response to an STR starting instruction in an STR standby state;
in the process of starting the kernel, writing the working parameters of the TCON in the storage partition into the built-in TCON to realize the initialization of the working parameters of the TCON in the starting process, wherein the working parameters are stored in the storage partition after reading the working parameters in the display panel in the starting process in the power-off state.
In this embodiment, when the power is not first powered on, only check bytes of working parameters of the TCON module in the display panel need to be read, and after the verification is passed, if the STR startup process is executed, the working parameters of the TCON in the storage partition can be directly written into the TCON in the process of starting the kernel, so that the working parameters are written into the TCON without affecting the startup speed.
In some embodiments, based on the same inventive concept, embodiments of the present invention further provide a device for writing a built-in TCON parameter, and since the principle of the device for solving the problem is similar to that of the display device, the implementation of the device may refer to the implementation of the device, and repeated details are not repeated.
As shown in fig. 14, the apparatus includes:
the reading unit 1400 is configured to respond to a power-on instruction in a power-off state, and read a check byte of a working parameter of a TCON in the display panel if the power-on instruction is not powered on for the first time;
a writing unit 1401, configured to write the working parameter in the storage partition into the TCON if the check byte is the same as the check byte of the working parameter in the storage partition, where the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the built-in TCON in the display panel during a first power-on process, verifying the working parameter, and storing all bytes of the working parameter in the storage partition after the verification is determined to be passed.
In some embodiments, the write unit is specifically configured to:
reading all register data of the TCON into a memory;
according to the working parameters in the memory partition, the register data is rewritten in the memory;
and writing all the rewritten register data in the memory into the TCON.
In some embodiments, the write unit is specifically configured to:
determining a register address of TCON corresponding to the working parameter;
and in the memory, rewriting the register data corresponding to the register address into the working parameter.
In some embodiments, the write unit is specifically configured to:
reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a CRC algorithm;
and if the check value is the same as the check byte, determining that the check is passed.
In some embodiments, after reading the check byte of the operating parameter of the TCON in the display panel, the reading unit is further configured to:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the TCON in the display panel, and checking the working parameter.
Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the following steps:
responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON in the display panel if the power-on instruction is not powered on for the first time;
and if the check byte is the same as the check byte of the working parameter in the storage partition, writing the working parameter in the storage partition into the TCON, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON in a display panel in the process of first power-on, checking the working parameter and storing all bytes of the working parameter in the storage partition after the working parameter is checked to be passed.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A display device comprising a display panel, a logic board TCON module, a processor, and a memory module, wherein:
the storage module is used for storing the working parameters of the TCON module;
the processor is configured to perform:
responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON module in the display panel if the power-on instruction is not powered on for the first time;
if the check byte is the same as the check byte of the working parameter in the storage partition of the storage module, writing the working parameter in the storage partition into the TCON module, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON module in the display panel in the process of first power-on, checking the working parameter and storing all bytes of the working parameter in the storage partition after the checking is determined to be passed.
2. The apparatus of claim 1, wherein the processor is configured to perform:
reading all register data of the TCON module into a memory;
according to the working parameters in the memory partition, the register data is rewritten in the memory;
and writing all the rewritten register data in the memory into the TCON module.
3. The apparatus of claim 2, wherein the processor is configured to perform:
determining a register address of a TCON module corresponding to the working parameter;
and in the memory, rewriting the register data corresponding to the register address into the working parameter.
4. The apparatus of claim 2, wherein reading all register data of the TCON module into a memory comprises:
reading all register data of the TCON module into an internal memory through an IIC command based on an integrated circuit IIC bus;
the writing all the rewritten register data in the memory into the TCON module includes:
and writing all the rewritten register data in the memory into the TCON module through another IIC command.
5. The apparatus of claim 1, wherein the processor is configured to perform:
reading all bytes in the working parameters, and determining a check value of the bytes except the check bytes through a Cyclic Redundancy Check (CRC) algorithm;
and if the check value is the same as the check byte, determining that the check is passed.
6. The device according to any one of claims 1 to 5, wherein after reading the check byte of the operating parameter of the TCON module in the display panel, the processor is further configured to perform:
and if the check byte is different from the check byte of the working parameter in the storage partition, re-reading all bytes of the working parameter of the TCON module in the display panel, and checking the working parameter.
7. The device according to claim 1, wherein during the first power-on process, all bytes of the operating parameters of the TCON module in the display panel are read, and after the operating parameters are checked and the check is determined to pass, all bytes of the operating parameters are stored in the storage partition, and the processor is further configured to perform:
and determining the type of the TCON module as a built-in TCON module without storage according to the working parameters.
8. The device according to any one of claims 1 to 5 and 7, wherein during the first power-on process, all bytes of the operating parameters of the TCON module in the display panel are read, and after the operating parameters are checked and it is determined that the check is passed, the processor is further configured to perform:
and if the type of the TCON module is determined to be the TCON module with storage, storing the read working parameters in the display panel in a memory of the TCON module with storage.
9. The device of claim 8, wherein after the reading the check byte of the operating parameter of the TCON module in the display panel, the processor is further configured to perform:
and if the check byte is the same as the check byte of the working parameter in the memory, writing the working parameter in the memory into the TCON module.
10. A method for writing TCON parameters of a logic board is characterized by comprising the following steps:
responding to a power-on instruction in a power-off state, and reading check bytes of working parameters of the TCON in the display panel if the power-on instruction is not powered on for the first time;
and if the check byte is the same as the check byte of the working parameter in the storage partition, writing the working parameter in the storage partition into the TCON, wherein the working parameter in the storage partition is obtained by reading all bytes of the working parameter of the TCON in a display panel in the process of first power-on, checking the working parameter and storing all bytes of the working parameter in the storage partition after the working parameter is checked to be passed.
CN202110344338.9A 2021-03-31 2021-03-31 TCON parameter writing method and display device Pending CN113099279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110344338.9A CN113099279A (en) 2021-03-31 2021-03-31 TCON parameter writing method and display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110344338.9A CN113099279A (en) 2021-03-31 2021-03-31 TCON parameter writing method and display device

Publications (1)

Publication Number Publication Date
CN113099279A true CN113099279A (en) 2021-07-09

Family

ID=76671525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110344338.9A Pending CN113099279A (en) 2021-03-31 2021-03-31 TCON parameter writing method and display device

Country Status (1)

Country Link
CN (1) CN113099279A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121002A (en) * 2018-09-06 2019-01-01 四川长虹电器股份有限公司 The import system and method for LCD TV OC Demura data
CN109637438A (en) * 2019-02-22 2019-04-16 上海艾为电子技术股份有限公司 A kind of update method of display control parameter, driving chip
CN111478837A (en) * 2020-04-02 2020-07-31 广东美的暖通设备有限公司 Data communication method, air conditioner, air conditioning system and storage medium
CN111724749A (en) * 2019-03-19 2020-09-29 咸阳彩虹光电科技有限公司 Display driving method, display driving device and display device
US20210398467A1 (en) * 2017-08-31 2021-12-23 HKC Corporation Limited Driving method of display device, driving device and display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210398467A1 (en) * 2017-08-31 2021-12-23 HKC Corporation Limited Driving method of display device, driving device and display device
CN109121002A (en) * 2018-09-06 2019-01-01 四川长虹电器股份有限公司 The import system and method for LCD TV OC Demura data
CN109637438A (en) * 2019-02-22 2019-04-16 上海艾为电子技术股份有限公司 A kind of update method of display control parameter, driving chip
CN111724749A (en) * 2019-03-19 2020-09-29 咸阳彩虹光电科技有限公司 Display driving method, display driving device and display device
CN111478837A (en) * 2020-04-02 2020-07-31 广东美的暖通设备有限公司 Data communication method, air conditioner, air conditioning system and storage medium

Similar Documents

Publication Publication Date Title
US10452404B2 (en) Optimized UEFI reboot process
CN106990958B (en) Expansion assembly, electronic equipment and starting method
CN106462520B (en) Techniques for communicating with a controller of a non-volatile dual in-line memory module
TWI514408B (en) Handling errors during device bootup from a non-volatile memory
US7779191B2 (en) Platform-based idle-time processing
US7395397B2 (en) Electronic apparatus with page table management of program, data processing method and computer program
CN113076142B (en) TCON parameter initialization method and display device
US8595552B2 (en) Reset method and monitoring apparatus
CN101650662A (en) Memory device of embedded system and staring method and upgrading of firmware
KR20070060101A (en) Systems and methods for providing nonvolatile memory management in wireless phones
CN113495799B (en) Memory fault processing method and related equipment
US20190204887A1 (en) Backup power supply method and apparatus
US11972243B2 (en) Memory device firmware update and activation without memory access quiescence
TW201525869A (en) System and method for dual OS memory switching
EP3596580A1 (en) Quick energy efficient reboot from ultra-low power mode for a system on a chip
KR100777446B1 (en) Electronic device and booting method thereof
JP2020535504A (en) How to upgrade system version and equipment
CN114721493B (en) Chip starting method, computer equipment and readable storage medium
CN109683983B (en) Method and equipment for generating and loading mirror image file
CN112306782B (en) Debugging test-oriented operating system kernel guiding and loading hardware and method
US20140095859A1 (en) Apparatus and method for managing register information in a processing system
JP2000010666A (en) Computer system and flash rom rewriting method
US20120317406A1 (en) Flash storage system and method for accessing a boot program
CN113099279A (en) TCON parameter writing method and display device
CN110825421A (en) Firmware upgrading method and system and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210709