WO2023010251A1 - Display control method and apparatus, electronic device, and storage medium - Google Patents

Display control method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2023010251A1
WO2023010251A1 PCT/CN2021/110127 CN2021110127W WO2023010251A1 WO 2023010251 A1 WO2023010251 A1 WO 2023010251A1 CN 2021110127 W CN2021110127 W CN 2021110127W WO 2023010251 A1 WO2023010251 A1 WO 2023010251A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
driver chip
parameter
real
parameters
Prior art date
Application number
PCT/CN2021/110127
Other languages
French (fr)
Chinese (zh)
Inventor
张金梁
Original Assignee
深圳Tcl新技术有限公司
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 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Priority to PCT/CN2021/110127 priority Critical patent/WO2023010251A1/en
Publication of WO2023010251A1 publication Critical patent/WO2023010251A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs

Definitions

  • the present application relates to the technical field of display control, and in particular to a display control method, device, electronic equipment, and storage medium.
  • the equipment using the display screen needs to configure the screen parameters of the display screen. Only after the screen parameter configuration can the display screen display the picture normally, and the screen parameters are mainly written on the driver chip related to the display screen display. , the driver chip outputs the screen data of the display screen to the display screen.
  • the screen parameters in the driver chip are prone to be abnormal due to the influence of the system or software.
  • the screen parameters are abnormal, there will be abnormal display feedback on the display screen.
  • the display screen display abnormality will make the entire device Or the platform is difficult to use.
  • the screen parameters in the driver chip will be rewritten after each boot, so that the display screen of the device will display normally after the device is restarted.
  • the above display control The method increases the number of write times of the drive chip and reduces the service life of the drive chip.
  • This application provides a display control method, device, electronic equipment and storage medium, aiming at reducing the number of writes to the driver chip and increasing the service life of the driver chip.
  • the present application provides a display control method, which is applied to a terminal device with a display screen, and the method includes:
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time, and the screen parameter file contains real-time screen parameters when the device is turned on;
  • the screen parameter file of the target driver chip is updated according to the setting screen parameters
  • the embodiment of the present application also provides a display control device, including:
  • the reading module is used to read the screen parameter file of at least one driver chip in the display screen of the device in real time when it is detected that the device is powered on, and the screen parameter file contains the real-time screen parameters when the device is powered on;
  • the obtaining module is used to obtain the setting screen parameters of the driver chip when it leaves the factory;
  • the update module is used to keep the real-time screen parameters in the screen parameter file unchanged when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters;
  • the display module is used to control the display screen to display according to the screen parameter file.
  • the screen parameter file of the target driver chip is updated according to setting screen parameters, including:
  • the first acquisition unit is used to acquire the number of target chips of the target driver chip, and the number of target chips is at least one;
  • the first determination unit is used to determine the screen parameter file update method of the target driver chip according to the number of target chips
  • the first updating unit is used to update the screen parameter file of the target driver chip according to the screen parameter file updating method and setting screen parameters.
  • the number of target driver chips includes one, and the first determining unit includes:
  • the first update subunit is used to directly update the screen parameter file of the target driver chip according to the setting screen parameters of the target driver chip.
  • the number of target driver chips includes two, and the first determining unit includes:
  • the first selection subunit is used to select the first target driver chip from the two target driver chips;
  • the second update subunit is used to update the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
  • the third update subunit is used to perform the second screen parameter file of the second target driver chip according to the set screen parameters of the first screen parameter file and the second target chip after the update after the first screen parameter file is successfully updated. renew.
  • the setting screen parameters include setting parameter names and setting parameter values
  • the real-time screen parameters include real-time parameter names and real-time parameter values
  • Screen parameter files are updated, including:
  • the second acquiring unit is used to acquire the screen parameter path of loading the screen parameter file in the target driver chip
  • the second update unit is used to replace the real-time parameter value in the target driver chip with the set parameter value according to the screen parameter path, the set parameter name and the real-time parameter name.
  • the second updating unit includes:
  • the loading subunit is used to load the screen parameter path to obtain the screen parameter file of the target driver chip
  • the replacement subunit is used to replace the real-time parameter value in the screen parameter file with the set parameter value according to the set parameter name and the real-time parameter name.
  • a backup screen parameter file is stored in the device, and backup screen parameters are stored in the backup screen parameter file, and the setting screen parameters include the backup screen parameters, and the target drive
  • the screen parameter file of the chip is updated, including:
  • the third obtaining unit is used to obtain the screen parameter path of the screen parameter file for loading the target driver chip and the backup screen parameter path for loading the backup screen parameter file;
  • the third updating unit is used to replace the screen parameter path with the backup screen parameter path.
  • a backup screen parameter file is stored in the device, and a backup screen parameter is stored in the backup screen parameter file, and the setting screen parameter includes a backup screen parameter, and the backup screen parameter includes a backup parameter name and Backup parameter values
  • real-time screen parameters include real-time parameter names and real-time parameter values
  • update the screen parameter file of the target driver chip according to the set screen parameters including:
  • the fourth obtaining unit is used to obtain the screen parameter path of the screen parameter file loaded in the target driver chip
  • the fourth updating unit is used to replace the real-time parameter value in the target driver chip with the backup parameter value according to the screen parameter path, the backup parameter name and the real-time parameter name.
  • the verification module is specifically used for:
  • the screen parameter file of the target driver chip is updated according to the set screen parameters, specifically for:
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
  • the screen parameter path of at least one driver chip in the display screen is the configuration path of the screen parameter file for configuring the driver chip last time before the device is powered on;
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
  • the backup screen parameter path is the backup path of the last backup screen parameter file of the driver chip before the device leaves the factory;
  • the device when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result.
  • the screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
  • FIG. 1 is a schematic diagram of a scene of a display control method provided by the present application.
  • FIG. 2 is a schematic flow chart of a display control method provided by the present application.
  • FIG. 3 is a schematic diagram of the first structure of updating screen parameter data in the display control method provided by the present application.
  • Fig. 4 is a second schematic flow chart of updating screen parameter data of the display control method provided by the present application.
  • Fig. 5 is a third schematic flow chart of screen parameter data update in the display control method provided by the present application.
  • Fig. 6 is a schematic structural diagram of a display control device provided by the present application.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by the present application.
  • Embodiments of the present application provide a display control method, device, electronic equipment, and storage medium.
  • the display control method provided in the embodiment of the present application may be executed by a terminal device carrying a display screen, where the terminal device may include a TV, a notebook, a desktop computer, a tablet computer, or a mobile phone.
  • the device terminal When the device terminal is turned on, it first detects the screen parameters of the driver chip related to the display screen of the terminal device. The screen parameters are rewritten. When it is detected that the above screen parameters have not changed, the rewriting of the screen parameters of the driver chip is canceled, and then the terminal device controls the display of the display screen according to the screen parameters in the driver chip.
  • Message Digest Algorithm (MD5, Message-Digest Algorithm), a widely used cryptographic hash function, can generate a 128-bit (16-byte) hash value (hash value) to ensure the integrity of information transmission
  • the customer synchronizes a file to our data center, the file uses the information summary algorithm (MD5, Message-Digest Algorithm) verification, then the customer will send a file with a verification code when sending the file, and we will do the message digest algorithm (MD5, Message-Digest Algorithm) operation, the calculated result is compared with the check code sent by the customer, if they are consistent, it is considered that the file sent by the customer has no error, otherwise it is considered that the file has an error and needs to be resent.
  • MD5 information summary algorithm
  • MD5 message-Digest Algorithm
  • the device when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result.
  • the screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
  • FIG. 2 is a schematic flowchart of a display control method provided by an embodiment of the present application.
  • the specific flow of the display control method may be as follows:
  • the screen parameters are output by the driver chip and act on the display screen to control the display of the display screen.
  • the screen parameters include the basic width and height of the screen, refresh rate, brightness and resolution, etc.
  • the screen parameter file is used to store the screen parameters.
  • the screen parameter file can be a file with an extension of .txt.
  • the screen parameter file can be stored in the driver chip or in the device memory. After the driver chip loads the screen parameter file, The display screen can be controlled to display according to the screen parameters in the screen parameter file.
  • the driver chip includes microelectronic devices (IC, Integrated Circuit) or embedded multimedia card (EMMC, Embedded Multi Media Card).
  • IC microelectronic devices
  • EMMC embedded multimedia card
  • the manufacturer will rewrite the screen parameters in the device when the device is turned on, so as to ensure that the display screen can follow the standard and pre-defined screen parameters after each boot.
  • Display that is, after the device displays abnormally, in most cases, the display style of the display can be adjusted or restored by restarting the device;
  • obtaining the screen parameters of the device can accurately obtain the display parameters displayed on the screen before the device is turned off, and by verifying this part of the display parameters, it can be determined whether this part of the display parameters has changed, for example, This part shows whether the parameters are out of order due to system reasons or software abnormalities.
  • the screen parameter file can be read according to the loading path of the screen parameter file, that is, optionally, in some embodiments, the step "read the screen parameter file of at least one driver chip in the display screen of the device in real time", specifically Can include:
  • the screen parameter path is the configuration path of the screen parameter file for configuring the driver chip last time before the device is powered on;
  • the screen parameter path is the path for the driver chip to load the screen parameter file
  • the screen parameter file of the driver chip can be obtained according to the screen parameter path
  • the acquisition of the screen parameter path can be obtained according to a pre-stored path list, and according to the screen parameter path
  • the obtained screen parameter file can improve the accuracy of obtaining the screen parameter file.
  • a backup screen parameter file can be set in the device. After the screen parameter file of the driver chip is destroyed, the backup screen parameter file can be loaded as needed, and the screen parameters in the backup screen parameter file can be used.
  • Controlling the display of the display screen that is, optionally, in some embodiments, the step of "reading the screen parameter file of at least one driver chip in the display screen of the device in real time" may specifically include:
  • the backup screen parameter path is the backup path of the last backup screen parameter file of the driver chip before the device leaves the factory;
  • the backup screen parameter file of at least one driver chip is respectively read according to the backup screen parameter path.
  • the backup screen parameter file can be a backup of the set screen parameter file.
  • the backup screen parameter file can be automatically loaded, and the screen parameters in the backup screen parameter file can be used to control the display. Therefore, when the backup screen parameter file dominates the display of the display screen, it is necessary to detect the screen parameters in the backup screen parameter file when starting up. Therefore, in the embodiment of this application, according to the backup screen parameter file
  • the backup screen parameter path obtains the backup screen parameter file and obtains the backup screen parameter file, which is convenient for verifying the backup screen data in the backup screen parameter file, and the acquisition of the backup screen parameter path also realizes the backup screen parameter file accurate positioning.
  • setting the screen parameters is set by the manufacturer according to the size of the screen, the needs of users or the needs of the market before leaving the factory. Setting the screen parameters often makes the display of the screen achieve the best effect.
  • the screen parameters in the screen parameter files that can be loaded should also be synchronized with the setting screen parameters.
  • the setting screen parameters can be obtained according to the data released by the manufacturer, or according to the display parameters pasted on the device, or according to the instruction manual of the device.
  • the real-time screen parameters of the driver chip are the same as the set screen parameters, it means that the screen parameters in the screen parameter file loaded by the driver chip have not been modified.
  • the real-time screen parameters in the screen parameter file can be kept No change, that is, there is no need to rewrite the screen parameters during this boot, which reduces the number of writes to the driver chip and improves the service life of the driver chip.
  • the details can include:
  • the set hash value and the real-time hash value it is determined whether the set screen parameter is the same as the real-time screen parameter.
  • the hash value comparison method is also called message digest algorithm (MD5, Message-Digest Algorithm) check, according to the comparison of the set hash value of the set screen parameters and the hash value of the real-time screen parameters, it can be accurately Verify that the setting screen parameters are the same as the real-time screen parameters.
  • MD5 message digest algorithm
  • Message-Digest Algorithm Message-Digest Algorithm
  • the manufacturer in order to ensure the accuracy of the setting screen parameters, the manufacturer generally sends a check code file for the setting screen parameters at the same time as sending the setting screen parameters.
  • the setting screen parameters can be obtained.
  • Set the hash value when verifying the real-time screen parameters, the real-time hash value of the real-time screen parameters can be generated, and the comparison between the set hash value and the real-time hash value can improve the verification of the set screen parameters and Whether the real-time screen parameters have the same efficiency, wherein, the set hash value can also be directly hashed and generated according to the set screen parameters.
  • the screen parameter file of the target driver chip is updated according to the setting screen parameters.
  • the real-time screen parameters are updated by setting screen parameters, so that the real-time screen parameters and the setting screen parameters can be kept in sync, so that the display screen can be displayed according to factory requirements.
  • updating the real-time screen parameters can restore the normal display of the display screen after the device is powered on. For example, when the display screen of the device displays abnormally, you can By restarting the device, the display screen style of the device can be reloaded correctly.
  • the corresponding method when updating the screen parameters of the driver chip, can be selected according to the number of the driver chips to update, that is, optionally, in some embodiments, the step "update the screen parameters of the target driver chip according to the set screen parameters reference file to be updated”, which may include:
  • different updating methods are selected to update the driving chips, which can improve the updating efficiency of the driving chips.
  • the real-time screen parameters can be updated directly according to the set screen parameters.
  • ways which may specifically include:
  • the screen parameter file of the target driver chip is updated directly according to the setting screen parameters of the target driver chip.
  • the device can complete the display control of the display screen according to a single driver chip. Therefore, the screen parameters for a single driver chip can be directly updated according to the set screen parameters, and the update efficiency higher.
  • 4K HDTV is designed with a single driver chip.
  • the driver chip for 4K HDTV can be updated directly according to the set screen parameters.
  • the specific update process includes:
  • one of the One driver chip updates the screen parameters, and then uses the updated driver chip to update the screen parameters of the other driver chip, that is, optionally, in some embodiments, the step "determines the screen parameters of the target driver chip according to the number of target chips.”
  • “Refer to file update method” which may include:
  • the second screen parameter file of the second target driver chip is updated according to the updated first screen parameter file and the setting screen parameters of the second target chip.
  • the display control of the two driver chips there is a process of data transmission and interaction between the two driver chips, so it is possible to update one of the driver chips first, and then use the updated driver chip to update the other non-updated driver chip.
  • the driver chip can be updated, which can improve the update efficiency of the driver chip.
  • An 8K UHD TV mounts an 8K driver chip on the basis of a 4K driver chip to complete the 8K display on the display screen. Therefore, the screen parameters driven by the 8K driver chip are transmitted from the 4K driver chip. Therefore, when updating the screen parameters of the 8K driver chip, the 4K driver chip can be updated first, and then the 8K driver chip can be updated by using the updated 4K driver chip to improve the screen parameter update of the driver chip.
  • the specific process of updating the screen parameters of the 8K driver chip includes:
  • the screen parameter data of the 8K driver chip needs to be updated.
  • the screen parameter data of the 8K driver chip needs to be updated (that is, the real-time screen parameter data of the 8K driver chip and the corresponding setting screen parameter When the data is inconsistent)
  • obtain the setting screen parameter data of the 8K driver chip from the 4K driver chip and update the real-time screen parameter data of the 8K driver chip. Otherwise, the screen parameter data of the 8K driver chip does not need to be updated.
  • the setting screen parameters include setting parameter names and setting parameter values
  • the real-time screen parameters include real-time parameter names and real-time parameter values. Therefore, according to the parameter names of the setting screen parameters and real-time screen parameters, The parameter value corresponding to the parameter name is updated, that is, optional, in some embodiments, the step "update the screen parameter file of the target driver chip according to the set screen parameters", specifically may include:
  • setting parameter name and real-time parameter name replace the real-time parameter value in the target driver chip with the setting parameter value.
  • updating the parameter value corresponding to the parameter name according to the parameter name can improve the accuracy of parameter updating, and the accurate positioning of the screen parameter to be updated can be realized by using the screen parameter path.
  • updating the screen parameters can be implemented by replacing the parameter values corresponding to the parameter names, that is, optionally, in some embodiments, the step "according to the screen parameter path, the setting parameter name and the real-time parameter name, set The real-time parameter value in the target driver chip is replaced with the set parameter value", which can specifically include:
  • the screen parameter file is loaded, and the parameter value corresponding to the parameter name in the screen parameter file is replaced to realize the update of the real-time screen parameters, which is convenient and quick.
  • the manufacturer will back up a screen parameter file in the device.
  • the backup screen parameter file can be loaded by the driver chip, and the backup screen parameter file can be used to control the display of the display screen.
  • backup screen parameters are stored in the backup screen parameter file, wherein the backup screen parameter file is a backup of the setting screen parameter file, therefore, the setting screen parameter can include the backup screen parameter, that is, optional, in some
  • the step "update the screen parameter file of the target driver chip according to the set screen parameters" may specifically include:
  • the driver chip directly loads the screen parameters in the backup screen parameter file. After uploading the file, the driver chip actually directly loads the setting screen parameters, which has the function of making the display screen display normally, and achieves the function of updating the display parameters of the display screen.
  • the screen parameters can be obtained directly from the backup screen parameter file, and the corresponding screen parameters can be updated, wherein, the backup screen parameters include backup parameter names and backup parameter values, and the real-time screen parameters include real-time parameter names and real-time parameter values, that is,
  • the step "update the screen parameter file of the target driver chip according to the set screen parameters" may specifically include:
  • the backup parameter name and the real-time parameter name replace the real-time parameter value in the target driver chip with the backup parameter value.
  • the screen parameters of the backup screen parameter file are the backup of the set screen parameters, therefore, the real-time screen parameters can also be updated directly according to the backup screen parameter file.
  • the replacement of the parameter value can realize the updating of the real-time screen parameters loaded by the driver chip.
  • the step "update the screen parameter file of the target driver chip according to the set screen parameters" may specifically include:
  • the loading of the newly created screen parameter file can be realized, and the display of the display screen can be controlled after the driver chip loads the screen parameters in the newly created screen parameter file.
  • the creation of the screen parameter path and screen parameter file is also applicable to the configuration of the screen parameters, for example:
  • the driver chip needs to load multiple screen parameter files to control the display of the display screen, and in the process of configuring the screen parameters, some screen parameter files are lost due to the influence of the system or software;
  • the information summary algorithm MD5, Message-Digest Algorithm
  • the real-time screen parameters are consistent with the set screen parameters, there is no need to update the real-time screen parameters.
  • the real-time screen parameters If it is inconsistent with the setting screen parameters, it will be updated according to the setting screen parameters and real-time screen parameters.
  • the update of the screen parameters may also be driven by VBE, the data update process is converted into a script file, and the script file is executed to realize the update of the screen parameters.
  • the screen parameters in the screen parameter file can also be updated according to the debug mode (debug mode), read the flag of the debug mode, and set the flag to In the screen parameter file, use the VBE driver to write the identification bit into the corresponding directory, such as the bin directory.
  • debug mode debug mode
  • VBE driver to write the identification bit into the corresponding directory, such as the bin directory.
  • the driver chip is loaded into the screen parameter file, and the screen parameters in the screen parameter file are output to the display screen to control the display of the display screen. For example, according to the screen parameters in the screen parameter file, adjust the screen base width, height, Refresh rate, brightness and resolution, etc.
  • the screen parameters are stored in the form of a screen parameter file, which facilitates the updating of the screen parameters in the screen parameter file and the adjustment of the display screen parameters.
  • the device when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result.
  • the screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
  • the present application further provides a display control device based on the above display control method.
  • the meanings of the nouns are the same as those in the above display control method, and for specific implementation details, please refer to the description in the method embodiments.
  • FIG. 6 is a schematic structural diagram of a display control device provided by the present application, wherein the display control device may include a reading module 201, an acquisition module 202, an update module 203 and a display module 204, specifically as follows:
  • the reading module 201 is used to read the screen parameter file of at least one driver chip in the display screen of the device in real time when it is detected that the device is powered on, and the screen parameter file contains real-time screen parameters when the device is powered on;
  • the manufacturer will rewrite the screen parameters in the device when the device is turned on, so as to ensure that the display screen can follow the standard and pre-defined screen parameters after each boot.
  • Display that is, after the device displays abnormally, in most cases, the display style of the display can be adjusted or restored by restarting the device;
  • the reading module 201 acquires the screen parameters of the device to accurately obtain the display parameters displayed on the screen before the device is turned off, and by checking this part of the display parameters, it can be determined whether this part of the display parameters has occurred. Changes, for example, whether the display parameters in this part are disordered due to system reasons or software abnormalities.
  • the obtaining module 202 is used to obtain the setting screen parameters of the driver chip when it leaves the factory.
  • setting the screen parameters is set by the manufacturer according to the size of the screen, the needs of users or the needs of the market before leaving the factory. Setting the screen parameters often makes the display of the screen achieve the best effect.
  • the screen parameters in the screen parameter files that can be loaded should also be synchronized with the setting screen parameters.
  • the acquiring module 202 can acquire setting screen parameters according to the data released by the manufacturer, or acquire according to the display parameters pasted on the device or according to the manual of the device.
  • the update module 203 is used to keep the real-time screen parameters in the screen parameter file unchanged when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters;
  • the update module 203 when the real-time screen parameters of the driver chip are the same as the set screen parameters, it means that the screen parameters in the screen parameter file loaded by the driver chip have not been modified.
  • the real-time screen parameters in the reference file remain unchanged, that is, there is no need to rewrite the screen parameters during this boot, which reduces the number of writes to the driver chip and improves the service life of the driver chip.
  • the update module 203 is also used for updating the screen parameter file of the target driver chip according to the set screen parameters when the real-time screen parameters of the target driver chip are different from the corresponding setting screen parameters.
  • the real-time screen parameters are updated by setting screen parameters, so that the real-time screen parameters and the setting screen parameters can be kept in sync, so that the display screen can be displayed according to factory requirements.
  • updating the real-time screen parameters can restore the normal display of the display screen after the device is powered on. For example, when the display screen of the device displays abnormally, you can By restarting the device, the display screen style of the device can be reloaded correctly.
  • the display module 204 is configured to control the display screen to display according to the screen parameter file.
  • the driver chip is loaded into the screen parameter file, and the screen parameters in the screen parameter file are output to the display screen to control the display of the display screen. For example, according to the screen parameters in the screen parameter file, adjust the screen base width, height, Refresh rate, brightness and resolution, etc.
  • the screen parameters are stored in the form of a screen parameter file, which facilitates the updating of the screen parameters in the screen parameter file and the adjustment of the display screen parameters.
  • the screen parameter file of the target driver chip is updated according to setting screen parameters, including:
  • the first acquisition unit is used to acquire the number of target chips of the target driver chip, and the number of target chips is at least one;
  • the first determination unit is used to determine the screen parameter file update method of the target driver chip according to the number of target chips
  • the first updating unit is used to update the screen parameter file of the target driver chip according to the screen parameter file updating method and setting screen parameters.
  • different updating methods are selected to update the driving chips, which can improve the updating efficiency of the driving chips.
  • the number of target driver chips includes one, and the first determining unit includes:
  • the first update subunit is used to directly update the screen parameter file of the target driver chip according to the setting screen parameters of the target driver chip.
  • the device can complete the display control of the display screen according to a single driver chip. Therefore, the screen parameters for a single driver chip can be directly updated according to the set screen parameters, and the update efficiency higher.
  • the number of target driver chips includes two, and the first determining unit includes:
  • the first selection subunit is used to select the first target driver chip from the two target driver chips;
  • the second update subunit is used to update the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
  • the third update subunit is used to perform the second screen parameter file of the second target driver chip according to the set screen parameters of the first screen parameter file and the second target chip after the update after the first screen parameter file is successfully updated. renew.
  • the display control of the two driver chips there is a process of data transmission and interaction between the two driver chips, so it is possible to update one of the driver chips first, and then use the updated driver chip to update the other non-updated driver chip.
  • the driver chip can be updated, which can improve the update efficiency of the driver chip.
  • the setting screen parameters include setting parameter names and setting parameter values
  • the real-time screen parameters include real-time parameter names and real-time parameter values
  • Screen parameter files are updated, including:
  • the second acquiring unit is used to acquire the screen parameter path of loading the screen parameter file in the target driver chip
  • the second update unit is used to replace the real-time parameter value in the target driver chip with the set parameter value according to the screen parameter path, the set parameter name and the real-time parameter name.
  • updating the parameter value corresponding to the parameter name according to the parameter name can improve the accuracy of parameter updating, and the accurate positioning of the screen parameter to be updated can be realized by using the screen parameter path.
  • the second updating unit includes:
  • the loading subunit is used to load the screen parameter path to obtain the screen parameter file of the target driver chip
  • the replacement subunit is used to replace the real-time parameter value in the screen parameter file with the set parameter value according to the set parameter name and the real-time parameter name.
  • the screen parameter file is loaded, and the parameter value corresponding to the parameter name in the screen parameter file is replaced to realize the update of the real-time screen parameters, which is convenient and quick.
  • a backup screen parameter file is stored in the device, and backup screen parameters are stored in the backup screen parameter file, and the setting screen parameters include the backup screen parameters, and the target drive
  • the screen parameter file of the chip is updated, including:
  • the third obtaining unit is used to obtain the screen parameter path of the screen parameter file for loading the target driver chip and the backup screen parameter path for loading the backup screen parameter file;
  • the third updating unit is used to replace the screen parameter path with the backup screen parameter path.
  • the driver chip directly loads the screen parameters in the backup screen parameter file. After uploading the file, the driver chip actually directly loads the setting screen parameters, which has the function of making the display screen display normally, and achieves the function of updating the display parameters of the display screen.
  • a backup screen parameter file is stored in the device, and a backup screen parameter is stored in the backup screen parameter file, and the setting screen parameter includes a backup screen parameter, and the backup screen parameter includes a backup parameter name and Backup parameter values
  • real-time screen parameters include real-time parameter names and real-time parameter values
  • update the screen parameter file of the target driver chip according to the set screen parameters including:
  • the fourth obtaining unit is used to obtain the screen parameter path of the screen parameter file loaded in the target driver chip
  • the fourth update unit is used to replace the real-time parameter value in the target driver chip with the backup parameter value according to the backup parameter name and the real-time parameter name.
  • the screen parameters of the backup screen parameter file are the backup of the set screen parameters, therefore, the real-time screen parameters can also be updated directly according to the backup screen parameter file.
  • the replacement of the parameter value can realize the updating of the real-time screen parameters loaded by the driver chip.
  • the verification module is specifically used for:
  • the screen parameter file of the target driver chip is updated according to the set screen parameters, specifically for:
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
  • the screen parameter path of at least one driver chip in the display screen is the configuration path of the screen parameter file for configuring the driver chip last time before the device is powered on;
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
  • the backup screen parameter path is the backup path of the last backup screen parameter file of the driver chip before the device leaves the factory;
  • the reading module 201 first reads the screen parameter file of at least one driver chip related to the display in the display screen of the device when the device is powered on, and obtains the real-time screen parameters when the device is powered on according to the screen parameter file.
  • the acquisition module 202 acquires the set screen parameters of the driver chip of the device when it leaves the factory, and then the update module 203 updates the real-time screen parameters according to the set screen parameters, so as to keep the synchronization of the real-time screen parameters and the set screen parameters, wherein , in the process of updating the real-time screen parameters, it is also selected to verify whether the setting screen parameters are the same as the real-time screen parameters.
  • the display of the display screen is controlled by the updated screen parameters; Before writing the screen parameters of the corresponding driver chip, first detect whether the screen parameters of the driver chip have changed, and determine whether the screen parameters of the driver chip need to be rewritten according to the detection results, reducing the number of writes to the driver chip , improve the service life of the driver chip.
  • FIG. 7 shows a schematic structural diagram of the electronic device involved in the present application, specifically:
  • the electronic device may include a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, an input unit 404 and other components.
  • a processor 401 of one or more processing cores may include a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, an input unit 404 and other components.
  • FIG. 7 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
  • the processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 402, and calling the Data, perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole.
  • the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 401 .
  • the memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402 .
  • the memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function; Data created by the use of electronic devices, etc.
  • the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the memory 402 may further include a memory controller to provide the processor 401 with access to the memory 402 .
  • the electronic device also includes a power supply 403 for supplying power to various components.
  • the power supply 403 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system.
  • the power supply 403 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
  • the electronic device can also include an input unit 404, which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • an input unit 404 which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
  • the electronic device may also include a display unit, etc., which will not be repeated here.
  • the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the executable file stored in the The application program in memory 402, thereby realizes various functions, as follows:
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time.
  • the screen parameter file contains the real-time screen parameters when the device is turned on; obtain the setting screen parameters of the driver chip when it leaves the factory;
  • the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged;
  • the device when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result.
  • the screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
  • the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any display control method provided in the present application.
  • the command can perform the following steps:
  • the screen parameter file of at least one driver chip in the display screen of the device is read in real time.
  • the screen parameter file contains the real-time screen parameters when the device is turned on; obtain the setting screen parameters of the driver chip when it leaves the factory;
  • the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged;
  • the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed in embodiments of the present application are a display control method and apparatus, an electronic device, and a storage medium. The method comprises: when it is detected that a device is powered on, reading a screen parameter file of at least one driver chip in a display screen of the device in real time, the screen parameter file comprising a real-time screen parameter when the device is powered on; obtaining a set screen parameter of the driver chip when the driver chip leaves the factory; when the real-time screen parameter of each driver chip is the same as the corresponding set screen parameter, keeping the real-time screen parameter in the screen parameter file unchanged; when the case that the real-time screen parameter of a target driver chip is different from the corresponding set screen parameter is present, updating the screen parameter file of the target driver chip according to the set screen parameter; and controlling the display screen to implement display according to the screen parameter file. According to a verification result indicating whether the screen parameter has changed, whether the screen parameter in the driver chip needs to be re-written is determined, thus the number of times of writing screen parameters in the driver chip is reduced, and the service life of the driver chip is prolonged.

Description

显示控制方法、装置、电子设备及存储介质Display control method, device, electronic device and storage medium 技术领域technical field
本申请涉及显示控制技术领域,具体涉及一种显示控制方法、装置、电子设备及存储介质。The present application relates to the technical field of display control, and in particular to a display control method, device, electronic equipment, and storage medium.
背景技术Background technique
使用显示屏的设备在出厂前,都需要对其显示屏进行屏幕参数配置,在屏幕参数配置后才能令显示屏正常显示画面,而屏幕参数主要是写入在与显示屏显示相关的驱动芯片上,由驱动芯片向显示屏输出显示屏的屏幕数据。Before leaving the factory, the equipment using the display screen needs to configure the screen parameters of the display screen. Only after the screen parameter configuration can the display screen display the picture normally, and the screen parameters are mainly written on the driver chip related to the display screen display. , the driver chip outputs the screen data of the display screen to the display screen.
而驱动芯片中屏幕参数容易受系统或者软件的影响而出现异常,当屏幕参数出现异常时,显示屏上就会出现显示异常的反馈,而对用户来说,显示屏显示异常就会使整个设备或者平台难以使用。However, the screen parameters in the driver chip are prone to be abnormal due to the influence of the system or software. When the screen parameters are abnormal, there will be abnormal display feedback on the display screen. For the user, the display screen display abnormality will make the entire device Or the platform is difficult to use.
技术问题technical problem
现有技术中,为保证设备显示屏的正常显示,会在每次开机后进行驱动芯片中屏幕参数的重新写入,这样设备在重启后设备的显示屏就会正常显示,但是,上述显示控制方法增加了驱动芯片写入的次数,降低了驱动芯片的使用寿命。In the prior art, in order to ensure the normal display of the display screen of the device, the screen parameters in the driver chip will be rewritten after each boot, so that the display screen of the device will display normally after the device is restarted. However, the above display control The method increases the number of write times of the drive chip and reduces the service life of the drive chip.
技术解决方案technical solution
在此处键入技术解决方案描述段落本申请提供一种显示控制方法、装置、电子设备及存储介质,旨在降低驱动芯片的写入次数,提高驱动芯片的使用寿命。Type here the technical solution description paragraph This application provides a display control method, device, electronic equipment and storage medium, aiming at reducing the number of writes to the driver chip and increasing the service life of the driver chip.
为实现上述目的,本申请提供一种显示控制方法,该方法应用于带显示屏的终端设备,所述方法包括:In order to achieve the above purpose, the present application provides a display control method, which is applied to a terminal device with a display screen, and the method includes:
当检测到设备开机时,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,屏参文件中包含有设备开机时的实时屏幕参数;When it is detected that the device is turned on, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, and the screen parameter file contains real-time screen parameters when the device is turned on;
获取驱动芯片在出厂时的设定屏幕参数;Obtain the setting screen parameters of the driver chip when it leaves the factory;
当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变;When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged;
当存在目标驱动芯片的实时屏幕参数与对应的设定屏幕参数不相同时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新;When the real-time screen parameters of the target driver chip are different from the corresponding setting screen parameters, the screen parameter file of the target driver chip is updated according to the setting screen parameters;
根据屏参文件控制显示屏进行显示。Control the display to display according to the screen parameter file.
相应的,本申请实施例还提供了一种显示控制装置,包括:Correspondingly, the embodiment of the present application also provides a display control device, including:
读取模块,用于当检测到设备开机时,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,屏参文件中包含有设备开机时的实时屏幕参数;The reading module is used to read the screen parameter file of at least one driver chip in the display screen of the device in real time when it is detected that the device is powered on, and the screen parameter file contains the real-time screen parameters when the device is powered on;
获取模块,用于获取驱动芯片在出厂时的设定屏幕参数;The obtaining module is used to obtain the setting screen parameters of the driver chip when it leaves the factory;
更新模块,用于当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变;The update module is used to keep the real-time screen parameters in the screen parameter file unchanged when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters;
还用于当存在目标驱动芯片的实时屏幕参数与对应的设定屏幕参数不相同时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新;It is also used to update the screen parameter file of the target driver chip according to the set screen parameters when the real-time screen parameters of the target driver chip are different from the corresponding setting screen parameters;
显示模块,用于根据屏参文件控制显示屏进行显示。The display module is used to control the display screen to display according to the screen parameter file.
可选的,在本申请的一些实施例中,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, the screen parameter file of the target driver chip is updated according to setting screen parameters, including:
第一获取单元,用于获取目标驱动芯片的目标芯片数量,目标芯片数量至少为一个;The first acquisition unit is used to acquire the number of target chips of the target driver chip, and the number of target chips is at least one;
第一确定单元,用于根据目标芯片数量确定目标驱动芯片的屏参文件更新方式;The first determination unit is used to determine the screen parameter file update method of the target driver chip according to the number of target chips;
第一更新单元,用于根据屏参文件更新方式和设定屏幕参数对目标驱动芯片的屏参文件进行更新。The first updating unit is used to update the screen parameter file of the target driver chip according to the screen parameter file updating method and setting screen parameters.
可选的,在本申请的一些实施例中,目标驱动芯片数量包括一个,第一确定单元包括:Optionally, in some embodiments of the present application, the number of target driver chips includes one, and the first determining unit includes:
第一更新子单元,用于直接根据目标驱动芯片的设定屏幕参数对目标驱动芯片的屏参文件进行更新。The first update subunit is used to directly update the screen parameter file of the target driver chip according to the setting screen parameters of the target driver chip.
可选的,在本申请的一些实施例中,目标驱动芯片数量包括两个,第一确定单元包括:Optionally, in some embodiments of the present application, the number of target driver chips includes two, and the first determining unit includes:
第一选取子单元,用于从两个目标驱动芯片中选取第一目标驱动芯片;The first selection subunit is used to select the first target driver chip from the two target driver chips;
第二更新子单元,用于根据第一目标驱动芯片的设定屏幕参数对第一目标驱动芯片的第一屏参文件进行更新;The second update subunit is used to update the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
第三更新子单元,用于当第一屏参文件更新成功后,根据更新后第一屏参文件和第二目标芯片的设定屏幕参数,对第二目标驱动芯片的第二屏参文件进行更新。The third update subunit is used to perform the second screen parameter file of the second target driver chip according to the set screen parameters of the first screen parameter file and the second target chip after the update after the first screen parameter file is successfully updated. renew.
可选的,在本申请的一些实施例中,设定屏幕参数包括设定参数名称和设定参数值,实时屏幕参数包括实时参数名称和实时参数值,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, the setting screen parameters include setting parameter names and setting parameter values, and the real-time screen parameters include real-time parameter names and real-time parameter values. Screen parameter files are updated, including:
第二获取单元,用于获取加载目标驱动芯片中的屏参文件的屏参路径;The second acquiring unit is used to acquire the screen parameter path of loading the screen parameter file in the target driver chip;
第二更新单元,用于根据屏参路径、设定参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为设定参数值。The second update unit is used to replace the real-time parameter value in the target driver chip with the set parameter value according to the screen parameter path, the set parameter name and the real-time parameter name.
可选的,在本申请的一些实施例中,第二更新单元包括:Optionally, in some embodiments of the present application, the second updating unit includes:
加载子单元,用于加载屏参路径,得到目标驱动芯片的屏参文件;The loading subunit is used to load the screen parameter path to obtain the screen parameter file of the target driver chip;
替换子单元,用于根据设定参数名称和实时参数名称,将屏参文件中的实时参数值替换为设定参数值。The replacement subunit is used to replace the real-time parameter value in the screen parameter file with the set parameter value according to the set parameter name and the real-time parameter name.
可选的,在本申请的一些实施例中,设备中存储有备份屏参文件,备份屏参文件中存储有备份屏幕参数,设定屏幕参数包括备份屏幕参数,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, a backup screen parameter file is stored in the device, and backup screen parameters are stored in the backup screen parameter file, and the setting screen parameters include the backup screen parameters, and the target drive The screen parameter file of the chip is updated, including:
第三获取单元,用于获取加载目标驱动芯片的屏参文件的屏参路径以及获取加载备份屏参文件的备份屏参路径;The third obtaining unit is used to obtain the screen parameter path of the screen parameter file for loading the target driver chip and the backup screen parameter path for loading the backup screen parameter file;
第三更新单元,用于将屏参路径替换为备份屏参路径。The third updating unit is used to replace the screen parameter path with the backup screen parameter path.
可选的,在本申请的一些实施例中,设备中存储有备份屏参文件,备份屏参文件中存储有备份屏幕参数,设定屏幕参数包括备份屏幕参数,备份屏幕参数包括备份参数名称和备份参数值,实时屏幕参数包括实时参数名称和实时参数值,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, a backup screen parameter file is stored in the device, and a backup screen parameter is stored in the backup screen parameter file, and the setting screen parameter includes a backup screen parameter, and the backup screen parameter includes a backup parameter name and Backup parameter values, real-time screen parameters include real-time parameter names and real-time parameter values, update the screen parameter file of the target driver chip according to the set screen parameters, including:
第四获取单元,用于获取加载目标驱动芯片中的屏参文件的屏参路径;The fourth obtaining unit is used to obtain the screen parameter path of the screen parameter file loaded in the target driver chip;
第四更新单元,用于根据屏参路径、备份参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为备份参数值。The fourth updating unit is used to replace the real-time parameter value in the target driver chip with the backup parameter value according to the screen parameter path, the backup parameter name and the real-time parameter name.
可选的,在本申请的一些实施例中,当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变之前,还包括校验模块,校验模块具体用于:Optionally, in some embodiments of the present application, when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, before keeping the real-time screen parameters in the screen parameter file unchanged, a check is also included. module, the verification module is specifically used for:
用于针对每个驱动芯片,获取设定屏幕参数所对应的校验码文件,得到设定屏幕参数的设定散列值;It is used to obtain the verification code file corresponding to the setting screen parameters for each driver chip, and obtain the setting hash value of the setting screen parameters;
用于对实时屏幕参数进行散列运算,得到实时屏幕参数的实时散列值;It is used to perform hash operation on the real-time screen parameters to obtain the real-time hash value of the real-time screen parameters;
用于根据设定散列值和实时散列值,确定设定屏幕参数与实时屏幕参数是否相同。It is used to determine whether the setting screen parameters are the same as the real-time screen parameters according to the setting hash value and the real-time hash value.
可选的,在本申请的一些实施例中,当屏参文件不存在时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,具体还用于:Optionally, in some embodiments of the present application, when the screen parameter file does not exist, the screen parameter file of the target driver chip is updated according to the set screen parameters, specifically for:
用于创建目标驱动芯片所加载的新建屏参路径;Used to create a new screen parameter path loaded by the target driver chip;
用于根据新建屏参路径和设定屏幕参数,创建新建屏参文件。It is used to create a new screen parameter file according to the new screen parameter path and set screen parameters.
可选的,在本申请的一些实施例中,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,具体用于:Optionally, in some embodiments of the present application, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
用于获取显示屏中至少一个驱动芯片的屏参路径,屏参路径为设备开机前最后一次配置驱动芯片的屏参文件的配置路径;It is used to obtain the screen parameter path of at least one driver chip in the display screen, and the screen parameter path is the configuration path of the screen parameter file for configuring the driver chip last time before the device is powered on;
用于根据屏参路径分别读取驱动芯片的屏参文件。It is used to read the screen parameter file of the driver chip according to the screen parameter path.
可选的,在本申请的一些实施例中,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,具体用于:Optionally, in some embodiments of the present application, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
用于获取显示屏中至少一个驱动芯片的备份屏参路径,备份屏参路径为设备出厂前最后一次备份驱动芯片的屏参文件的备份路径;It is used to obtain the backup screen parameter path of at least one driver chip in the display, and the backup screen parameter path is the backup path of the last backup screen parameter file of the driver chip before the device leaves the factory;
用于根据备份屏参路径分别读取至少一个驱动芯片的备份屏参文件。It is used for reading the backup screen parameter file of at least one driver chip according to the backup screen parameter path.
有益效果Beneficial effect
本申请实施例在设备开机时,在对设备的显示屏所对应的驱动芯片的屏幕参数写入之前,先对驱动芯片的屏幕参数是否发生变化进行检测,并根据检测结果确定是否需要对驱动芯片的屏幕参数进行重新写入,降低了驱动芯片的写入次数,提高驱动芯片的使用寿命。In the embodiment of the present application, when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result. The screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
附图说明Description of drawings
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。The technical solutions and beneficial effects of the present application will be apparent through the detailed description of the specific embodiments of the present application below in conjunction with the accompanying drawings.
图1是本申请提供的显示控制方法的场景示意图;FIG. 1 is a schematic diagram of a scene of a display control method provided by the present application;
图2是本申请提供的显示控制方法的流程示意图;FIG. 2 is a schematic flow chart of a display control method provided by the present application;
图3是本申请提供的显示控制方法中屏参数据更新的第一种结构示意图;FIG. 3 is a schematic diagram of the first structure of updating screen parameter data in the display control method provided by the present application;
图4是本申请提供的显示控制方法的屏参数据更新的第二种流程示意图;Fig. 4 is a second schematic flow chart of updating screen parameter data of the display control method provided by the present application;
图5是本申请提供的显示控制方法的屏参数据更新的第三种流程示意图;Fig. 5 is a third schematic flow chart of screen parameter data update in the display control method provided by the present application;
图6是本申请提供的显示控制装置的结构示意图;Fig. 6 is a schematic structural diagram of a display control device provided by the present application;
图7是本申请提供的电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
本发明的实施方式Embodiments of the present invention
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
本申请实施例提供一种显示控制方法、装置、电子设备及存储介质。具体地,本申请实施例提供的显示控制方法可以由携带显示屏的终端设备来执行,其中,终端设备可以包括电视、笔记本、台式机、平板电脑或手机等。Embodiments of the present application provide a display control method, device, electronic equipment, and storage medium. Specifically, the display control method provided in the embodiment of the present application may be executed by a terminal device carrying a display screen, where the terminal device may include a TV, a notebook, a desktop computer, a tablet computer, or a mobile phone.
具体地,请参阅图1所示,设备终端在开机时,先对与终端设备的显示屏显示相关的驱动芯片的屏幕参数进行检测,当检测到上述屏幕参数发生变化后,则对驱动芯片的屏幕参数进行重新写入,当检测到上述屏幕参数没有发生变化后,则取消对驱动芯片的屏幕参数的重新写入,随后,终端设备根据驱动芯片中屏幕参数对显示屏的显示进行控制。Specifically, please refer to Figure 1. When the device terminal is turned on, it first detects the screen parameters of the driver chip related to the display screen of the terminal device. The screen parameters are rewritten. When it is detected that the above screen parameters have not changed, the rewriting of the screen parameters of the driver chip is canceled, and then the terminal device controls the display of the display screen according to the screen parameters in the driver chip.
其中,可以根据设备出厂时的设定屏幕参数与驱动芯片在开机时的实时屏幕参数进行比较,来检测驱动芯片中的屏幕参数是否发生了变化,其中,可以根据信息摘要算法(MD5, Message-Digest Algorithm)校验的方式对设定屏幕参数和实时屏幕参数进行比较。Among them, it is possible to compare the screen parameters set when the device leaves the factory with the real-time screen parameters of the driver chip when it is turned on to detect whether the screen parameters in the driver chip have changed. Message-Digest Algorithm) check method to compare the set screen parameters and real-time screen parameters.
其中,信息摘要算法(MD5, Message-Digest Algorithm)一种被广泛使用的密码散列函数,可以产生出一个128位(16字节)的散列值(hash value),用于确保信息传输完整一致,例如,客户往我们数据中心同步一个文件,该文件使用信息摘要算法(MD5, Message-Digest Algorithm)校验,那么客户在发送文件的同时会再发一个存有校验码的文件,我们拿到该文件后做信息摘要算法(MD5, Message-Digest Algorithm)运算,得到的计算结果与客户发送的校验码相比较,如果一致则认为客户发送的文件没有出错,否则认为文件出错需要重新发送。Among them, Message Digest Algorithm (MD5, Message-Digest Algorithm), a widely used cryptographic hash function, can generate a 128-bit (16-byte) hash value (hash value) to ensure the integrity of information transmission Consistent, for example, the customer synchronizes a file to our data center, the file uses the information summary algorithm (MD5, Message-Digest Algorithm) verification, then the customer will send a file with a verification code when sending the file, and we will do the message digest algorithm (MD5, Message-Digest Algorithm) operation, the calculated result is compared with the check code sent by the customer, if they are consistent, it is considered that the file sent by the customer has no error, otherwise it is considered that the file has an error and needs to be resent.
本申请实施例在设备开机时,在对设备的显示屏所对应的驱动芯片的屏幕参数写入之前,先对驱动芯片的屏幕参数是否发生变化进行检测,并根据检测结果确定是否需要对驱动芯片的屏幕参数进行重新写入,降低了驱动芯片的写入次数,提高驱动芯片的使用寿命。In the embodiment of the present application, when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result. The screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
以下分别进行详细说明。需说明的是,以下实施例的描述顺序不作为对实施例优先顺序的限定。Each will be described in detail below. It should be noted that the order of description of the following embodiments is not intended to limit the order of priority of the embodiments.
请参阅图2,图2为本申请实施例提供的显示控制方法的流程示意图。该显示控制方法的具体流程可以如下:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a display control method provided by an embodiment of the present application. The specific flow of the display control method may be as follows:
101、当检测到设备开机时,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,屏参文件中包含有设备开机时的实时屏幕参数。101. When it is detected that the device is powered on, read the screen parameter file of at least one driver chip in the display screen of the device in real time, and the screen parameter file includes real-time screen parameters when the device is powered on.
其中,屏幕参数由驱动芯片来输出并作用在显示屏上,控制显示屏的显示,其中,屏幕参数包括屏幕基础宽高、刷新率、亮度和分辨率等。Among them, the screen parameters are output by the driver chip and act on the display screen to control the display of the display screen. The screen parameters include the basic width and height of the screen, refresh rate, brightness and resolution, etc.
其中,屏参文件用于对屏幕参数进行存储,屏参文件可以是以扩展名为.txt的文件,屏参文件可以存储在驱动芯片中或者设备内存中,驱动芯片在加载屏参文件后,可控制显示屏根据屏参文件中的屏幕参数进行显示。Among them, the screen parameter file is used to store the screen parameters. The screen parameter file can be a file with an extension of .txt. The screen parameter file can be stored in the driver chip or in the device memory. After the driver chip loads the screen parameter file, The display screen can be controlled to display according to the screen parameters in the screen parameter file.
其中,驱动芯片包括微型电子器件(IC,Integrated Circuit)或者嵌入式多媒体卡(EMMC,Embedded Multi Media Card)。Among them, the driver chip includes microelectronic devices (IC, Integrated Circuit) or embedded multimedia card (EMMC, Embedded Multi Media Card).
其中,为保证屏参文件中屏幕参数的准确性,厂商会在设备开机时对设备中的屏幕参数进行重新写入,以保证每次开机后显示屏能够按照标准的、预先定义的屏幕参数进行显示,即设备显示异常后,大多数情况下可通过重启设备来调整或还原显示屏的显示样式;Among them, in order to ensure the accuracy of the screen parameters in the screen parameter file, the manufacturer will rewrite the screen parameters in the device when the device is turned on, so as to ensure that the display screen can follow the standard and pre-defined screen parameters after each boot. Display, that is, after the device displays abnormally, in most cases, the display style of the display can be adjusted or restored by restarting the device;
因此,在设备开机时,获取设备的屏幕参数可以准确的获取到设备关机之前屏幕显示的显示参数,而通过对这部分显示参数的校验,可确定这部分显示参数是否发生了变动,例如,这部分显示参数是否因为系统原因或者软件异常造成了显示参数的错乱。Therefore, when the device is turned on, obtaining the screen parameters of the device can accurately obtain the display parameters displayed on the screen before the device is turned off, and by verifying this part of the display parameters, it can be determined whether this part of the display parameters has changed, for example, This part shows whether the parameters are out of order due to system reasons or software abnormalities.
其中,屏参文件可根据屏参文件的加载路径进行读取,即,可选的,在一些实施例中,步骤“实时读取设备的显示屏中至少一个驱动芯片的屏参文件”,具体可以包括:Wherein, the screen parameter file can be read according to the loading path of the screen parameter file, that is, optionally, in some embodiments, the step "read the screen parameter file of at least one driver chip in the display screen of the device in real time", specifically Can include:
获取显示屏中至少一个驱动芯片的屏参路径,屏参路径为设备开机前最后一次配置驱动芯片的屏参文件的配置路径;Obtain the screen parameter path of at least one driver chip in the display screen, where the screen parameter path is the configuration path of the screen parameter file for configuring the driver chip last time before the device is powered on;
根据屏参路径分别读取驱动芯片的屏参文件。Read the screen parameter file of the driver chip according to the screen parameter path.
其中,屏参路径为驱动芯片加载屏参文件的路径,根据屏参路径可获取到驱动芯片的屏参文件,其中,该屏参路径的获取可根据预先存储的路径列表获取,根据屏参路径获取的屏参文件,可提高屏参文件获取的准确性。Wherein, the screen parameter path is the path for the driver chip to load the screen parameter file, and the screen parameter file of the driver chip can be obtained according to the screen parameter path, wherein, the acquisition of the screen parameter path can be obtained according to a pre-stored path list, and according to the screen parameter path The obtained screen parameter file can improve the accuracy of obtaining the screen parameter file.
其中,为保证屏幕参数的准确性,可以在设备中设置备份屏参文件,在驱动芯片的屏参文件遭到破坏后,可根据需要加载备份屏参文件,利用备份屏参文件中的屏幕参数对显示屏的显示进行控制,即,可选的,在一些实施例中,步骤“实时读取设备的显示屏中至少一个驱动芯片的屏参文件”,具体可以包括:Among them, in order to ensure the accuracy of the screen parameters, a backup screen parameter file can be set in the device. After the screen parameter file of the driver chip is destroyed, the backup screen parameter file can be loaded as needed, and the screen parameters in the backup screen parameter file can be used. Controlling the display of the display screen, that is, optionally, in some embodiments, the step of "reading the screen parameter file of at least one driver chip in the display screen of the device in real time" may specifically include:
获取显示屏中至少一个驱动芯片的备份屏参路径,备份屏参路径为设备出厂前最后一次备份驱动芯片的屏参文件的备份路径;Obtain the backup screen parameter path of at least one driver chip in the display screen, the backup screen parameter path is the backup path of the last backup screen parameter file of the driver chip before the device leaves the factory;
根据备份屏参路径分别读取至少一个驱动芯片的备份屏参文件。The backup screen parameter file of at least one driver chip is respectively read according to the backup screen parameter path.
其中,备份屏参文件可以是对设定屏参文件的备份,当驱动芯片实时加载的实时屏参文件出现异常后,可以自动加载备份屏参文件,利用备份屏参文件中的屏幕参数对显示屏的显示进行控制,因此,当备份屏参文件主导显示屏的显示时,在开机时需要对备份屏参文件中的屏幕参数进行检测,因此,本申请实施例中,根据备份屏参文件的备份屏参路径对备份屏参文件进行了获取,得到了备份屏参文件,方便对备份屏参文件中的备份屏幕数据进行校验,而备份屏参路径的获取也实现了对备份屏参文件的准确定位。Among them, the backup screen parameter file can be a backup of the set screen parameter file. When the real-time screen parameter file loaded by the driver chip in real time is abnormal, the backup screen parameter file can be automatically loaded, and the screen parameters in the backup screen parameter file can be used to control the display. Therefore, when the backup screen parameter file dominates the display of the display screen, it is necessary to detect the screen parameters in the backup screen parameter file when starting up. Therefore, in the embodiment of this application, according to the backup screen parameter file The backup screen parameter path obtains the backup screen parameter file and obtains the backup screen parameter file, which is convenient for verifying the backup screen data in the backup screen parameter file, and the acquisition of the backup screen parameter path also realizes the backup screen parameter file accurate positioning.
102、获取驱动芯片在出厂时的设定屏幕参数。102. Obtain the setting screen parameters of the driver chip when it leaves the factory.
其中,设定屏幕参数是厂商在出厂前,根据屏幕的尺寸、用户的需求或者市场的需求进行设置的,设定屏幕参数往往使显示屏的显示达到最佳效果,在设备出厂时,驱动芯片所能加载的屏参文件中的屏幕参数也应与设定屏幕参数保持同步。Among them, setting the screen parameters is set by the manufacturer according to the size of the screen, the needs of users or the needs of the market before leaving the factory. Setting the screen parameters often makes the display of the screen achieve the best effect. The screen parameters in the screen parameter files that can be loaded should also be synchronized with the setting screen parameters.
其中,设定屏幕参数的获取可根据厂商公布的数据获取,或者根据设备上粘贴的显示参数获取或者根据设备的说明书来获取。Wherein, the setting screen parameters can be obtained according to the data released by the manufacturer, or according to the display parameters pasted on the device, or according to the instruction manual of the device.
103、当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变。103. When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged.
其中,当驱动芯片的实时屏幕参数与设定屏幕参数相同时,则说明驱动芯片所加载的屏参文件中的屏幕参数未被修改过,针对这种情况,可保持屏参文件中实时屏幕参数不变,即不需要在本次开机时对屏幕参数进行重新写入,降低了驱动芯片的写入次数,提供驱动芯片的使用寿命。Among them, when the real-time screen parameters of the driver chip are the same as the set screen parameters, it means that the screen parameters in the screen parameter file loaded by the driver chip have not been modified. In this case, the real-time screen parameters in the screen parameter file can be kept No change, that is, there is no need to rewrite the screen parameters during this boot, which reduces the number of writes to the driver chip and improves the service life of the driver chip.
其中,可根据实时屏幕参数与设定屏幕参数的散列值对两个屏幕参数是否相同进行校验,即,可选的,在一些实施例中,步骤“当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变”之前,具体可以包括:Wherein, it is possible to verify whether the two screen parameters are the same according to the hash value of the real-time screen parameter and the set screen parameter, that is, optionally, in some embodiments, the step "when the real-time screen parameter of each driver chip When it is the same as the corresponding setting screen parameters, then keep the real-time screen parameters in the screen parameter file unchanged", the details can include:
获取设定屏幕参数所对应的校验码文件,得到设定屏幕参数的设定散列值;Obtain the verification code file corresponding to the setting screen parameters, and obtain the setting hash value of the setting screen parameters;
对实时屏幕参数进行散列运算,得到实时屏幕参数的实时散列值;performing a hash operation on the real-time screen parameters to obtain a real-time hash value of the real-time screen parameters;
根据设定散列值和实时散列值,确定设定屏幕参数与实时屏幕参数是否相同。According to the set hash value and the real-time hash value, it is determined whether the set screen parameter is the same as the real-time screen parameter.
其中,散列值比较的方式又称为信息摘要算法(MD5, Message-Digest Algorithm)校验,根据设定屏幕参数的设定散列值与实时屏幕参数的散列值的比较,可准确的校验出设定屏幕参数与实时屏幕参数是否相同。Among them, the hash value comparison method is also called message digest algorithm (MD5, Message-Digest Algorithm) check, according to the comparison of the set hash value of the set screen parameters and the hash value of the real-time screen parameters, it can be accurately Verify that the setting screen parameters are the same as the real-time screen parameters.
其中,为保证设定屏幕参数的准确性,厂商一般会在发送设定屏幕参数的同时发送一个针对设定屏幕参数的校验码文件,根据该校验码文件可获取到设定屏幕参数的设定散列值,在对实时屏幕参数进行校验时,可生成实时屏幕参数的实时散列值,利用设定散列值和实时散列值的比较,可提高校验设定屏幕参数与实时屏幕参数是否相同的效率,其中,设定散列值也可以根据设定屏幕参数直接散列化生成。Among them, in order to ensure the accuracy of the setting screen parameters, the manufacturer generally sends a check code file for the setting screen parameters at the same time as sending the setting screen parameters. According to the check code file, the setting screen parameters can be obtained. Set the hash value, when verifying the real-time screen parameters, the real-time hash value of the real-time screen parameters can be generated, and the comparison between the set hash value and the real-time hash value can improve the verification of the set screen parameters and Whether the real-time screen parameters have the same efficiency, wherein, the set hash value can also be directly hashed and generated according to the set screen parameters.
其中,当存在目标驱动芯片的实时屏幕参数与对应的设定屏幕参数不相同时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新。Wherein, when the real-time screen parameters of the target driver chip are different from the corresponding setting screen parameters, the screen parameter file of the target driver chip is updated according to the setting screen parameters.
其中,利用设定屏幕参数对实时屏幕参数的更新,使实时屏幕参数与设定屏幕参数能够保持同步,使显示屏能够按照出厂要求进行显示。Wherein, the real-time screen parameters are updated by setting screen parameters, so that the real-time screen parameters and the setting screen parameters can be kept in sync, so that the display screen can be displayed according to factory requirements.
其中,在开机时,且检测到设定屏幕参数与实时屏幕参数不同时,对实时屏幕参数的更新可使设备开机后恢复显示屏的正常显示,例如,当设备的显示屏显示异常时,可采用重启设备的方式,实现设备显示屏样式的重新且正确的加载。Among them, when the device is turned on and it is detected that the set screen parameters are different from the real-time screen parameters, updating the real-time screen parameters can restore the normal display of the display screen after the device is powered on. For example, when the display screen of the device displays abnormally, you can By restarting the device, the display screen style of the device can be reloaded correctly.
其中,对驱动芯片的屏幕参数进行更新时,可根据驱动芯片的数量选择对应的方式进行更新,即,可选的,在一些实施例中,步骤“根据设定屏幕参数对目标驱动芯片的屏参文件进行更新”,具体可以包括:Wherein, when updating the screen parameters of the driver chip, the corresponding method can be selected according to the number of the driver chips to update, that is, optionally, in some embodiments, the step "update the screen parameters of the target driver chip according to the set screen parameters reference file to be updated”, which may include:
获取目标驱动芯片的目标芯片数量,目标芯片数量至少为一个;Obtain the number of target chips of the target driver chip, and the number of target chips is at least one;
根据目标芯片数量确定目标驱动芯片的屏参文件更新方式;Determine the screen parameter file update method of the target driver chip according to the number of target chips;
根据屏参文件更新方式和设定屏幕参数对目标驱动芯片的屏参文件进行更新。Update the screen parameter file of the target driver chip according to the screen parameter file update method and set screen parameters.
其中,根据驱动芯片的数量,选择不同的更新方式对驱动芯片进行更新,可提高驱动芯片的更新效率。Wherein, according to the quantity of the driving chips, different updating methods are selected to update the driving chips, which can improve the updating efficiency of the driving chips.
例如,当驱动芯片为一个时,可直接根据设定屏幕参数对实时屏幕参数进行更新,即,可选的,在一些实施例中,步骤“根据目标芯片数量确定目标驱动芯片的屏参文件更新方式”,具体可以包括:For example, when there is only one driver chip, the real-time screen parameters can be updated directly according to the set screen parameters. ways", which may specifically include:
直接根据目标驱动芯片的设定屏幕参数对目标驱动芯片的屏参文件进行更新。The screen parameter file of the target driver chip is updated directly according to the setting screen parameters of the target driver chip.
其中,单个驱动芯片不存在与其他驱动芯片的交互,设备根据单个驱动芯片即可完成对显示屏的显示控制,因此,针对单个驱动芯片的屏幕参数可直接根据设定屏幕参数进行更新,更新效率较高。Among them, there is no interaction between a single driver chip and other driver chips, and the device can complete the display control of the display screen according to a single driver chip. Therefore, the screen parameters for a single driver chip can be directly updated according to the set screen parameters, and the update efficiency higher.
例如,请参阅图3,4K高清电视是采用单驱动芯片的设计,针对4K高清电视的驱动芯片可直接根据设定屏幕参数进行更新,其中,具体更新流程包括:For example, please refer to Figure 3. 4K HDTV is designed with a single driver chip. The driver chip for 4K HDTV can be updated directly according to the set screen parameters. The specific update process includes:
110、加载驱动芯片的屏参路径;110. Load the screen parameter path of the driver chip;
111、检测4K屏参是否需要同步,即校验实时屏幕参数与设定屏幕参数是否一致,当实时屏幕参数设定屏幕参数一致时,则不需要对实时屏幕参数进行更新,当实时屏幕参数与设定屏幕参数不一致时,需要根据设定屏幕参数对实时屏幕参数进行更新。111. Detect whether the 4K screen parameters need to be synchronized, that is, check whether the real-time screen parameters are consistent with the set screen parameters. When the real-time screen parameters are consistent with the set screen parameters, there is no need to update the real-time screen parameters. When the setting screen parameters are inconsistent, the real-time screen parameters need to be updated according to the setting screen parameters.
另外,当驱动芯片为两个时,两个驱动芯片之间会存在交互,由两个驱动芯片共同作用,协同控制显示屏的显示,因此,针对两个驱动芯片的情况,可采用现将其中一个驱动芯片进行屏幕参数更新,再利用更新后的驱动芯片,对另外一个驱动芯片进行屏幕参数更新,即,可选的,在一些实施例中,步骤“根据目标芯片数量确定目标驱动芯片的屏参文件更新方式”,具体可以包括:In addition, when there are two driver chips, there will be interaction between the two driver chips, and the two driver chips work together to control the display of the display screen. Therefore, for the situation of two driver chips, one of the One driver chip updates the screen parameters, and then uses the updated driver chip to update the screen parameters of the other driver chip, that is, optionally, in some embodiments, the step "determines the screen parameters of the target driver chip according to the number of target chips." "Refer to file update method", which may include:
从两个目标驱动芯片中选取第一目标驱动芯片;Selecting the first target driver chip from the two target driver chips;
根据第一目标驱动芯片的设定屏幕参数对第一目标驱动芯片的第一屏参文件进行更新;Update the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
当第一屏参文件更新成功后,根据更新后第一屏参文件和第二目标芯片的设定屏幕参数,对第二目标驱动芯片的第二屏参文件进行更新。After the first screen parameter file is updated successfully, the second screen parameter file of the second target driver chip is updated according to the updated first screen parameter file and the setting screen parameters of the second target chip.
其中,针对两个驱动芯片的显示控制,两个驱动芯片之间存在数据传输和交互的过程,因此可采用先对其中一个驱动芯片进行更新,然后,利用更新后的驱动芯片对另一个未更新的驱动芯片进行更新,可提高驱动芯片的更新效率。Among them, for the display control of the two driver chips, there is a process of data transmission and interaction between the two driver chips, so it is possible to update one of the driver chips first, and then use the updated driver chip to update the other non-updated driver chip. The driver chip can be updated, which can improve the update efficiency of the driver chip.
例如,请参阅图4,8K超高清电视是在4K驱动芯片的基础上挂载8K驱动芯片,完成对显示屏的8K显示,因此,8K驱动芯片所驱动的屏幕参数是接收自4K驱动芯片传输的屏幕参数,因此,在对8K驱动芯片的屏幕参数进行更新时,可以先对4K驱动芯片进行更新,然后,利用更新后的4K驱动芯片,对8K驱动芯片进行更新,提高驱动芯片屏幕参数更新的效率和准确性,其中,8K驱动芯片屏参更新的具体流程包括:For example, please refer to Figure 4. An 8K UHD TV mounts an 8K driver chip on the basis of a 4K driver chip to complete the 8K display on the display screen. Therefore, the screen parameters driven by the 8K driver chip are transmitted from the 4K driver chip. Therefore, when updating the screen parameters of the 8K driver chip, the 4K driver chip can be updated first, and then the 8K driver chip can be updated by using the updated 4K driver chip to improve the screen parameter update of the driver chip. The specific process of updating the screen parameters of the 8K driver chip includes:
121、先校验4K驱动芯片的屏参数据是否需要更新,当4K驱动芯片的实时屏参数据与设定屏参数据一致时,则不需要对4K驱动芯片的屏参数据进行更新,反之需要对4K驱动芯片的屏参数据进行更新;121. First check whether the screen parameter data of the 4K driver chip needs to be updated. When the real-time screen parameter data of the 4K driver chip is consistent with the set screen parameter data, there is no need to update the screen parameter data of the 4K driver chip. Otherwise, it needs to be updated. Update the screen parameter data of the 4K driver chip;
122、在4K屏参数据更新后,检测8K驱动芯片的屏参数据是否需要更新,当8K驱动芯片的屏参数据需要更新时(即8K驱动芯片的实时屏参数据与对应的设定屏参数据不一致时),从4K驱动芯片上获取8K驱动芯片的设定屏参数据,对8K驱动芯片的实时屏参数据进行更新,反之,则8K驱动芯片的屏参数据不需要更新。122. After the 4K screen parameter data is updated, check whether the screen parameter data of the 8K driver chip needs to be updated. When the screen parameter data of the 8K driver chip needs to be updated (that is, the real-time screen parameter data of the 8K driver chip and the corresponding setting screen parameter When the data is inconsistent), obtain the setting screen parameter data of the 8K driver chip from the 4K driver chip, and update the real-time screen parameter data of the 8K driver chip. Otherwise, the screen parameter data of the 8K driver chip does not need to be updated.
其中,设定屏幕参数包括设定参数名称和设定参数值,实时屏幕参数包括实时参数名称和实时参数值,因此,可根据设定屏幕参数与实时屏幕参数的参数名称,对实时屏幕参数的参数名称所对应的参数值进行更新,即,可选的,在一些实施例中,步骤“根据设定屏幕参数对目标驱动芯片的屏参文件进行更新”,具体可以包括:Among them, the setting screen parameters include setting parameter names and setting parameter values, and the real-time screen parameters include real-time parameter names and real-time parameter values. Therefore, according to the parameter names of the setting screen parameters and real-time screen parameters, The parameter value corresponding to the parameter name is updated, that is, optional, in some embodiments, the step "update the screen parameter file of the target driver chip according to the set screen parameters", specifically may include:
获取加载目标驱动芯片中的屏参文件的屏参路径;Obtain the screen parameter path of loading the screen parameter file in the target driver chip;
根据屏参路径、设定参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为设定参数值。According to the screen parameter path, setting parameter name and real-time parameter name, replace the real-time parameter value in the target driver chip with the setting parameter value.
其中,根据参数名称对参数名称所对应的参数值进行更新,可提高参数更新的准确性,利用屏参路径可实现对待更新的屏幕参数的准确定位。Among them, updating the parameter value corresponding to the parameter name according to the parameter name can improve the accuracy of parameter updating, and the accurate positioning of the screen parameter to be updated can be realized by using the screen parameter path.
其中,对屏幕参数的更新可采用对参数名称所对应的参数值进行替换实现,即,可选的,在一些实施例中,步骤“根据屏参路径、设定参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为设定参数值”,具体可以包括:Wherein, updating the screen parameters can be implemented by replacing the parameter values corresponding to the parameter names, that is, optionally, in some embodiments, the step "according to the screen parameter path, the setting parameter name and the real-time parameter name, set The real-time parameter value in the target driver chip is replaced with the set parameter value", which can specifically include:
加载屏参路径,得到目标驱动芯片的屏参文件;Load the screen parameter path to get the screen parameter file of the target driver chip;
根据设定参数名称和实时参数名称,将屏参文件中的实时参数值替换为设定参数值。According to the setting parameter name and real-time parameter name, replace the real-time parameter value in the screen parameter file with the setting parameter value.
其中,根据屏参文件的屏参路径,加载屏参文件,对屏参文件中参数名称所对应的参数值进行替换即可实现对实时屏幕参数的更新,方便快捷。Among them, according to the screen parameter path of the screen parameter file, the screen parameter file is loaded, and the parameter value corresponding to the parameter name in the screen parameter file is replaced to realize the update of the real-time screen parameters, which is convenient and quick.
其中,为保证显示屏参数的正常显示,厂商会在设备中备份一份屏参文件,当显示屏显示异常时,可以由驱动芯片加载备份屏参文件,利用备份屏参文件对显示屏的显示进行控制,备份屏参文件中存储有备份屏幕参数,其中,备份屏参文件是对设定屏参文件的备份,因此,设定屏幕参数可以包括备份屏幕参数,即,可选的,在一些实施例中,步骤“根据设定屏幕参数对目标驱动芯片的屏参文件进行更新”,具体可以包括:Among them, in order to ensure the normal display of the display parameters, the manufacturer will back up a screen parameter file in the device. When the display is abnormal, the backup screen parameter file can be loaded by the driver chip, and the backup screen parameter file can be used to control the display of the display screen. For control, backup screen parameters are stored in the backup screen parameter file, wherein the backup screen parameter file is a backup of the setting screen parameter file, therefore, the setting screen parameter can include the backup screen parameter, that is, optional, in some In the embodiment, the step "update the screen parameter file of the target driver chip according to the set screen parameters" may specifically include:
获取加载目标驱动芯片的屏参文件的屏参路径以及获取加载备份屏参文件的备份屏参路径;Obtain the screen parameter path of the screen parameter file for loading the target driver chip and obtain the backup screen parameter path for loading the backup screen parameter file;
将屏参路径替换为备份屏参路径。Replace the screen parameter path with the backup screen parameter path.
其中,根据屏参路径的替换,使驱动芯片直接加载备份屏参文件中的屏幕参数,其中,备份屏参文件中的屏幕参数也是对设定屏幕参数的备份,因此,在驱动芯片加载备份屏参文件后,实质上驱动芯片直接加载了设定屏幕参数,具备使显示屏正常显示的功能,达到了对显示屏显示参数更新的功能。Among them, according to the replacement of the screen parameter path, the driver chip directly loads the screen parameters in the backup screen parameter file. After uploading the file, the driver chip actually directly loads the setting screen parameters, which has the function of making the display screen display normally, and achieves the function of updating the display parameters of the display screen.
另外,可以直接从备份屏参文件中获取屏幕参数,对相应的屏幕参数进行更新,其中,备份屏幕参数包括备份参数名称和备份参数值,实时屏幕参数包括实时参数名称和实时参数值,即,可选的,在一些实施例中,步骤“根据设定屏幕参数对目标驱动芯片的屏参文件进行更新”,具体可以包括:In addition, the screen parameters can be obtained directly from the backup screen parameter file, and the corresponding screen parameters can be updated, wherein, the backup screen parameters include backup parameter names and backup parameter values, and the real-time screen parameters include real-time parameter names and real-time parameter values, that is, Optionally, in some embodiments, the step "update the screen parameter file of the target driver chip according to the set screen parameters" may specifically include:
获取加载目标驱动芯片中的屏参文件的屏参路径;Obtain the screen parameter path of loading the screen parameter file in the target driver chip;
根据屏参路径、备份参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为备份参数值。According to the screen parameter path, the backup parameter name and the real-time parameter name, replace the real-time parameter value in the target driver chip with the backup parameter value.
其中,备份屏参文件的屏幕参数是对设定屏幕参数的备份,因此,也可以直接根据备份屏参文件对实时屏幕参数进行更新,通过相应的参数名称的确定,对相应参数名称所对应的参数值的替换即可实现对驱动芯片所加载的实时屏幕参数进行更新。Among them, the screen parameters of the backup screen parameter file are the backup of the set screen parameters, therefore, the real-time screen parameters can also be updated directly according to the backup screen parameter file. The replacement of the parameter value can realize the updating of the real-time screen parameters loaded by the driver chip.
其中,在设备中首次录入屏幕参数时,驱动芯片所加载的实时屏幕参数时不在的,即实时屏幕参数是空的,此时,可以创建新的屏参路径,根据屏参路径和设定屏幕参数来创建屏参文件,使显示屏能够正常显示,即,可选的,在一些实施例中,步骤“根据设定屏幕参数对目标驱动芯片的屏参文件进行更新”,具体可以包括:Among them, when the screen parameters are entered in the device for the first time, the real-time screen parameters loaded by the driver chip are not there, that is, the real-time screen parameters are empty. At this time, a new screen parameter path can be created. According to the screen parameter path and the setting screen parameters to create a screen parameter file so that the display screen can be displayed normally, that is, optional, in some embodiments, the step "update the screen parameter file of the target driver chip according to the set screen parameters" may specifically include:
创建目标驱动芯片所加载的新建屏参路径;Create a new screen parameter path loaded by the target driver chip;
根据新建屏参路径和设定屏幕参数,创建新建屏参文件。Create a new screen parameter file according to the new screen parameter path and set screen parameters.
其中,根据新建屏参路径可实现对新建屏参文件的加载,在驱动芯片加载新建屏参文件中的屏幕参数后,可控制显示屏的显示。Wherein, according to the new screen parameter path, the loading of the newly created screen parameter file can be realized, and the display of the display screen can be controlled after the driver chip loads the screen parameters in the newly created screen parameter file.
其中,请参阅图5,对屏参路径和屏参文件的新建也适用于对屏幕参数的配置,例如:Among them, please refer to Figure 5, the creation of the screen parameter path and screen parameter file is also applicable to the configuration of the screen parameters, for example:
131、先检测屏参路径文件,驱动芯片需要加载多个屏参文件对显示屏的显示进行控制,而在针对屏幕参数配置过程中,部分屏参文件因系统或者软件的影响而丢失;131. First detect the screen parameter path file, the driver chip needs to load multiple screen parameter files to control the display of the display screen, and in the process of configuring the screen parameters, some screen parameter files are lost due to the influence of the system or software;
132、此时需要创建新的屏参文件及对应的屏参路径,或者,部分设备的屏参文件需要重新配置,例如,对于出口产品,需要加入国家、区域、语言等屏幕参数,针对这种情况,需要先检测现有的屏参文件中是否有相应的屏幕参数,如果没有这些屏幕参数(没有相应的屏幕参数则意味着没有相应的屏参路径和屏参文件),需要新建屏参文件及相应的屏参路径,然后对相应的屏幕参数进行配置和加载,而配置和加载的过程则类似上述对屏参文件的更新,例如:132. At this time, it is necessary to create a new screen parameter file and the corresponding screen parameter path, or, the screen parameter file of some devices needs to be reconfigured. For example, for export products, it is necessary to add screen parameters such as country, region, and language. For this In this case, it is necessary to check whether there are corresponding screen parameters in the existing screen parameter file. If there is no such screen parameter (the absence of corresponding screen parameter means that there is no corresponding screen parameter path and screen parameter file), a new screen parameter file needs to be created. and the corresponding screen parameter path, and then configure and load the corresponding screen parameters, and the configuration and loading process is similar to the update of the screen parameter file above, for example:
133、向驱动芯片中写入屏参路径;133. Write the screen parameter path into the driver chip;
134、加载屏参路径;134. Load the screen parameter path;
135、检测屏参是否需要同步,根据检测结果对屏参数据进行同步,其中,可以采用信息摘要算法(MD5, Message-Digest Algorithm)校验的方法对实时屏幕参数与设定屏幕参数是否一直进行校验,当实时屏幕参数与设定屏幕参数一致时,则不需要对实时屏幕参数进行更新,当实时屏幕参数与设定屏幕参数不一致时,根据设定屏幕参数与实时屏幕参数进行更新。135. Detect whether the screen parameters need to be synchronized, and synchronize the screen parameter data according to the detection results. Among them, the information summary algorithm (MD5, Message-Digest Algorithm) verification method checks whether the real-time screen parameters and the set screen parameters are always verified. When the real-time screen parameters are consistent with the set screen parameters, there is no need to update the real-time screen parameters. When the real-time screen parameters If it is inconsistent with the setting screen parameters, it will be updated according to the setting screen parameters and real-time screen parameters.
其中,在本申请实施例中,对屏幕参数的更新也可以采用VBE驱动的方式,将数据更新过程转换为脚本文件,执行脚本文件来实现对屏幕参数的更新。Wherein, in the embodiment of the present application, the update of the screen parameters may also be driven by VBE, the data update process is converted into a script file, and the script file is executed to realize the update of the screen parameters.
在本申请实施例中,在对屏参文件进行更新过程中,还可以根据调试模式(debug模式)对屏参文件中的屏幕参数进行更新,读取调试模式的标识位,将标识位设置在屏参文件中,利用VBE驱动将标识位写入对应的目录,如,bin目录。In the embodiment of this application, in the process of updating the screen parameter file, the screen parameters in the screen parameter file can also be updated according to the debug mode (debug mode), read the flag of the debug mode, and set the flag to In the screen parameter file, use the VBE driver to write the identification bit into the corresponding directory, such as the bin directory.
104、根据屏参文件控制显示屏进行显示。104. Control the display screen to display according to the screen parameter file.
其中,驱动芯片加载屏参文件中,将屏参文件中的屏幕参数输出到显示屏上,控制显示屏的显示,例如,根据屏参文件中的屏幕参数,调整显示屏的屏幕基础宽高、刷新率、亮度和分辨率等。Among them, the driver chip is loaded into the screen parameter file, and the screen parameters in the screen parameter file are output to the display screen to control the display of the display screen. For example, according to the screen parameters in the screen parameter file, adjust the screen base width, height, Refresh rate, brightness and resolution, etc.
其中,以屏参文件的形式存储屏幕参数,方便对屏参文件中屏幕参数的更新,方便对显示屏参数的调整。Wherein, the screen parameters are stored in the form of a screen parameter file, which facilitates the updating of the screen parameters in the screen parameter file and the adjustment of the display screen parameters.
本申请实施例在设备开机时,在对设备的显示屏所对应的驱动芯片的屏幕参数写入之前,先对驱动芯片的屏幕参数是否发生变化进行检测,并根据检测结果确定是否需要对驱动芯片的屏幕参数进行重新写入,降低了驱动芯片的写入次数,提高驱动芯片的使用寿命。In the embodiment of the present application, when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result. The screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
为便于更好的实施本申请的显示控制方法,本申请还提供一种基于上述显示控制方法的显示控制装置。其中名词的含义与上述显示控制方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the display control method of the present application, the present application further provides a display control device based on the above display control method. The meanings of the nouns are the same as those in the above display control method, and for specific implementation details, please refer to the description in the method embodiments.
请参阅图6,图6为本申请提供的显示控制装置的结构示意图,其中该显示控制装置可以包括读取模块201、获取模块202、更新模块203和显示模块204,具体可以如下:Please refer to FIG. 6. FIG. 6 is a schematic structural diagram of a display control device provided by the present application, wherein the display control device may include a reading module 201, an acquisition module 202, an update module 203 and a display module 204, specifically as follows:
读取模块201,用于当检测到设备开机时,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,屏参文件中包含有设备开机时的实时屏幕参数;。The reading module 201 is used to read the screen parameter file of at least one driver chip in the display screen of the device in real time when it is detected that the device is powered on, and the screen parameter file contains real-time screen parameters when the device is powered on;
其中,为保证屏参文件中屏幕参数的准确性,厂商会在设备开机时对设备中的屏幕参数进行重新写入,以保证每次开机后显示屏能够按照标准的、预先定义的屏幕参数进行显示,即设备显示异常后,大多数情况下可通过重启设备来调整或还原显示屏的显示样式;Among them, in order to ensure the accuracy of the screen parameters in the screen parameter file, the manufacturer will rewrite the screen parameters in the device when the device is turned on, so as to ensure that the display screen can follow the standard and pre-defined screen parameters after each boot. Display, that is, after the device displays abnormally, in most cases, the display style of the display can be adjusted or restored by restarting the device;
因此,读取模块201在设备开机时,获取设备的屏幕参数可以准确的获取到设备关机之前屏幕显示的显示参数,而通过对这部分显示参数的校验,可确定这部分显示参数是否发生了变动,例如,这部分显示参数是否因为系统原因或者软件异常造成了显示参数的错乱。Therefore, when the device is turned on, the reading module 201 acquires the screen parameters of the device to accurately obtain the display parameters displayed on the screen before the device is turned off, and by checking this part of the display parameters, it can be determined whether this part of the display parameters has occurred. Changes, for example, whether the display parameters in this part are disordered due to system reasons or software abnormalities.
获取模块202,用于获取驱动芯片在出厂时的设定屏幕参数。The obtaining module 202 is used to obtain the setting screen parameters of the driver chip when it leaves the factory.
其中,设定屏幕参数是厂商在出厂前,根据屏幕的尺寸、用户的需求或者市场的需求进行设置的,设定屏幕参数往往使显示屏的显示达到最佳效果,在设备出厂时,驱动芯片所能加载的屏参文件中的屏幕参数也应与设定屏幕参数保持同步。Among them, setting the screen parameters is set by the manufacturer according to the size of the screen, the needs of users or the needs of the market before leaving the factory. Setting the screen parameters often makes the display of the screen achieve the best effect. The screen parameters in the screen parameter files that can be loaded should also be synchronized with the setting screen parameters.
其中,获取模块202可根据厂商公布的数据获取设定屏幕参数,或者根据设备上粘贴的显示参数获取或者根据设备的说明书来获取。Wherein, the acquiring module 202 can acquire setting screen parameters according to the data released by the manufacturer, or acquire according to the display parameters pasted on the device or according to the manual of the device.
更新模块203,用于当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变;The update module 203 is used to keep the real-time screen parameters in the screen parameter file unchanged when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters;
其中,在更新模块203中,当驱动芯片的实时屏幕参数与设定屏幕参数相同时,则说明驱动芯片所加载的屏参文件中的屏幕参数未被修改过,针对这种情况,可保持屏参文件中实时屏幕参数不变,即不需要在本次开机时对屏幕参数进行重新写入,降低了驱动芯片的写入次数,提供驱动芯片的使用寿命。Wherein, in the update module 203, when the real-time screen parameters of the driver chip are the same as the set screen parameters, it means that the screen parameters in the screen parameter file loaded by the driver chip have not been modified. The real-time screen parameters in the reference file remain unchanged, that is, there is no need to rewrite the screen parameters during this boot, which reduces the number of writes to the driver chip and improves the service life of the driver chip.
其中,更新模块203,还用于当存在目标驱动芯片的实时屏幕参数与对应的设定屏幕参数不相同时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新。Wherein, the update module 203 is also used for updating the screen parameter file of the target driver chip according to the set screen parameters when the real-time screen parameters of the target driver chip are different from the corresponding setting screen parameters.
其中,利用设定屏幕参数对实时屏幕参数的更新,使实时屏幕参数与设定屏幕参数能够保持同步,使显示屏能够按照出厂要求进行显示。Wherein, the real-time screen parameters are updated by setting screen parameters, so that the real-time screen parameters and the setting screen parameters can be kept in sync, so that the display screen can be displayed according to factory requirements.
其中,在开机时,且检测到设定屏幕参数与实时屏幕参数不同时,对实时屏幕参数的更新可使设备开机后恢复显示屏的正常显示,例如,当设备的显示屏显示异常时,可采用重启设备的方式,实现设备显示屏样式的重新且正确的加载。Among them, when the device is turned on and it is detected that the set screen parameters are different from the real-time screen parameters, updating the real-time screen parameters can restore the normal display of the display screen after the device is powered on. For example, when the display screen of the device displays abnormally, you can By restarting the device, the display screen style of the device can be reloaded correctly.
显示模块204,用于根据屏参文件控制显示屏进行显示。The display module 204 is configured to control the display screen to display according to the screen parameter file.
其中,驱动芯片加载屏参文件中,将屏参文件中的屏幕参数输出到显示屏上,控制显示屏的显示,例如,根据屏参文件中的屏幕参数,调整显示屏的屏幕基础宽高、刷新率、亮度和分辨率等。Among them, the driver chip is loaded into the screen parameter file, and the screen parameters in the screen parameter file are output to the display screen to control the display of the display screen. For example, according to the screen parameters in the screen parameter file, adjust the screen base width, height, Refresh rate, brightness and resolution, etc.
其中,以屏参文件的形式存储屏幕参数,方便对屏参文件中屏幕参数的更新,方便显示屏参数的调整。Wherein, the screen parameters are stored in the form of a screen parameter file, which facilitates the updating of the screen parameters in the screen parameter file and the adjustment of the display screen parameters.
可选的,在本申请的一些实施例中,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, the screen parameter file of the target driver chip is updated according to setting screen parameters, including:
第一获取单元,用于获取目标驱动芯片的目标芯片数量,目标芯片数量至少为一个;The first acquisition unit is used to acquire the number of target chips of the target driver chip, and the number of target chips is at least one;
第一确定单元,用于根据目标芯片数量确定目标驱动芯片的屏参文件更新方式;The first determination unit is used to determine the screen parameter file update method of the target driver chip according to the number of target chips;
第一更新单元,用于根据屏参文件更新方式和设定屏幕参数对目标驱动芯片的屏参文件进行更新。The first updating unit is used to update the screen parameter file of the target driver chip according to the screen parameter file updating method and setting screen parameters.
其中,根据驱动芯片的数量,选择不同的更新方式对驱动芯片进行更新,可提高驱动芯片的更新效率。Wherein, according to the quantity of the driving chips, different updating methods are selected to update the driving chips, which can improve the updating efficiency of the driving chips.
可选的,在本申请的一些实施例中,目标驱动芯片数量包括一个,第一确定单元包括:Optionally, in some embodiments of the present application, the number of target driver chips includes one, and the first determining unit includes:
第一更新子单元,用于直接根据目标驱动芯片的设定屏幕参数对目标驱动芯片的屏参文件进行更新。The first update subunit is used to directly update the screen parameter file of the target driver chip according to the setting screen parameters of the target driver chip.
其中,单个驱动芯片不存在与其他驱动芯片的交互,设备根据单个驱动芯片即可完成对显示屏的显示控制,因此,针对单个驱动芯片的屏幕参数可直接根据设定屏幕参数进行更新,更新效率较高。Among them, there is no interaction between a single driver chip and other driver chips, and the device can complete the display control of the display screen according to a single driver chip. Therefore, the screen parameters for a single driver chip can be directly updated according to the set screen parameters, and the update efficiency higher.
可选的,在本申请的一些实施例中,目标驱动芯片数量包括两个,第一确定单元包括:Optionally, in some embodiments of the present application, the number of target driver chips includes two, and the first determining unit includes:
第一选取子单元,用于从两个目标驱动芯片中选取第一目标驱动芯片;The first selection subunit is used to select the first target driver chip from the two target driver chips;
第二更新子单元,用于根据第一目标驱动芯片的设定屏幕参数对第一目标驱动芯片的第一屏参文件进行更新;The second update subunit is used to update the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
第三更新子单元,用于当第一屏参文件更新成功后,根据更新后第一屏参文件和第二目标芯片的设定屏幕参数,对第二目标驱动芯片的第二屏参文件进行更新。The third update subunit is used to perform the second screen parameter file of the second target driver chip according to the set screen parameters of the first screen parameter file and the second target chip after the update after the first screen parameter file is successfully updated. renew.
其中,针对两个驱动芯片的显示控制,两个驱动芯片之间存在数据传输和交互的过程,因此可采用先对其中一个驱动芯片进行更新,然后,利用更新后的驱动芯片对另一个未更新的驱动芯片进行更新,可提高驱动芯片的更新效率。Among them, for the display control of the two driver chips, there is a process of data transmission and interaction between the two driver chips, so it is possible to update one of the driver chips first, and then use the updated driver chip to update the other non-updated driver chip. The driver chip can be updated, which can improve the update efficiency of the driver chip.
可选的,在本申请的一些实施例中,设定屏幕参数包括设定参数名称和设定参数值,实时屏幕参数包括实时参数名称和实时参数值,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, the setting screen parameters include setting parameter names and setting parameter values, and the real-time screen parameters include real-time parameter names and real-time parameter values. Screen parameter files are updated, including:
第二获取单元,用于获取加载目标驱动芯片中的屏参文件的屏参路径;The second acquiring unit is used to acquire the screen parameter path of loading the screen parameter file in the target driver chip;
第二更新单元,用于根据屏参路径、设定参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为设定参数值。The second update unit is used to replace the real-time parameter value in the target driver chip with the set parameter value according to the screen parameter path, the set parameter name and the real-time parameter name.
其中,根据参数名称对参数名称所对应的参数值进行更新,可提高参数更新的准确性,利用屏参路径可实现对待更新的屏幕参数的准确定位。Among them, updating the parameter value corresponding to the parameter name according to the parameter name can improve the accuracy of parameter updating, and the accurate positioning of the screen parameter to be updated can be realized by using the screen parameter path.
可选的,在本申请的一些实施例中,第二更新单元包括:Optionally, in some embodiments of the present application, the second updating unit includes:
加载子单元,用于加载屏参路径,得到目标驱动芯片的屏参文件;The loading subunit is used to load the screen parameter path to obtain the screen parameter file of the target driver chip;
替换子单元,用于根据设定参数名称和实时参数名称,将屏参文件中的实时参数值替换为设定参数值。The replacement subunit is used to replace the real-time parameter value in the screen parameter file with the set parameter value according to the set parameter name and the real-time parameter name.
其中,根据屏参文件的屏参路径,加载屏参文件,对屏参文件中参数名称所对应的参数值进行替换即可实现对实时屏幕参数的更新,方便快捷。Among them, according to the screen parameter path of the screen parameter file, the screen parameter file is loaded, and the parameter value corresponding to the parameter name in the screen parameter file is replaced to realize the update of the real-time screen parameters, which is convenient and quick.
可选的,在本申请的一些实施例中,设备中存储有备份屏参文件,备份屏参文件中存储有备份屏幕参数,设定屏幕参数包括备份屏幕参数,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, a backup screen parameter file is stored in the device, and backup screen parameters are stored in the backup screen parameter file, and the setting screen parameters include the backup screen parameters, and the target drive The screen parameter file of the chip is updated, including:
第三获取单元,用于获取加载目标驱动芯片的屏参文件的屏参路径以及获取加载备份屏参文件的备份屏参路径;The third obtaining unit is used to obtain the screen parameter path of the screen parameter file for loading the target driver chip and the backup screen parameter path for loading the backup screen parameter file;
第三更新单元,用于将屏参路径替换为备份屏参路径。The third updating unit is used to replace the screen parameter path with the backup screen parameter path.
其中,根据屏参路径的替换,使驱动芯片直接加载备份屏参文件中的屏幕参数,其中,备份屏参文件中的屏幕参数也是对设定屏幕参数的备份,因此,在驱动芯片加载备份屏参文件后,实质上驱动芯片直接加载了设定屏幕参数,具备使显示屏正常显示的功能,达到了对显示屏显示参数更新的功能。Among them, according to the replacement of the screen parameter path, the driver chip directly loads the screen parameters in the backup screen parameter file. After uploading the file, the driver chip actually directly loads the setting screen parameters, which has the function of making the display screen display normally, and achieves the function of updating the display parameters of the display screen.
可选的,在本申请的一些实施例中,设备中存储有备份屏参文件,备份屏参文件中存储有备份屏幕参数,设定屏幕参数包括备份屏幕参数,备份屏幕参数包括备份参数名称和备份参数值,实时屏幕参数包括实时参数名称和实时参数值,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,包括:Optionally, in some embodiments of the present application, a backup screen parameter file is stored in the device, and a backup screen parameter is stored in the backup screen parameter file, and the setting screen parameter includes a backup screen parameter, and the backup screen parameter includes a backup parameter name and Backup parameter values, real-time screen parameters include real-time parameter names and real-time parameter values, update the screen parameter file of the target driver chip according to the set screen parameters, including:
第四获取单元,用于获取加载目标驱动芯片中的屏参文件的屏参路径;The fourth obtaining unit is used to obtain the screen parameter path of the screen parameter file loaded in the target driver chip;
第四更新单元,用于根据备份参数名称和实时参数名称,将目标驱动芯片中的实时参数值替换为备份参数值。The fourth update unit is used to replace the real-time parameter value in the target driver chip with the backup parameter value according to the backup parameter name and the real-time parameter name.
其中,备份屏参文件的屏幕参数是对设定屏幕参数的备份,因此,也可以直接根据备份屏参文件对实时屏幕参数进行更新,通过相应的参数名称的确定,对相应参数名称所对应的参数值的替换即可实现对驱动芯片所加载的实时屏幕参数进行更新。Among them, the screen parameters of the backup screen parameter file are the backup of the set screen parameters, therefore, the real-time screen parameters can also be updated directly according to the backup screen parameter file. The replacement of the parameter value can realize the updating of the real-time screen parameters loaded by the driver chip.
可选的,在本申请的一些实施例中,当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变之前,还包括校验模块,校验模块具体用于:Optionally, in some embodiments of the present application, when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, before keeping the real-time screen parameters in the screen parameter file unchanged, a check is also included. module, the verification module is specifically used for:
用于针对每个驱动芯片,获取设定屏幕参数所对应的校验码文件,得到设定屏幕参数的设定散列值;It is used to obtain the verification code file corresponding to the setting screen parameters for each driver chip, and obtain the setting hash value of the setting screen parameters;
用于对实时屏幕参数进行散列运算,得到实时屏幕参数的实时散列值;It is used to perform hash operation on the real-time screen parameters to obtain the real-time hash value of the real-time screen parameters;
用于根据设定散列值和实时散列值,确定设定屏幕参数与实时屏幕参数是否相同。It is used to determine whether the setting screen parameters are the same as the real-time screen parameters according to the setting hash value and the real-time hash value.
可选的,在本申请的一些实施例中,当屏参文件不存在时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新,具体还用于:Optionally, in some embodiments of the present application, when the screen parameter file does not exist, the screen parameter file of the target driver chip is updated according to the set screen parameters, specifically for:
用于创建目标驱动芯片所加载的新建屏参路径;Used to create a new screen parameter path loaded by the target driver chip;
用于根据新建屏参路径和设定屏幕参数,创建新建屏参文件。It is used to create a new screen parameter file according to the new screen parameter path and set screen parameters.
可选的,在本申请的一些实施例中,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,具体用于:Optionally, in some embodiments of the present application, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
用于获取显示屏中至少一个驱动芯片的屏参路径,屏参路径为设备开机前最后一次配置驱动芯片的屏参文件的配置路径;It is used to obtain the screen parameter path of at least one driver chip in the display screen, and the screen parameter path is the configuration path of the screen parameter file for configuring the driver chip last time before the device is powered on;
用于根据屏参路径分别读取驱动芯片的屏参文件。It is used to read the screen parameter file of the driver chip according to the screen parameter path.
可选的,在本申请的一些实施例中,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,具体用于:Optionally, in some embodiments of the present application, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, specifically for:
用于获取显示屏中至少一个驱动芯片的备份屏参路径,备份屏参路径为设备出厂前最后一次备份驱动芯片的屏参文件的备份路径;It is used to obtain the backup screen parameter path of at least one driver chip in the display, and the backup screen parameter path is the backup path of the last backup screen parameter file of the driver chip before the device leaves the factory;
用于根据备份屏参路径分别读取至少一个驱动芯片的备份屏参文件。It is used for reading the backup screen parameter file of at least one driver chip according to the backup screen parameter path.
本申请实施例首先由读取模块201在设备开机时,读取设备的显示屏中与显示相关的至少一个驱动芯片的屏参文件,根据屏参文件来获取设备开机时的实时屏幕参数,其次,由获取模块202获取设备在出厂时的驱动芯片的设定屏幕参数,然后,更新模块203根据设定屏幕参数对实时屏幕参数进行更新,以保持实时屏幕参数与设定屏幕参数的同步,其中,在对实时屏幕参数进行更新的过程中,还选对设定屏幕参数与实时屏幕参数是否相同进行校验,当校验结果为设定屏幕参数与实时屏幕参数相同时,则不需要对实时屏幕参数进行更新,反之,根据设定屏幕参数对实时屏幕参数进行更新,最后,由更新后的屏幕参数控制显示屏的显示;本申请实施例通过在设备开机时,在对设备的显示屏所对应的驱动芯片的屏幕参数写入之前,先对驱动芯片的屏幕参数是否发生变化进行检测,并根据检测结果确定是否需要对驱动芯片的屏幕参数进行重新写入,降低了驱动芯片的写入次数,提高驱动芯片的使用寿命。In the embodiment of the present application, the reading module 201 first reads the screen parameter file of at least one driver chip related to the display in the display screen of the device when the device is powered on, and obtains the real-time screen parameters when the device is powered on according to the screen parameter file. , the acquisition module 202 acquires the set screen parameters of the driver chip of the device when it leaves the factory, and then the update module 203 updates the real-time screen parameters according to the set screen parameters, so as to keep the synchronization of the real-time screen parameters and the set screen parameters, wherein , in the process of updating the real-time screen parameters, it is also selected to verify whether the setting screen parameters are the same as the real-time screen parameters. When the verification result is that the setting screen parameters are the same as the real-time The screen parameters are updated; otherwise, the real-time screen parameters are updated according to the set screen parameters, and finally, the display of the display screen is controlled by the updated screen parameters; Before writing the screen parameters of the corresponding driver chip, first detect whether the screen parameters of the driver chip have changed, and determine whether the screen parameters of the driver chip need to be rewritten according to the detection results, reducing the number of writes to the driver chip , improve the service life of the driver chip.
此外,本申请还提供一种电子设备,如图7所示,其示出了本申请所涉及的电子设备的结构示意图,具体来讲:In addition, the present application also provides an electronic device, as shown in FIG. 7 , which shows a schematic structural diagram of the electronic device involved in the present application, specifically:
该电子设备可以包括一个或者一个以上处理核心的处理器401、一个或一个以上计算机可读存储介质的存储器402、电源403和输入单元404等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The electronic device may include a processor 401 of one or more processing cores, a memory 402 of one or more computer-readable storage media, a power supply 403, an input unit 404 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components. in:
处理器401是该电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。可选的,处理器401可包括一个或多个处理核心;优选的,处理器401可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器401中。The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 402, and calling the Data, perform various functions of electronic equipment and process data, so as to monitor electronic equipment as a whole. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 401 .
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The memory 402 can be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402 . The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function; Data created by the use of electronic devices, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may further include a memory controller to provide the processor 401 with access to the memory 402 .
电子设备还包括给各个部件供电的电源403,优选的,电源403可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源403还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
该电子设备还可包括输入单元404,该输入单元404可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The electronic device can also include an input unit 404, which can be used to receive input numbers or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
尽管未示出,电子设备还可以包括显示单元等,在此不再赘述。具体在本实施例中,电子设备中的处理器401会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器402中,并由处理器401来运行存储在存储器402中的应用程序,从而实现各种功能,如下:Although not shown, the electronic device may also include a display unit, etc., which will not be repeated here. Specifically, in this embodiment, the processor 401 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the executable file stored in the The application program in memory 402, thereby realizes various functions, as follows:
当检测到设备开机时,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,屏参文件中包含有设备开机时的实时屏幕参数;获取驱动芯片在出厂时的设定屏幕参数;当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变;当存在目标驱动芯片的实时屏幕参数与对应的设定屏幕参数不相同时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新;根据屏参文件控制显示屏进行显示。When it is detected that the device is turned on, the screen parameter file of at least one driver chip in the display screen of the device is read in real time. The screen parameter file contains the real-time screen parameters when the device is turned on; obtain the setting screen parameters of the driver chip when it leaves the factory; When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged; At the same time, update the screen parameter file of the target driver chip according to the set screen parameters; control the display screen to display according to the screen parameter file.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
本申请实施例在设备开机时,在对设备的显示屏所对应的驱动芯片的屏幕参数写入之前,先对驱动芯片的屏幕参数是否发生变化进行检测,并根据检测结果确定是否需要对驱动芯片的屏幕参数进行重新写入,降低了驱动芯片的写入次数,提高驱动芯片的使用寿命。In the embodiment of the present application, when the device is turned on, before writing the screen parameters of the driver chip corresponding to the display screen of the device, it is first detected whether the screen parameters of the driver chip have changed, and it is determined whether the driver chip needs to be modified according to the detection result. The screen parameters are rewritten, which reduces the number of times the driver chip is written and improves the service life of the driver chip.
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by instructions controlling related hardware, and the instructions can be stored in a computer-readable storage medium, and is loaded and executed by the processor.
为此,本申请提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请所提供的任一种显示控制方法中的步骤。例如,该指令可以执行如下步骤:To this end, the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any display control method provided in the present application. For example, the command can perform the following steps:
当检测到设备开机时,实时读取设备的显示屏中至少一个驱动芯片的屏参文件,屏参文件中包含有设备开机时的实时屏幕参数;获取驱动芯片在出厂时的设定屏幕参数;当每个驱动芯片的实时屏幕参数与对应的设定屏幕参数相同时,则保持屏参文件中的实时屏幕参数不变;当存在目标驱动芯片的实时屏幕参数与对应的设定屏幕参数不相同时,根据设定屏幕参数对目标驱动芯片的屏参文件进行更新;根据屏参文件控制显示屏进行显示。When it is detected that the device is turned on, the screen parameter file of at least one driver chip in the display screen of the device is read in real time. The screen parameter file contains the real-time screen parameters when the device is turned on; obtain the setting screen parameters of the driver chip when it leaves the factory; When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged; At the same time, update the screen parameter file of the target driver chip according to the set screen parameters; control the display screen to display according to the screen parameter file.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not repeated here.
其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD, etc.
由于该存储介质中所存储的指令,可以执行本申请所提供的任一种显示屏参数写入方法中的步骤,因此,可以实现本申请所提供的任一种显示屏参数写入方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Due to the instructions stored in the storage medium, the steps in any one of the display screen parameter writing methods provided by the present application can be executed, and therefore, the functions of any one of the display screen parameter writing methods provided by the present application can be realized. For the beneficial effects achieved, see the foregoing embodiments for details, and details are not repeated here.
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本申请的专利保护范围内。The above is only the preferred embodiment of the application, and does not limit the patent scope of the application. Any equivalent structure or process transformation made by using the specification and drawings of the application, or directly or indirectly used in other related technical fields , are all included in the patent protection scope of the present application in the same way.

Claims (20)

  1. 一种显示控制方法,其特征在于,包括:A display control method, characterized by comprising:
    当检测到设备开机时,实时读取所述设备的显示屏中至少一个驱动芯片的屏参文件,所述屏参文件中包含有所述设备开机时的实时屏幕参数;When it is detected that the device is turned on, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, and the screen parameter file contains real-time screen parameters when the device is turned on;
    获取所述驱动芯片在出厂时的设定屏幕参数;Obtain the setting screen parameters of the driver chip when it leaves the factory;
    当每个驱动芯片的所述实时屏幕参数与对应的设定屏幕参数相同时,则保持所述屏参文件中的所述实时屏幕参数不变;When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged;
    当存在目标驱动芯片的所述实时屏幕参数与对应的设定屏幕参数不相同时,根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新;When the real-time screen parameter of the target driver chip is different from the corresponding setting screen parameter, update the screen parameter file of the target driver chip according to the setting screen parameter;
    根据屏参文件控制显示屏进行显示。Control the display to display according to the screen parameter file.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The method according to claim 1, wherein updating the screen parameter file of the target driver chip according to the set screen parameters includes:
    获取所述目标驱动芯片的目标芯片数量,所述目标芯片数量至少为一个;Acquire the target chip number of the target driver chip, where the target chip number is at least one;
    根据所述目标芯片数量确定所述目标驱动芯片的屏参文件更新方式;Determine the update method of the screen parameter file of the target driver chip according to the number of the target chips;
    根据所述屏参文件更新方式和所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新。The screen parameter file of the target driver chip is updated according to the screen parameter file update method and the set screen parameters.
  3. 根据权利要求2所述的方法,其特征在于,所述目标驱动芯片数量包括一个,所述根据所述目标芯片数量确定所述目标驱动芯片的屏参文件更新方式,包括:The method according to claim 2, wherein the number of the target driver chip includes one, and the determination of the update mode of the screen parameter file of the target driver chip according to the number of the target chip includes:
    直接根据所述目标驱动芯片的设定屏幕参数对所述目标驱动芯片的屏参文件进行更新。The screen parameter file of the target driver chip is updated directly according to the setting screen parameters of the target driver chip.
  4. 根据权利要求2所述的方法,其特征在于,所述目标驱动芯片数量包括两个,所述根据所述目标芯片数量确定所述目标驱动芯片的屏参文件更新方式,包括:The method according to claim 2, wherein the number of the target driver chips includes two, and determining the update method of the screen parameter file of the target driver chip according to the number of the target chips includes:
    从两个所述目标驱动芯片中选取第一目标驱动芯片;Selecting the first target driver chip from the two target driver chips;
    根据所述第一目标驱动芯片的设定屏幕参数对所述第一目标驱动芯片的第一屏参文件进行更新;updating the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
    当所述第一屏参文件更新成功后,根据更新后第一屏参文件和第二目标芯片的设定屏幕参数,对所述第二目标驱动芯片的第二屏参文件进行更新。When the first screen parameter file is successfully updated, the second screen parameter file of the second target driver chip is updated according to the updated first screen parameter file and the set screen parameters of the second target chip.
  5. 根据权利要求1所述的方法,其特征在于,所述设定屏幕参数包括设定参数名称和设定参数值,所述实时屏幕参数包括实时参数名称和实时参数值,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The method according to claim 1, wherein the setting screen parameters include a setting parameter name and a setting parameter value, and the real-time screen parameters include a real-time parameter name and a real-time parameter value. Fixed screen parameters update the screen parameter file of the target driver chip, including:
    获取加载所述目标驱动芯片中的屏参文件的屏参路径;Obtain a screen parameter path for loading a screen parameter file in the target driver chip;
    根据所述屏参路径、所述设定参数名称和所述实时参数名称,将所述目标驱动芯片中的实时参数值替换为所述设定参数值。and replacing the real-time parameter value in the target driver chip with the setting parameter value according to the screen parameter path, the setting parameter name and the real-time parameter name.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述屏参路径、所述设定参数名称和所述实时参数名称,将所述目标驱动芯片中的实时参数值替换为所述设定参数值,包括:The method according to claim 5, wherein, according to the screen parameter path, the set parameter name and the real-time parameter name, the real-time parameter value in the target driver chip is replaced by the Set parameter values, including:
    加载所述屏参路径,得到所述目标驱动芯片的屏参文件;Loading the screen parameter path to obtain the screen parameter file of the target driver chip;
    根据所述设定参数名称和所述实时参数名称,将所述屏参文件中的实时参数值替换为所述设定参数值。and replacing the real-time parameter values in the screen parameter file with the setting parameter values according to the setting parameter names and the real-time parameter names.
  7. 根据权利要求1所述的方法,其特征在于,所述设备中存储有备份屏参文件,所述备份屏参文件中存储有备份屏幕参数,所述设定屏幕参数包括备份屏幕参数,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The method according to claim 1, wherein a backup screen parameter file is stored in the device, a backup screen parameter is stored in the backup screen parameter file, the setting screen parameter includes a backup screen parameter, and the The screen parameter file of the target driver chip is updated according to the setting screen parameters, including:
    获取加载所述目标驱动芯片的屏参文件的屏参路径以及获取加载所述备份屏参文件的备份屏参路径;Obtaining a screen reference path for loading the screen reference file of the target driver chip and obtaining a backup screen reference path for loading the backup screen reference file;
    将所述屏参路径替换为所述备份屏参路径。Replace the screen parameter path with the backup screen parameter path.
  8. 根据权利要求1所述的方法,其特征在于,所述设备中存储有备份屏参文件,所述备份屏参文件中存储有备份屏幕参数,所述设定屏幕参数包括备份屏幕参数,所述备份屏幕参数包括备份参数名称和备份参数值,所述实时屏幕参数包括实时参数名称和实时参数值,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The method according to claim 1, wherein a backup screen parameter file is stored in the device, a backup screen parameter is stored in the backup screen parameter file, the setting screen parameter includes a backup screen parameter, and the The backup screen parameters include a backup parameter name and a backup parameter value, and the real-time screen parameters include a real-time parameter name and a real-time parameter value, and the updating of the screen parameter file of the target driver chip according to the setting screen parameters includes:
    获取加载所述目标驱动芯片中的屏参文件的屏参路径;Obtain a screen parameter path for loading a screen parameter file in the target driver chip;
    根据所述屏参路径、所述备份参数名称和所述实时参数名称,将所述目标驱动芯片中的实时参数值替换为所述备份参数值。According to the screen parameter path, the backup parameter name and the real-time parameter name, replace the real-time parameter value in the target driver chip with the backup parameter value.
  9. 根据权利要求1所述的方法,其特征在于,所述当每个驱动芯片的所述实时屏幕参数与对应的设定屏幕参数相同时,则保持所述屏参文件中的所述实时屏幕参数不变之前,还包括:The method according to claim 1, wherein, when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, then keep the real-time screen parameters in the screen parameter file Before unchanged, it also includes:
    针对每个所述驱动芯片,获取所述设定屏幕参数所对应的校验码文件,得到设定屏幕参数的设定散列值;For each of the driver chips, obtain the verification code file corresponding to the setting screen parameters, and obtain the setting hash value of the setting screen parameters;
    对所述实时屏幕参数进行散列运算,得到实时屏幕参数的实时散列值;Carry out hash operation to described real-time screen parameter, obtain the real-time hash value of real-time screen parameter;
    根据所述设定散列值和所述实时散列值,确定所述设定屏幕参数与所述实时屏幕参数是否相同。According to the set hash value and the real-time hash value, it is determined whether the set screen parameter is the same as the real-time screen parameter.
  10. 根据权利要求1所述的方法,其特征在于,当所述屏参文件不存在时,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The method according to claim 1, wherein when the screen parameter file does not exist, updating the screen parameter file of the target driver chip according to the set screen parameters includes:
    创建所述目标驱动芯片所加载的新建屏参路径;Create a new screen parameter path loaded by the target driver chip;
    根据所述新建屏参路径和所述设定屏幕参数,创建新建屏参文件。Create a new screen parameter file according to the newly created screen parameter path and the set screen parameters.
  11. 根据权利要求1所述的方法,其特征在于,所述实时读取所述设备的显示屏中至少一个驱动芯片的屏参文件,包括:The method according to claim 1, wherein the real-time reading of the screen parameter file of at least one driver chip in the display screen of the device comprises:
    获取所述显示屏中至少一个驱动芯片的屏参路径,所述屏参路径为所述设备开机前最后一次配置所述驱动芯片的屏参文件的配置路径;Obtaining a screen parameter path of at least one driver chip in the display screen, where the screen parameter path is a configuration path of a screen parameter file for configuring the driver chip for the last time before the device is powered on;
    根据所述屏参路径分别读取所述驱动芯片的屏参文件。Read the screen parameter file of the driver chip according to the screen parameter path.
  12. 根据权利要求1所述的方法,其特征在于,所述实时读取所述设备的显示屏中至少一个驱动芯片的屏参文件,包括:The method according to claim 1, wherein the real-time reading of the screen parameter file of at least one driver chip in the display screen of the device comprises:
    获取所述显示屏中至少一个驱动芯片的备份屏参路径,所述备份屏参路径为所述设备出厂前最后一次备份所述驱动芯片的屏参文件的备份路径;Obtaining a backup screen parameter path of at least one driver chip in the display screen, the backup screen parameter path being the last backup path of the screen parameter file of the driver chip before the device leaves the factory;
    根据所述备份屏参路径分别读取所述至少一个驱动芯片的备份屏参文件。The backup screen parameter file of the at least one driver chip is respectively read according to the backup screen parameter path.
  13. 一种显示控制装置,其特征在于,包括:A display control device, characterized in that it comprises:
    读取模块,用于当检测到设备开机时,实时读取所述设备的显示屏中至少一个驱动芯片的屏参文件,所述屏参文件中包含有所述设备开机时的实时屏幕参数;The reading module is used to read the screen parameter file of at least one driver chip in the display screen of the device in real time when it is detected that the device is powered on, and the screen parameter file contains the real-time screen parameters when the device is powered on;
    获取模块,用于获取所述驱动芯片在出厂时的设定屏幕参数;An acquisition module, configured to acquire the setting screen parameters of the driver chip when it leaves the factory;
    更新模块,用于当每个驱动芯片的所述实时屏幕参数与对应的设定屏幕参数相同时,则保持所述屏参文件中的所述实时屏幕参数不变;An update module, used to keep the real-time screen parameters in the screen parameter file unchanged when the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters;
    还用于当存在目标驱动芯片的所述实时屏幕参数与对应的设定屏幕参数不相同时,根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新;It is also used to update the screen parameter file of the target drive chip according to the set screen parameters when the real-time screen parameters of the target drive chip are different from the corresponding setting screen parameters;
    显示模块,用于根据屏参文件控制显示屏进行显示。The display module is used to control the display screen to display according to the screen parameter file.
  14. 根据权利要求13所述的装置,其特征在于,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The device according to claim 13, wherein updating the screen parameter file of the target driver chip according to the set screen parameters includes:
    第一获取单元,用于获取所述目标驱动芯片的目标芯片数量,所述目标芯片数量至少为一个;A first acquiring unit, configured to acquire the target chip number of the target driving chip, the target chip number being at least one;
    第一确定单元,用于根据所述目标芯片数量确定所述目标驱动芯片的屏参文件更新方式;The first determination unit is used to determine the update method of the screen parameter file of the target driver chip according to the number of the target chips;
    第一更新单元,用于根据所述屏参文件更新方式和所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新。The first update unit is configured to update the screen parameter file of the target driver chip according to the screen parameter file update method and the set screen parameters.
  15. 根据权利要求14所述的装置,其特征在于,所述目标驱动芯片数量包括一个,所述第一确定单元,包括:The device according to claim 14, wherein the number of target driving chips comprises one, and the first determining unit comprises:
    第一更新子单元,用于直接根据所述目标驱动芯片的设定屏幕参数对所述目标驱动芯片的屏参文件进行更新。The first update subunit is used to directly update the screen parameter file of the target driver chip according to the setting screen parameters of the target driver chip.
  16. 根据权利要求14所述的装置,其特征在于,所述目标驱动芯片数量包括两个,所述第一确定单元,包括:The device according to claim 14, wherein the number of the target driver chips comprises two, and the first determining unit comprises:
    第一选取子单元,用于从两个所述目标驱动芯片中选取第一目标驱动芯片;a first selection subunit, configured to select a first target driver chip from the two target driver chips;
    第二更新子单元,用于根据所述第一目标驱动芯片的设定屏幕参数对所述第一目标驱动芯片的第一屏参文件进行更新;The second update subunit is used to update the first screen parameter file of the first target driver chip according to the setting screen parameters of the first target driver chip;
    第三更新子单元,用于当所述第一屏参文件更新成功后,根据更新后第一屏参文件和第二目标芯片的设定屏幕参数,对所述第二目标驱动芯片的第二屏参文件进行更新。The third updating subunit is used for, when the first screen parameter file is successfully updated, according to the updated first screen parameter file and the setting screen parameters of the second target chip, to the second target driver chip of the second target chip. The screen parameter file is updated.
  17. 根据权利要求13所述的装置,其特征在于,所述设定屏幕参数包括设定参数名称和设定参数值,所述实时屏幕参数包括实时参数名称和实时参数值,所述根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新,包括:The device according to claim 13, wherein the setting screen parameters include a setting parameter name and a setting parameter value, and the real-time screen parameters include a real-time parameter name and a real-time parameter value. Fixed screen parameters update the screen parameter file of the target driver chip, including:
    第二获取单元,用于获取加载所述目标驱动芯片中的屏参文件的屏参路径;The second obtaining unit is used to obtain the screen parameter path for loading the screen parameter file in the target driver chip;
    第二更新单元,用于根据所述屏参路径、所述设定参数名称和所述实时参数名称,将所述目标驱动芯片中的实时参数值替换为所述设定参数值。The second update unit is configured to replace the real-time parameter value in the target driver chip with the set parameter value according to the screen parameter path, the set parameter name and the real-time parameter name.
  18. 根据权利要求17所述的装置,其特征在于,所述第二更新单元,包括:The device according to claim 17, wherein the second updating unit comprises:
    加载子单元,用于加载所述屏参路径,得到所述目标驱动芯片的屏参文件;The loading subunit is used to load the screen parameter path to obtain the screen parameter file of the target driver chip;
    替换子单元,用于根据所述设定参数名称和所述实时参数名称,将所述屏参文件中的实时参数值替换为所述设定参数值。The replacing subunit is used to replace the real-time parameter value in the screen parameter file with the setting parameter value according to the setting parameter name and the real-time parameter name.
  19. 一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现:An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the program, it realizes:
    当检测到设备开机时,实时读取所述设备的显示屏中至少一个驱动芯片的屏参文件,所述屏参文件中包含有所述设备开机时的实时屏幕参数;When it is detected that the device is turned on, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, and the screen parameter file contains real-time screen parameters when the device is turned on;
    获取所述驱动芯片在出厂时的设定屏幕参数;Obtain the setting screen parameters of the driver chip when it leaves the factory;
    当每个驱动芯片的所述实时屏幕参数与对应的设定屏幕参数相同时,则保持所述屏参文件中的所述实时屏幕参数不变;When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged;
    当存在目标驱动芯片的所述实时屏幕参数与对应的设定屏幕参数不相同时,根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新;When the real-time screen parameter of the target driver chip is different from the corresponding setting screen parameter, update the screen parameter file of the target driver chip according to the setting screen parameter;
    根据屏参文件控制显示屏进行显示。Control the display to display according to the screen parameter file.
  20. 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现:A computer-readable storage medium, characterized in that a computer program is stored thereon, wherein when the computer program is executed by a processor, it realizes:
    当检测到设备开机时,实时读取所述设备的显示屏中至少一个驱动芯片的屏参文件,所述屏参文件中包含有所述设备开机时的实时屏幕参数;When it is detected that the device is turned on, the screen parameter file of at least one driver chip in the display screen of the device is read in real time, and the screen parameter file contains real-time screen parameters when the device is turned on;
    获取所述驱动芯片在出厂时的设定屏幕参数;Obtain the setting screen parameters of the driver chip when it leaves the factory;
    当每个驱动芯片的所述实时屏幕参数与对应的设定屏幕参数相同时,则保持所述屏参文件中的所述实时屏幕参数不变;When the real-time screen parameters of each driver chip are the same as the corresponding setting screen parameters, keep the real-time screen parameters in the screen parameter file unchanged;
    当存在目标驱动芯片的所述实时屏幕参数与对应的设定屏幕参数不相同时,根据所述设定屏幕参数对所述目标驱动芯片的屏参文件进行更新;When the real-time screen parameter of the target driver chip is different from the corresponding setting screen parameter, update the screen parameter file of the target driver chip according to the setting screen parameter;
    根据屏参文件控制显示屏进行显示。Control the display to display according to the screen parameter file.
PCT/CN2021/110127 2021-08-02 2021-08-02 Display control method and apparatus, electronic device, and storage medium WO2023010251A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/110127 WO2023010251A1 (en) 2021-08-02 2021-08-02 Display control method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/110127 WO2023010251A1 (en) 2021-08-02 2021-08-02 Display control method and apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2023010251A1 true WO2023010251A1 (en) 2023-02-09

Family

ID=85154879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/110127 WO2023010251A1 (en) 2021-08-02 2021-08-02 Display control method and apparatus, electronic device, and storage medium

Country Status (1)

Country Link
WO (1) WO2023010251A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075924A (en) * 2023-08-15 2023-11-17 杭州凡诺电子有限公司 Chip ID processing method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060253838A1 (en) * 2005-02-28 2006-11-09 Omron Corporation Parameter setting device
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN107230445A (en) * 2017-06-05 2017-10-03 广州视源电子科技股份有限公司 The collocation method and device of a kind of screen parameter
CN107749286A (en) * 2017-11-16 2018-03-02 青岛海信电器股份有限公司 Display screen parameter read-in method and device
CN111800658A (en) * 2019-04-16 2020-10-20 深圳康佳电子科技有限公司 Chip parameter writing method, television and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060253838A1 (en) * 2005-02-28 2006-11-09 Omron Corporation Parameter setting device
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN107230445A (en) * 2017-06-05 2017-10-03 广州视源电子科技股份有限公司 The collocation method and device of a kind of screen parameter
CN107749286A (en) * 2017-11-16 2018-03-02 青岛海信电器股份有限公司 Display screen parameter read-in method and device
CN111800658A (en) * 2019-04-16 2020-10-20 深圳康佳电子科技有限公司 Chip parameter writing method, television and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117075924A (en) * 2023-08-15 2023-11-17 杭州凡诺电子有限公司 Chip ID processing method and electronic equipment
CN117075924B (en) * 2023-08-15 2024-03-19 杭州凡诺电子有限公司 Chip ID processing method and electronic equipment

Similar Documents

Publication Publication Date Title
JP4467624B2 (en) Software update management program, software update management apparatus, and software update management method
KR20140055938A (en) Rack and method thereof for simultaneously updating basic input output systems
KR101668312B1 (en) Method and apparatus for supporting hibernation function in mobile device
CN101539866B (en) Information processing device, and method of starting information processing device
WO2011024688A1 (en) Firmware update system, and information apparatus, as well as program
TWI602121B (en) Technology for updating a server image file
US20130138934A1 (en) Loading configuration information
WO2017185954A1 (en) Method, host, and system for implementing usb device management
US8397055B2 (en) Method and system for post-build modification of firmware binaries to support different hardware configurations
CN106293824A (en) A kind of from the method and device processing chip upgrade
CN104866391A (en) Terminal information backup method and apparatus based on incremental information system
CN110825419B (en) Firmware refreshing method and device, electronic equipment and storage medium
EP2621142A1 (en) Apparatus and Method for Determining Duplication of Content in Portable Terminal
US7574612B2 (en) Job executing unit power control system
WO2023010251A1 (en) Display control method and apparatus, electronic device, and storage medium
US11403113B2 (en) Server with system setting data synchronization function
JP2012079176A (en) Information processing system and start control method
KR20070008908A (en) Data processing device and control method of the same
CN106484442B (en) Server system and method for updating startup mapping file
JP2019020798A (en) Information processing device and program
US20100115503A1 (en) Image processing apparatus and control method thereof
US20220357960A1 (en) Method of remotely modifying basic input/output system configuration setting
WO2022193564A1 (en) Method and apparatus for managing servo system parameters, and device and storage medium
TWI789650B (en) Integrated control management system
US20060190421A1 (en) Information processing apparatus and method, recording medium, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21952161

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE