CN111552498B - Method and system for realizing screen parameter upgrading of display screen - Google Patents
Method and system for realizing screen parameter upgrading of display screen Download PDFInfo
- Publication number
- CN111552498B CN111552498B CN202010429092.0A CN202010429092A CN111552498B CN 111552498 B CN111552498 B CN 111552498B CN 202010429092 A CN202010429092 A CN 202010429092A CN 111552498 B CN111552498 B CN 111552498B
- Authority
- CN
- China
- Prior art keywords
- screen
- screen parameter
- parameter data
- parameter
- emmc
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1004—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of display screen parameter upgrading, in particular to a method and a system for realizing screen parameter upgrading of a display screen. The method comprises the following steps: s1, writing screen parameter data into an EMMC screen parameter area in advance; s2, reading screen parameter data in the screen parameter area of the EMMC through loading a guide program; if the screen parameters are successfully read, the screen parameters are transmitted to the kernel, and the step S3 is carried out, otherwise, the step S4 is carried out; s3, starting a kernel, initializing a display screen controller according to the transmitted screen parameter data, and outputting a new resolution to lighten the display screen; s4, replacing the screen parameter by using a default screen parameter according to failure in reading, and updating the screen parameter of the EMMC screen parameter partition. According to the invention, the screen parameter data in the EMMC screen parameter partition is read out through the Uboot, and the screen parameter data is transmitted to the kernel, and the EMMC screen parameter partition is updated through the U disk or the SD card, so that the adaptation to various display screens under the same Android system firmware can be realized.
Description
Technical Field
The invention relates to the technical field of display screen parameter upgrading, in particular to a method and a system for realizing screen parameter upgrading of a display screen.
Background
Currently, existing Android devices with matched display screens (such as LCD screens) display default resolution when shipped, and if the LCD screens with other resolutions are replaced, the Android system firmware needs to be updated to match with a new LCD screen. An LCD screen needs to correspond to one Android system firmware, and multiple LCD screens will have multiple system firmware that need maintenance, and these system firmware have identical functions except for different display outputs. When the equipment is replaced by different LCD screens, the problem that the display cannot be displayed or is incorrect can occur, and the Android system firmware needs to be updated to solve the problem. Multiple LCD screens need to be maintained by using multiple Android system firmware, so that software maintenance cost becomes high, firmware upgrading time is long, and production efficiency is low.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a method for realizing screen parameter upgrading of a display screen, which is characterized in that required screen parameter data is written into a designated EMMC screen parameter partition in advance, screen parameter data in the EMMC screen parameter partition is read out through Uboot when a system is started, the screen parameter data is transmitted to a kernel, and the EMMC screen parameter partition is updated through a U disk or an SD card, so that the adaptation to a plurality of display screens under the same Android system firmware can be realized.
On the other hand, the invention also provides a system for realizing screen parameter upgrading of the display screen.
The method is realized by adopting the following technical scheme: a method for realizing screen parameter upgrading of a display screen comprises the following steps:
s1, writing screen parameter data into an EMMC screen parameter area in advance;
s2, reading screen parameter data in the screen parameter area of the EMMC through loading a guide program; if the screen parameters are successfully read, the screen parameters are transmitted to the kernel, and the step S3 is carried out, otherwise, the step S4 is carried out;
s3, starting a kernel, initializing a display screen controller according to the transmitted screen parameter data, and outputting a new resolution to lighten the display screen;
s4, replacing the screen parameter by using a default screen parameter according to failure in reading, and updating the screen parameter of the EMMC screen parameter partition.
In a preferred embodiment, step S4 updates the screen parameter data of the EMMC screen parameter area through the usb or SD card, and the process is:
s41, starting a screen parameter upgrading service process, monitoring the insertion action of the USB flash disk or the SD card in real time, and checking whether a screen parameter file exists in the USB flash disk or the SD card root directory;
s42, after the upgrading service process finds that the screen parameter file exists, reading the screen parameter file data to calculate a CRC check value, reading the CRC check value already stored in the EMMC screen parameter partition, and comparing the two CRC check values; if the screen parameter upgrading is not carried out, the data of the screen parameter partition of the EMMC is null, and the CRC check value in the screen parameter partition of the EMMC is 0; if the CRC check values are different, writing screen parameter data into the screen parameter partition of the EMMC, writing new CRC check values, automatically restarting the system after the CRC check values are written, finishing screen parameter upgrading, and outputting new resolution by the display screen; and if the CRC check value is the same, the screen parameter data is not updated.
Step S2, loading a boot program as a Uboot program; the mechanism for transmitting screen parameter data through Uboot in the step S3 is as follows: when Uboot is started, the screen parameter data is transferred to the kernel by setting the cmdline parameter, and the cmdline parameter is acquired and analyzed when the kernel is started.
The system is realized by adopting the following technical scheme: a system for implementing a screen upgrade of a display screen, comprising:
the screen parameter partition of the EMMC, and screen parameter data are written into the screen parameter partition of the EMMC in advance;
the loading guide program module is used for reading screen parameter data in the screen parameter area of the EMMC through loading the guide program; if the screen parameter is successfully read, the screen parameter is transmitted to the kernel; if the screen parameter data fails to be read, replacing the default screen parameter data;
the display screen lighting module starts the kernel when the screen parameter is successfully read, initializes the display screen controller according to the transmitted screen parameter data, and outputs a new resolution to light the display screen;
and the screen parameter data updating module is used for updating the screen parameter data of the EMMC screen parameter partition.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. according to the invention, the required screen parameter data is written into the appointed EMMC screen parameter partition in advance, the screen parameter data in the EMMC screen parameter partition is read out through Uboot when the system is started, and the screen parameter data is transmitted to the kernel. Initializing a display screen controller according to the transmitted screen parameter data when the kernel is started, and outputting a new resolution to lighten the display screen; for different display screens, the EMMC screen parameter areas can be adapted to various display screens under the same Android system firmware only by updating the EMMC screen parameter areas through a USB flash disk or an SD card. Therefore, by means of the screen parameter upgrading method, when equipment is replaced by different LCD screens, android system firmware is not required to be upgraded, and only the LCD screen parameters are required to be upgraded.
2. When the equipment is replaced by different display screens, the Android system firmware is not required to be updated, and only the LCD screen parameter is required to be updated; and the LCD screen parameter is updated only by a few seconds, so that the production efficiency can be greatly improved, the software maintenance cost can be reduced, and the after-sales maintenance complexity can be reduced.
Drawings
FIG. 1 is a flow chart of the upgrade method of the present invention.
Detailed Description
The present invention will be described in further detail with reference to examples and drawings, but embodiments of the present invention are not limited thereto.
Examples
As shown in fig. 1, taking an LCD screen as an example, the method for upgrading a screen parameter of a display screen according to the present invention includes the following steps:
s1, writing screen parameter data into a designated EMMC screen parameter area in advance;
s2, when the system is started, reading screen parameter data in the screen parameter area of the EMMC through Uboot; if the screen parameters are successfully read, the screen parameters are transmitted to the kernel, and the step S3 is carried out, otherwise, the step S4 is carried out;
when the Uboot is started, the screen parameter data in the screen parameter area of the EMMC can be read, and the parameters of the screen parameter area can be automatically read.
S3, when the kernel is started, initializing the LCD controller according to the transmitted screen parameter data, and outputting new resolution to lighten the LCD screen;
s4, replacing the screen parameter data by using a default screen parameter data when the screen parameter data fails to be read, and updating the screen parameter data of the EMMC screen parameter area through the USB flash disk or the SD card.
And updating screen parameter data of the EMMC screen parameter partition through the USB flash disk or the SD card, so that multiple LCD screens are adapted under the same Android system firmware. The process for updating the screen parameter data of the EMMC screen parameter partition through the USB flash disk or the SD card comprises the following steps:
s41, after the system is started, starting a screen parameter upgrading service process lcdparamservice, writing the process by using a C language without a UI interface, monitoring the insertion action of a U disk or an SD card in real time, and checking whether a screen parameter file td_lcd_parameters exists in the U disk or the SD card root directory. The screen parameter file is a text file, LCD screen parameters are stored in the screen parameter file, and editing or modification can be performed on a computer end without special tools.
S42, after the upgrade service process lcdparamservice discovers that the screen file td_lcd_parameters exist, reading the screen file data to calculate a CRC check value (other than 0 value), reading the CRC check value already stored in the EMMC screen partition, and comparing the two CRC check values; if the screen parameter is a bare board, i.e. screen parameter upgrading is not performed, the data of the screen parameter partition of the EMMC is null, and the CRC check value in the screen parameter partition of the EMMC is 0; if the CRC check values are different, writing screen parameter data into the screen parameter partition of the EMMC, writing new CRC check values, automatically restarting the system after the CRC check values are written, marking that the screen parameter upgrading is completed, and outputting new resolution by the LCD screen, wherein the new resolution represents that the screen parameter upgrading is successful; if the CRC check value is the same, the screen parameter data is not updated.
The mechanism for transmitting screen parameter data through Uboot comprises the following steps: when Uboot is started, the screen parameter data can be transmitted to the kernel by setting the cmdline parameter, and when the kernel is started, the cmdline parameter can be acquired and analyzed, and then the system initialization work is carried out. The steps S3 and S4 are combined, screen parameter data are transmitted to the kernel initialization LCD screen by the mechanism, and the specified resolution is output, specifically:
when the system is started, uboot can read the screen parameter data of the EMMC screen parameter partition to judge, if the read screen parameter data is empty or the screen parameter data is not a standard value (the resolution of a product is required), the reading of the screen parameter data fails, and at the moment, the screen parameter data cannot be written into cmdline, namely, parameter transmission is not carried out. If the screen parameter data transmitted by the cmdline is not obtained when the kernel is started, initializing by using a parameter value fixed by the kernel code, wherein the display abnormality is caused by the fact that the LCD screen is possibly not matched with the default parameters, and updating the correct screen parameter data through the USB flash disk/SD card; if the screen parameter data transmitted by the cmdline is obtained when the kernel is started, the screen parameter data is judged, whether the parameter required by the current equipment is required or not is judged, and the parameter is used for initializing the LCD screen only if the requirement is met.
Based on the same inventive concept, the invention provides an upgrading system corresponding to the upgrading method, which comprises the following steps:
the screen parameter partition of the EMMC, and screen parameter data are written into the screen parameter partition of the EMMC in advance;
the loading guide program module is used for reading screen parameter data in the screen parameter area of the EMMC through loading the guide program; if the screen parameter is successfully read, the screen parameter is transmitted to the kernel; if the screen parameter data fails to be read, replacing the default screen parameter data;
the display screen lighting module starts the kernel when the screen parameter is successfully read, initializes the display screen controller according to the transmitted screen parameter data, and outputs a new resolution to light the display screen;
and the screen parameter data updating module is used for updating the screen parameter data of the EMMC screen parameter partition.
In this embodiment, the screen parameter data update module is a usb disk or an SD card; the screen parameter data updating module updates the screen parameter data of the EMMC screen parameter partition so as to realize the step S4; the loading bootstrap program is a Uboot program, and the loading bootstrap program module is used for realizing the step S2; the display screen lighting module is used for implementing the step S3.
The above examples are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above examples, and any other changes, modifications, substitutions, combinations, and simplifications that do not depart from the spirit and principle of the present invention should be made in the equivalent manner, and the embodiments are included in the protection scope of the present invention.
Claims (6)
1. A method for implementing screen parameter upgrading of a display screen, comprising the steps of:
s1, writing screen parameter data into an EMMC screen parameter area in advance;
s2, reading screen parameter data in the screen parameter area of the EMMC through loading a guide program; if the screen parameters are successfully read, the screen parameters are transmitted to the kernel, and the step S3 is carried out, otherwise, the step S4 is carried out;
s3, starting a kernel, initializing a display screen controller according to the transmitted screen parameter data, and outputting a new resolution to lighten the display screen;
s4, replacing the screen parameter data by using default screen parameter data when the screen parameter data fails to be read, and updating the screen parameter data of the EMMC screen parameter partition;
step S2, loading a boot program as a Uboot program;
the mechanism for transmitting screen parameter data through Uboot in the step S3 is as follows: when Uboot is started, screen parameter data are transmitted to the kernel by setting a cmdline parameter, and the cmdline parameter is acquired and analyzed when the kernel is started;
step S4, updating screen parameter data of the EMMC screen parameter area through a USB flash disk or an SD card;
s3, S4, transmitting screen parameter data to a kernel initialization LCD screen by using a mechanism for transmitting screen parameter data through Uboot, and outputting specified resolution, wherein the method specifically comprises the following steps:
when the system is started, uboot reads the screen parameter data of the EMMC screen parameter partition to judge, if the read screen parameter data is empty or the screen parameter data is not a standard value, the reading of the screen parameter data fails, and at the moment, the screen parameter data is not written into cmdline and parameter transmission is not carried out; when the kernel is started, if the screen parameter data transmitted by the cmdline is not obtained, initializing by using a parameter value fixed by the kernel code, and if the LCD screen is not matched with a default parameter to cause abnormal display, updating the correct screen parameter data through a U disk or an SD card; when the kernel is started, if screen parameter data transmitted by the cmdline is obtained, judging whether the screen parameter data is the parameter required by the current equipment, and initializing the LCD screen by using the parameter only if the parameter meets the requirement.
2. The method for realizing screen parameter upgrading of a display screen according to claim 1, wherein the process of updating the screen parameter data of the EMMC screen parameter partition by a usb disk or an SD card is as follows:
s41, starting a screen parameter upgrading service process, monitoring the insertion action of the USB flash disk or the SD card in real time, and checking whether a screen parameter file exists in the USB flash disk or the SD card root directory;
s42, after the upgrading service process finds that the screen parameter file exists, reading the screen parameter file data to calculate a CRC check value, reading the CRC check value already stored in the EMMC screen parameter partition, and comparing the two CRC check values; if the screen parameter upgrading is not carried out, the data of the screen parameter partition of the EMMC is null, and the CRC check value in the screen parameter partition of the EMMC is 0; if the CRC check values are different, writing screen parameter data into the screen parameter partition of the EMMC, writing new CRC check values, automatically restarting the system after the CRC check values are written, finishing screen parameter upgrading, and outputting new resolution by the display screen; and if the CRC check value is the same, the screen parameter data is not updated.
3. The method for realizing screen parameter upgrading of a display screen according to claim 2, wherein the screen parameter file in step S41 is a text file.
4. A system for implementing a screen upgrade for a display screen, comprising:
the screen parameter partition of the EMMC, and screen parameter data are written into the screen parameter partition of the EMMC in advance;
the loading guide program module is used for reading screen parameter data in the screen parameter area of the EMMC through loading the guide program; if the screen parameter is successfully read, the screen parameter is transmitted to the kernel; if the screen parameter data fails to be read, replacing the default screen parameter data;
the display screen lighting module starts the kernel when the screen parameter is successfully read, initializes the display screen controller according to the transmitted screen parameter data, and outputs a new resolution to light the display screen;
the screen parameter data updating module is used for updating the screen parameter data of the EMMC screen parameter partition;
the loading bootstrap program is a Uboot program;
the mechanism of the display screen lighting module for transmitting screen parameter data through Uboot is as follows: when Uboot is started, screen parameter data are transmitted to the kernel by setting a cmdline parameter, and the cmdline parameter is acquired and analyzed when the kernel is started; the screen parameter data updating module is a USB flash disk or an SD card;
the display screen lighting module and the screen parameter data updating module are combined, the screen parameter data are transmitted to the kernel initialization LCD screen by using a mechanism of transmitting the screen parameter data through Uboot, and the appointed resolution is output, specifically:
when the system is started, uboot reads the screen parameter data of the EMMC screen parameter partition to judge, if the read screen parameter data is empty or the screen parameter data is not a standard value, the reading of the screen parameter data fails, and at the moment, the screen parameter data is not written into cmdline and parameter transmission is not carried out; when the kernel is started, if the screen parameter data transmitted by the cmdline is not obtained, initializing by using a parameter value fixed by the kernel code, and if the LCD screen is not matched with a default parameter to cause abnormal display, updating the correct screen parameter data through a U disk or an SD card; when the kernel is started, if screen parameter data transmitted by the cmdline is obtained, judging whether the screen parameter data is the parameter required by the current equipment, and initializing the LCD screen by using the parameter only if the parameter meets the requirement.
5. The system for upgrading screen parameters according to claim 4, wherein the process of updating the screen parameters of the EMMC screen parameter section by the screen parameter updating module is as follows:
starting a screen parameter upgrading service process, monitoring the insertion action of the USB flash disk or the SD card in real time, and checking whether a screen parameter file exists in the USB flash disk or the SD card root directory;
after the upgrade service process finds that a screen file exists, reading the screen file data to calculate a CRC (cyclic redundancy check) value, reading the CRC value already stored in the EMMC screen partition, and comparing the two CRC values; if the screen parameter upgrading is not carried out, the data of the screen parameter partition of the EMMC is null, and the CRC check value in the screen parameter partition of the EMMC is 0; if the CRC check values are different, writing screen parameter data into the screen parameter partition of the EMMC, writing new CRC check values, automatically restarting the system after the CRC check values are written, finishing screen parameter upgrading, and outputting new resolution by the display screen; and if the CRC check value is the same, the screen parameter data is not updated.
6. The system for screen upgrades of claim 5, wherein the screen file is a text file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010429092.0A CN111552498B (en) | 2020-05-20 | 2020-05-20 | Method and system for realizing screen parameter upgrading of display screen |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010429092.0A CN111552498B (en) | 2020-05-20 | 2020-05-20 | Method and system for realizing screen parameter upgrading of display screen |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111552498A CN111552498A (en) | 2020-08-18 |
CN111552498B true CN111552498B (en) | 2023-09-12 |
Family
ID=72000327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010429092.0A Active CN111552498B (en) | 2020-05-20 | 2020-05-20 | Method and system for realizing screen parameter upgrading of display screen |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111552498B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114816289B (en) * | 2021-01-27 | 2025-01-03 | 合肥杰发科技有限公司 | Screen initialization method of electronic device and related device |
CN114237506B (en) * | 2021-12-14 | 2023-05-02 | 四川长虹电器股份有限公司 | Method for storing and reading/writing EMMC data |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101181813B1 (en) * | 2012-02-09 | 2012-09-11 | (주)에이치앤에스 | An embedded computer system being capable of changing resolution according a selected lcd pannel |
CN105630465A (en) * | 2014-10-29 | 2016-06-01 | Tcl商用信息科技(惠州)股份有限公司 | Display screen parameter setting method applied to terminal and terminal |
CN109164996A (en) * | 2018-08-10 | 2019-01-08 | 深圳市智微智能科技开发有限公司 | A kind of realization android is from principal point screen method and Related product |
-
2020
- 2020-05-20 CN CN202010429092.0A patent/CN111552498B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101181813B1 (en) * | 2012-02-09 | 2012-09-11 | (주)에이치앤에스 | An embedded computer system being capable of changing resolution according a selected lcd pannel |
CN105630465A (en) * | 2014-10-29 | 2016-06-01 | Tcl商用信息科技(惠州)股份有限公司 | Display screen parameter setting method applied to terminal and terminal |
CN109164996A (en) * | 2018-08-10 | 2019-01-08 | 深圳市智微智能科技开发有限公司 | A kind of realization android is from principal point screen method and Related product |
Also Published As
Publication number | Publication date |
---|---|
CN111552498A (en) | 2020-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20100169709A1 (en) | System Of Updating Firmware And Method Thereof, And Method Of Creating Firmware | |
US8132055B2 (en) | Operating system-firmware interface update recovery | |
US20030221092A1 (en) | Method and system of switching between two or more images of firmware on a host device | |
EP3879399B1 (en) | Method and apparatus for upgrading vehicle-mounted tbox, device, and storage medium | |
CN111552498B (en) | Method and system for realizing screen parameter upgrading of display screen | |
CN101770372A (en) | Firmware updating system, method and firmware constructing method of firmware updating system | |
CN108170457A (en) | Firmware upgrade method, device and VR head-mounted displays | |
CN106210877A (en) | The method for upgrading system of intelligent television and device | |
CN101505331A (en) | Method and apparatus for updating system software of smart phone | |
CN112612528B (en) | System software selective starting and remote updating method based on Bootloader | |
US20220179746A1 (en) | Electronic apparatus and boot method thereof | |
CN103365684A (en) | Updating method and multi-domain embedded system | |
CN117215656A (en) | Linux system-based self-adaptive vehicle chip method and device, electronic equipment and vehicle | |
CN110609695A (en) | Optical module firmware upgrading method and system and optical module | |
CN112395130A (en) | System backup method and device | |
CN113157322A (en) | Method and system for automatically displaying software compiling time | |
CN111897557B (en) | Updating method, device, equipment and storage medium of service system | |
CN113568632A (en) | Server power firmware updating method and device, computer equipment and storage medium | |
CN115586909A (en) | Method, apparatus and storage medium for upgrading or updating software applications | |
CN112667444A (en) | System upgrading method, storage medium and terminal equipment | |
CN109245920B (en) | Automatic switch configuration method and device, switch and storage medium | |
CN111240752B (en) | Operating system self-adaption method and system | |
EP4474983A1 (en) | Memory-partition-based device-startup method and apparatus, and electronic device | |
CN117714281A (en) | Upgrading method and device of switch firmware and related products | |
WO2024089756A1 (en) | Robot teaching console and robot control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |