CN113076142B - TCON parameter initialization method and display device - Google Patents
TCON parameter initialization method and display device Download PDFInfo
- Publication number
- CN113076142B CN113076142B CN202110344337.4A CN202110344337A CN113076142B CN 113076142 B CN113076142 B CN 113076142B CN 202110344337 A CN202110344337 A CN 202110344337A CN 113076142 B CN113076142 B CN 113076142B
- Authority
- CN
- China
- Prior art keywords
- tcon
- working parameters
- module
- working
- 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.)
- Active
Links
- 238000011423 initialization method Methods 0.000 title claims abstract description 8
- 238000000034 method Methods 0.000 claims abstract description 93
- 238000003860 storage Methods 0.000 claims abstract description 81
- 230000008569 process Effects 0.000 claims abstract description 61
- 238000012795 verification Methods 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 5
- 125000004122 cyclic group Chemical group 0.000 claims 1
- 238000005192 partition Methods 0.000 abstract description 56
- 238000010586 diagram Methods 0.000 description 16
- 238000004590 computer program Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 6
- 238000005457 optimization Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 2
- 108091092878 Microsatellite Proteins 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4406—Loading of operating system
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a TCON parameter initialization method and display equipment, which are used for finishing the initialization of a TCON chip while ensuring the improvement of STR starting speed. The apparatus includes a display panel, a 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 an STR starting instruction in the STR standby state, and starting a kernel; 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 to realize the initialization of the working parameters of the TCON module 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.
Description
Technical Field
The invention relates to the technical field of smart televisions, in particular to a TCON parameter initialization 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 PMU/Gamma on 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, and the smart television can adopt a scheme of storing built-in TCON.
Due to the application of the internal TCON scheme to storage, in a Suspend To RAM (STR) mode, it is necessary to implement PMU/Gamma chip voltage initialization control in a Universal Boot Loader (UBoot) starting process every time from STR standby to STR startup, and how to skip UBoot startup to implement the initialization of the PMU/Gamma chip in the STR standby to STR startup process in order to optimize the startup speed is an urgent technical problem to be solved.
Disclosure of Invention
The invention provides a TCON parameter initialization method and display equipment, which are used for completing initialization of a PMU/Gamma chip in the process of loading kernel images of an operating system in the rapid starting process of an STR (short tandem repeat), ensuring that the initialization of the PMU/Gamma chip of the TCON is completed while the starting speed of the STR is improved.
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:
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 module in the storage partition of the storage module into the TCON module to realize the initialization of the working parameters of the TCON module 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.
The display device provided by the embodiment of the invention can ensure that the working parameters of the TCON module are initialized while the starting speed is improved, and the working parameters of the TCON module which are pre-stored in the storage partition are written into the chip of the TCON module directly in the process of starting the kernel by skipping Uboot in the STR starting process, so that the working parameters of the TCON module are initialized while the STR starting speed is ensured, and the initialization of the working parameters of the TCON module is effectively optimized.
In some embodiments, storing the operating parameter in the memory partition is preceded by the processor being further configured to perform:
determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
and if the check value is the same as the check byte of the working parameter, 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 built-in TCON module is ensured when the working parameters are acquired from the storage partition subsequently.
In some embodiments, before determining the check value by the CRC algorithm for the bytes of the operating parameter other than the check bytes, the processor is further configured to:
and determining the type of the TCON module as a built-in TCON module for storage according to the working parameters.
The embodiment of the invention can be mainly applied to initialization of working parameters of the built-in TCON without storage, and the cost of the PCB can be effectively reduced due to the application without storage.
In some embodiments, after determining the check value by the CRC algorithm using the bytes of the operating parameter other than the check byte, the processor is further configured to:
and if the check value is different from the check byte of the working parameter, acquiring the working parameter from a default configuration file.
The embodiment also provides a method for preventing a fault, and if the working parameters of the built-in TCON in the display panel are read as invalid parameters, the working parameters can be obtained from a default configuration file, so that the normal operation of the display device is ensured.
In some embodiments, the processing appliance is configured to perform:
reading all register data of the built-in TCON through an IIC command based on an IIC bus;
all register data containing the operating parameters are written into the chip of the built-in TCON by another IIC command.
The embodiment also provides a writing mode, and all the working parameters are written into the TCON only through two IIC commands, so that the time delay between the IIC commands is effectively reduced, and the starting speed is effectively improved.
In a second aspect, a method for initializing a TCON parameter provided in an embodiment of the present invention includes:
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 some embodiments, storing the operating parameter before the memory partition further comprises:
determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
and if the check value is the same as the check byte of the working parameter, determining that the check is passed.
In some embodiments, before determining the check value by the CRC algorithm using the bytes of the operating parameter other than the check byte, the method further includes:
and determining the type of the TCON as a built-in TCON without storage according to the working parameters.
In some embodiments, after determining the check value by the CRC algorithm using the bytes of the operating parameter except the check byte, the method further includes:
and if 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, the writing, by starting a kernel, the operating parameter of the TCON built in the memory partition into the TCON includes:
reading all register data of the TCON through an IIC command based on an IIC bus;
all register data containing the operating parameters are written into the TCON by another IIC command.
In a third aspect, an embodiment of the present invention further provides a TCON parameter initialization apparatus, including:
the starting unit is used for responding to an STR starting instruction in an STR standby state and starting a kernel;
and the writing unit is used for writing the working parameters of the TCON in the storage partition into the TCON in the process of starting the kernel so as 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 some embodiments, storing the operating parameter in the memory partition is preceded by the write unit being further configured to:
determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
and if the check value is the same as the check byte of the working parameter, determining that the check is passed.
In some embodiments, before determining the check value by using the CRC algorithm for the bytes except the check byte in the operating parameter, the writing unit is further configured to:
and determining the type of the TCON as a built-in TCON without storage according to the working parameters.
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 writing unit is further configured to:
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, the write unit is specifically configured to:
reading all register data of the TCON through an IIC command based on an IIC bus;
all register data containing the operating parameters are written into the TCON by another IIC command.
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 required to be used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings may be obtained according to the drawings without inventive labor.
Fig. 1 is a TCON module type of a display device according to an embodiment of the present invention;
fig. 2 illustrates 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 illustrating a power-on scheme in Fast STR mode according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a display device according to an embodiment of the present invention;
FIG. 6 is a byte diagram of an operating parameter according to an embodiment of the present invention;
fig. 7 is a flowchart illustrating an exemplary verification method according to an embodiment of the present invention;
FIG. 8 is a diagram illustrating an embodiment of a built-in TCON register;
fig. 9 is a flowchart of a method for implementing TCON parameter initialization according to an embodiment of the present invention;
fig. 10 is a functional structure diagram for implementing initialization of TCON parameters according to an embodiment of the present invention;
fig. 11 is a flowchart for implementing initialization of operating parameters during a boot process according to an embodiment of the present invention;
FIG. 12 is a flowchart of a detailed method for initializing TCON parameters according to an embodiment of the present invention;
fig. 13 is a flowchart illustrating an implementation of a TCON parameter initialization method according to an embodiment of the present invention;
fig. 14 is a schematic diagram of an apparatus for initializing a TCON parameter 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 meaning of "a plurality" is 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 with 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, and PMU/Gamma chips of the built-in TCON are transplanted to a System On Chip (SOC) mainboard, so that 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 equipment such as the intelligent television with the built-in TCON is adopted, particularly the function of a TCON chip is realized by the SOC, the prior intelligent television with the built-in TCON integrally transplants PMU/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. The embodiment of the invention can provide an initialization method of the PMU/Gamma working parameters based on the PMU/Gamma chip of the display equipment such as the smart television with the built-in TCON without storage. 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 need to be read and the read working parameters need to be written into a register of the built-in TCON when the display panel is started. The process of each boot is to load a small BootLoader (sboot) from a boot (which is a small mask ROM or write-protected flash embedded in a processor chip and contains a first code executed by the processor when the processor is powered 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 (Open-secure) need to be started in the sboot. When starting up (alternating current startup) in a power-off state, starting up the UBoot first, finishing basic hardware initialization through a first stage of the UBoot starting up process, including setting a processor mode as 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 a 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. 4, 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. Therefore, how to realize the initialization of the PMU/Gamma chip in the boot process of applying the Fast STR mode is an urgent technical problem to be solved.
In order to solve the above technical problem, an embodiment of the present invention provides a display device, as shown in fig. 5, the device includes a display panel 500, a TCON module 501, a processor 502, and a storage module 503, where:
in this embodiment, working parameters of the TCON module are stored in the display panel, and the working parameters in the display panel are read during power-on (power-on in a power-off state) and stored in the storage partition of the storage module. Since the process of initializing the operating parameters in this embodiment does not need to use the memory of the TCON module itself, this embodiment can be applied to the display device with the TCON module built therein for storage.
It should be noted that, in the embodiment, the TCON module of the display device stores operating parameters of the TCON module, such as voltage parameters, using a Flash memory in the display panel. 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 and start-up process, the working parameters of the chip of the TCON module are initialized while the influence on the startup speed is reduced.
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:
prior to storing the operating parameter in the storage partition, the processor is further configured to perform:
1) Determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
2) And if the check value is the same as the check byte of the working parameter, determining that the check is passed.
It should be noted that, as shown in fig. 6, 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.
The method comprises the steps that all n bytes of data of working parameters are read only during first power-on, after the data are checked, all n bytes of working parameters are stored in an eMMC subarea, only the last 2 bytes of check values of the working parameters stored in a display panel are read through an SPI each time, the check values are compared with the check values stored in the eMMC, if the check values are consistent, the working parameters stored in the eMMC are effective, and the n bytes of data of the working parameters stored in the eMMC can be directly used; if the data is inconsistent (e.g., the display panel is replaced), all bytes of data of the operating parameters in the display panel need to be re-read. As shown in fig. 7, the processor of the display device is configured to execute the following implementation flow:
the working parameters in the storage partition are obtained by reading all bytes of the working parameters of the built-in TCON in the display panel in the process of first power-on, verifying the working parameters and determining that the verification is passed, and then storing all bytes of the working parameters in the storage partition.
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 increased while the initialization of the working parameters is realized.
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 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, before determining the check value by the CRC algorithm for the bytes of the operating parameter other than the check bytes, the processor is further configured to:
and determining the type of the TCON module as a built-in TCON module for storage according to the working parameters.
In this embodiment, before checking the working parameter, it may be further determined whether the TCON module is configured with the memory, if the memory is configured, the configured working parameter in the 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 TCON module.
In some embodiments, after reading the operating parameters in the display panel in the process of booting in the power-off state, if it is determined that the type of the TCON module is the TCON module with storage, the read operating parameters in the display panel may be stored in the memory of the TCON module with storage. And responding to an STR starting instruction in an STR standby state, starting a kernel, and writing working parameters in a memory of the TCON module with the storage into the TCON module with the storage in the process of starting the kernel.
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 TCON through an IIC command based on an IIC bus; the IIC bus is also called I2C bus, and is a simple and bidirectional two-wire system synchronous serial bus.
In implementation, all register data of the TCON are read into a memory through an IIC command; 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:
11 Determining a register address of the TCON corresponding to the working parameter;
12 In the memory, register data corresponding to the register address is rewritten into the operating parameter.
2) All register data containing the operating parameters are written into the TCON by another IIC command.
As shown in fig. 8, this embodiment provides a schematic diagram of a built-in TCON register, and in implementation, it is necessary to write the operating parameters into the register of the PMU/Gamma chip through the 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 writing of an operating parameter is completed, 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 does not complete processing of a second command, the second command is already sent, and the second command cannot respond, so that 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, while the number of registers to be actually written is generally 50, and the average time is 2 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 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 for internally storing the TCON parameters, 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 implementing initialization of a built-in TCON parameter based on the foregoing display device, where a processor of the display device is configured to execute the following implementation procedures:
902, determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
in implementation, all register data of the built-in TCON are read through an IIC command based on an IIC bus; 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. 10, based on the display device, an embodiment of the present invention provides a functional structure diagram for implementing initialization 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 TCON module 1003, a processor 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 working parameters of a built-in TCON module stored in a Flash memory of a display panel when the computer is powered on in a power-off state;
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.
and 1103, writing the working parameters in the eMMC into a chip of the built-in TCON module in the process of starting the kernel.
In some embodiments, if all bytes of the operating parameters in the eMMC are 0, it is determined that the operating parameters read from the display panel during ac power-on (power-off) are invalid, and the operating 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 initializing a built-in TCON parameter, where a processor of the display device is configured to execute the following implementation procedures:
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;
The embodiment of the invention can improve the starting speed while initializing the working parameters of the built-in TCON through various optimization modes, wherein the first optimization mode is reading optimization for reading the working parameters of the built-in TCON stored in the display panel when the power is on under the power-off state, all bytes in the working parameters are read when the power is on for the first time, the working parameters are stored in the storage partition after passing the verification, all bytes in the working parameters stored in the display panel do not need to be read when the power is on for each time, only the verification bytes need to be read, and the read verification bytes are compared with the verification 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 flow, 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 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 increased.
In some embodiments, based on the same inventive concept, embodiments of the present invention further provide a method for initializing a 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 reference may be made to implementation of the method in the device, and repeated details are not described here.
As shown in fig. 13, the specific implementation flow of the method is as follows:
In some embodiments, storing the operating parameter before the memory partition further comprises:
determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
and if the check value is the same as the check byte of the working parameter, determining that the check is passed.
In some embodiments, before determining the check value by using the CRC algorithm on the bytes except the check byte in the operating parameter, the method further includes:
and determining the TCON type as a built-in TCON without storage according to the working parameters.
In some embodiments, after determining the check value by the CRC algorithm using the bytes of the operating parameter except the check byte, the method further includes:
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, the writing the operating parameter of the TCON in the memory partition into the TCON by starting the kernel includes:
reading all register data of the TCON through an IIC command based on an IIC bus;
all register data containing the operating parameters are written into the TCON by another IIC command.
In some embodiments, the operating parameters in the memory partition may also be obtained by:
responding to a power-on instruction in a power-off state, if the power-on instruction is the first power-on, reading all bytes of working parameters of the TCON in the display panel, verifying the working parameters, and storing all bytes of the working parameters in a storage partition after the verification is determined to be passed.
In some embodiments, this embodiment further provides a writing mode of the working parameter of the TCON, which specifically includes:
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.
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 the 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, if the check byte is not the same as the check byte of the working parameter in the storage partition, all bytes of the working parameter of the TCON in the display panel are re-read to check the working parameter.
In some embodiments, based on the same inventive concept, embodiments of the present invention further provide a TCON parameter initialization apparatus, and since the principle of the apparatus for solving the problem is similar to that of the display device, the implementation of the apparatus may refer to the implementation of the device, and repeated details are not described again.
As shown in fig. 14, the apparatus includes:
the starting unit 1400 is configured to start a kernel in response to an STR startup instruction in an STR standby state;
and a write unit 1401, configured to write the working parameter of the TCON in the memory partition into the TCON in a process of starting the kernel, so as to implement initialization of the working parameter of the TCON in a process of starting the computer, where the working parameter is stored in the memory partition after reading the working parameter in the display panel in a process of starting the computer in a power-off state.
In some embodiments, storing the operating parameter in the memory partition is preceded by the write unit being further configured to:
determining check values of bytes except check bytes in the working parameters through a CRC algorithm;
and if the check value is the same as the check byte of the working parameter, determining that the check is passed.
In some embodiments, before determining the check value by using the CRC algorithm for the bytes except the check byte in the operating parameter, the writing unit is further configured to:
and determining the type of the TCON as a built-in TCON without storage according to the working parameters.
In some embodiments, after determining the check value by using the CRC algorithm for the bytes except the check byte in the operating parameter, the writing unit is further configured to:
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, the write unit is specifically configured to:
reading all register data of the TCON through an IIC command based on an IIC bus;
all register data containing the operating parameters is written into the TCON by another IIC command.
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, and the program, when executed by a processor, implements the steps of:
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.
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 (7)
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 a TCON (thyristor controlled open) in Flash of the display panel through the SPI 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 eMMC Flash of the SOC, writing the working parameter in the eMMC Flash into the TCON; the working parameters in the eMMC Flash are obtained by reading all bytes of working parameters of a built-in TCON in a display panel through the SPI in the process of first power-on, verifying the working parameters, determining that the verification is passed, and storing all bytes of the working parameters in the eMMC Flash;
the writing of the working parameters in the eMMC Flash into the TCON specifically includes: reading all register data of the TCON into a memory through an IIC command based on an IIC bus of an integrated circuit; according to a register address of TCON corresponding to a working parameter in the eMMC Flash, register data corresponding to the register address are rewritten into the working parameter in the memory; writing all register data containing the operating parameters into the TCON module by another IIC command;
responding to an STR starting instruction in a state of suspending to a memory STR standby state, and starting a kernel;
and in the process of starting the kernel, writing the working parameters of the TCON module in the eMMC Flash of the storage module into the TCON module so as to realize the initialization of the working parameters of the TCON module in the starting process, wherein the working parameters are stored in the eMMC Flash after the working parameters in the display panel are read in the starting process in the power-off state.
2. The device of claim 1, wherein after reading the operating parameters in the display panel during power-on in the power-off state, the operating parameters are stored before the eMMC Flash, and wherein the processor is further configured to perform:
determining check values of bytes except check bytes in the working parameters by a Cyclic Redundancy Check (CRC) algorithm;
and if the check value is the same as the check byte of the working parameter, determining that the check is passed.
3. The apparatus of claim 2, wherein before determining the check value by the CRC algorithm for the bytes of the operating parameter other than the check bytes, the processor is further configured to:
and determining the type of the TCON module as a built-in TCON module without storage according to the working parameters.
4. The apparatus of claim 2, wherein after determining the check value by CRC algorithm for the bytes of the operating parameter other than the check bytes, the processor is further configured to perform:
and if the check value is different from the check byte of the working parameter, acquiring the working parameter from a default configuration file.
5. The apparatus according to any one of claims 1 to 4, wherein after the reading of the working parameters in the display panel during the power-on process in the power-off state, 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.
6. The device of claim 5, wherein after the kernel is started, the processor is further configured to perform:
and in the process of starting the kernel, writing the working parameters in the memory of the TCON module with the storage into the TCON module with the storage.
7. A logic board TCON parameter initialization method is characterized by comprising the following steps:
responding to a power-on instruction in a power-off state, and if the power-on instruction is not powered on for the first time, reading check bytes of working parameters of the TCON in Flash of the display panel through the SPI; if the check byte is the same as the check byte of the working parameter in the eMMC Flash of the SOC, writing the working parameter in the eMMC Flash into the TCON; the working parameters in the eMMC Flash are obtained by reading all bytes of working parameters of a built-in TCON in a display panel through the SPI in the process of first power-on, verifying the working parameters, determining that the verification is passed and storing all the bytes of the working parameters in the eMMC Flash;
the writing of the working parameters in the eMMC Flash into the TCON specifically includes: reading all register data of the TCON into a memory through an IIC command based on an integrated circuit IIC bus; according to a register address of TCON corresponding to a working parameter in the eMMC Flash, register data corresponding to the register address are rewritten into the working parameter in the memory; writing all register data containing the operating parameters into the TCON module by another IIC command;
starting a kernel in response to an STR starting instruction in a standby state of the memory STR suspended;
in the process of starting the kernel, writing the working parameters of the TCON module in the eMMC Flash of the storage module into the TCON module so as to realize the initialization of the working parameters of the TCON module in the starting process, wherein the working parameters are stored in the eMMC Flash after the working parameters in the display panel are read in the starting process in the power-off state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110344337.4A CN113076142B (en) | 2021-03-31 | 2021-03-31 | TCON parameter initialization method and display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110344337.4A CN113076142B (en) | 2021-03-31 | 2021-03-31 | TCON parameter initialization method and display device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113076142A CN113076142A (en) | 2021-07-06 |
CN113076142B true CN113076142B (en) | 2022-12-27 |
Family
ID=76611777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110344337.4A Active CN113076142B (en) | 2021-03-31 | 2021-03-31 | TCON parameter initialization method and display device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113076142B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114035875B (en) * | 2021-11-05 | 2023-12-22 | 江苏纽锐电子科技有限公司 | Life cycle management method of intelligent screen |
CN117170752A (en) * | 2022-05-27 | 2023-12-05 | 海信视像科技股份有限公司 | TCON board initialization method, display device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105528208A (en) * | 2015-12-04 | 2016-04-27 | 四川长虹电器股份有限公司 | TCON-less screen parameter separation control method |
CN109698971A (en) * | 2019-01-15 | 2019-04-30 | 青岛海信电器股份有限公司 | A kind of data processing method and device |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609274B (en) * | 2011-01-21 | 2016-06-29 | 青岛海信电器股份有限公司 | A kind of quick startup optimization method of system and television set |
US9761202B2 (en) * | 2015-03-09 | 2017-09-12 | Apple Inc. | Seamless video transitions |
CN106507193A (en) * | 2016-11-08 | 2017-03-15 | 四川长虹电器股份有限公司 | Whole set of television realizes that TCON writes the apparatus and method of journey and VCOM debugging |
CN109121002B (en) * | 2018-09-06 | 2020-12-01 | 四川长虹电器股份有限公司 | Liquid crystal television OC Demura data importing system and method |
CN111724749A (en) * | 2019-03-19 | 2020-09-29 | 咸阳彩虹光电科技有限公司 | Display driving method, display driving device and display device |
CN111800658B (en) * | 2019-04-16 | 2022-05-03 | 深圳康佳电子科技有限公司 | Chip parameter writing method, television and storage medium |
CN111478837B (en) * | 2020-04-02 | 2022-01-11 | 广东美的暖通设备有限公司 | Data communication method, air conditioner, air conditioning system and storage medium |
CN111897552B (en) * | 2020-08-13 | 2022-08-19 | 四川长虹电器股份有限公司 | Programming method for TCON drive IC |
-
2021
- 2021-03-31 CN CN202110344337.4A patent/CN113076142B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105528208A (en) * | 2015-12-04 | 2016-04-27 | 四川长虹电器股份有限公司 | TCON-less screen parameter separation control method |
CN109698971A (en) * | 2019-01-15 | 2019-04-30 | 青岛海信电器股份有限公司 | A kind of data processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN113076142A (en) | 2021-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10452404B2 (en) | Optimized UEFI reboot process | |
CN106990958B (en) | Expansion assembly, electronic equipment and starting method | |
TWI514408B (en) | Handling errors during device bootup from a non-volatile memory | |
US8595552B2 (en) | Reset method and monitoring apparatus | |
CN113495799B (en) | Memory fault processing method and related equipment | |
CN113076142B (en) | TCON parameter initialization method and display device | |
US7395397B2 (en) | Electronic apparatus with page table management of program, data processing method and computer program | |
US20190204887A1 (en) | Backup power supply method and apparatus | |
CN101650662A (en) | Memory device of embedded system and staring method and upgrading of firmware | |
US11972243B2 (en) | Memory device firmware update and activation without memory access quiescence | |
JP2013520744A (en) | Method and apparatus for generating minimum boot image | |
KR20140118093A (en) | Apparatus and Method for fast booting based on virtualization and snapshot image | |
KR101673299B1 (en) | Operating system recovery method and apparatus, and terminal device | |
KR100777446B1 (en) | Electronic device and booting method thereof | |
KR20140121233A (en) | Electronic device having a booting function of operating system by bootloader, method of performing the same function and storage medium | |
CN114721493B (en) | Chip starting method, computer equipment and readable storage medium | |
US20180275731A1 (en) | Processor reset vectors | |
CN112306782B (en) | Debugging test-oriented operating system kernel guiding and loading hardware and method | |
JP2000010666A (en) | Computer system and flash rom rewriting method | |
CN113094107A (en) | Data protection method, device, equipment and computer storage medium | |
CN110825421A (en) | Firmware upgrading method and system and readable storage medium | |
US8275981B2 (en) | Flash storage system and method for accessing a boot program | |
US6971003B1 (en) | Method and apparatus for minimizing option ROM BIOS code | |
CN113099279A (en) | TCON parameter writing method and display device | |
US20140372806A1 (en) | Virtual machine system and information storing processing method |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |