CN109189486B - Display screen driver loading method and device, terminal and storage medium - Google Patents

Display screen driver loading method and device, terminal and storage medium Download PDF

Info

Publication number
CN109189486B
CN109189486B CN201810904308.7A CN201810904308A CN109189486B CN 109189486 B CN109189486 B CN 109189486B CN 201810904308 A CN201810904308 A CN 201810904308A CN 109189486 B CN109189486 B CN 109189486B
Authority
CN
China
Prior art keywords
display screen
panel
identification
identifier
target
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
Application number
CN201810904308.7A
Other languages
Chinese (zh)
Other versions
CN109189486A (en
Inventor
易永鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810904308.7A priority Critical patent/CN109189486B/en
Publication of CN109189486A publication Critical patent/CN109189486A/en
Application granted granted Critical
Publication of CN109189486B publication Critical patent/CN109189486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application discloses a loading method and device of a display screen driver, a terminal and a storage medium, and belongs to the technical field of terminals. The method comprises the following steps: when a starting-up instruction is received, acquiring a hardware identifier of a display screen of the terminal, determining a panel identifier set corresponding to the hardware identifier according to a preset corresponding relation, and loading a target display screen drive corresponding to a target panel identifier in the panel identifier set. According to the embodiment of the application, the panel identification of partial display screen drive can be screened out through the terminal according to the hardware identification, and only the display screen drive corresponding to the partial panel identification needs to be sequentially loaded, so that the loading speed of the display screen drive is increased, and the starting efficiency is improved.

Description

Display screen driver loading method and device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of terminals, in particular to a loading method and device of a display screen driver, a terminal and a storage medium.
Background
The display screen is one of the most important input devices of the terminal, and because the production volume of the terminal is large, in order to prevent the production risk caused by insufficient supply of the display screen by the provider, a plurality of different providers are usually selected for supplying the display screen during the production of the terminal, which may result in that the display screens of the terminals produced by the same manufacturer may be different display screens.
However, for convenience of software integration, the same control software is used when the terminal produced by the same manufacturer refreshes the software, so that the terminal needs to add display drivers of various possible suppliers to the control software, and the display can normally operate only when the display driver is correctly loaded. That is, the terminal needs to sequentially load the display drivers of each possible provider when it is powered on until the display drivers match the display used by the terminal.
Disclosure of Invention
The embodiment of the application provides a loading method and device of a display screen driver, a terminal and a storage medium, which can be used for solving the problem of low starting efficiency caused by the fact that the display screen drivers of all possible suppliers need to be loaded in sequence when the terminal is started. The technical scheme is as follows:
according to a first aspect of the embodiments of the present application, there is provided a display screen driver loading method, for use in a terminal storing n display screen drivers, the method including:
when a starting-up instruction is received, acquiring a hardware identifier of a display screen of the terminal;
determining a panel identification set corresponding to the hardware identification according to a preset corresponding relation, wherein the preset corresponding relation comprises a corresponding relation between the hardware identification and the panel identification set, and the panel identification set comprises m panel identifications;
loading a target display screen drive corresponding to a target panel identification in the panel identification set;
wherein n is a positive integer greater than 1, and m is a positive integer greater than 1 and less than n.
According to a second aspect of the embodiments of the present application, there is provided a display driver loading apparatus for use in a terminal storing n display drivers, the apparatus including:
the terminal comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a hardware identifier of a display screen of the terminal when a starting-up instruction is received;
a determining module, configured to determine, according to a preset correspondence, a panel identifier set corresponding to the hardware identifier, where the preset correspondence includes a correspondence between the hardware identifier and the panel identifier set, and the panel identifier set includes m panel identifiers;
the loading module is used for loading a target display screen drive corresponding to a target panel identifier in the panel identifier set;
wherein n is a positive integer greater than 1, and m is a positive integer greater than 1 and less than n.
According to a third aspect of the embodiments of the present application, there is provided a terminal, where the terminal includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the display screen driver loading method according to any one of the first aspect and the optional embodiments of the present application.
According to a fourth aspect of the embodiments of the present application, there is provided a computer-readable storage medium, in which at least one instruction is stored, where the instruction is loaded and executed by a processor to implement the display screen driver loading method according to the first aspect of the present application and any one of the optional embodiments thereof.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
when a starting-up instruction is received, acquiring a hardware identifier of a display screen of a terminal, determining a panel identifier set corresponding to the hardware identifier according to a preset corresponding relation, and loading a target display screen drive corresponding to a target panel identifier in the panel identifier set; the terminal can screen out part of the display screen driven panel identifications according to the hardware identifications, and only the display screen drives corresponding to the part of the panel identifications need to be loaded in sequence, so that the problem that the starting efficiency is low due to the fact that the display screen drives of all possible suppliers need to be loaded in sequence when the terminal is started in the related technology is solved, the loading speed of the display screen drives is increased, and the starting efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application;
FIG. 2 is a flowchart of a method for loading a display driver according to an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for loading a display driver according to another exemplary embodiment of the present application;
FIG. 4 is a diagram illustrating a second correspondence between a hardware identifier, a software identifier, and a panel identifier according to another exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a loading device of a display screen driver according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" are to be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
At present, the use of terminals such as mobile phones is becoming more and more popular, and the terminals produced by the same manufacturer often have differences in the starting speed of the display screen, for the following reasons: because the terminal often has a large production capacity, in order to prevent the production risk caused by factors such as insufficient supply of the display screen provider, poor supply quality, sudden increase of supply price, and the like, when the terminal is produced, a plurality of different providers are often selected for the display screen, and even four to five different providers are sometimes selected for supply. This results in the possibility of using different display screens for the final manufactured terminal. In addition, when the display screen of the terminal is damaged to the after-sale repair point, the replaced display screen and the display screen of the terminal which is shipped from a factory can be display screens of different suppliers.
However, for the convenience of software integration, the same control software is used when the terminal produced by the same manufacturer refreshes the software, which requires adding display drivers of various possible suppliers to the control software, and the display can normally work only when the display drivers are correctly loaded.
In the related art, the terminal needs to sequentially load the display drivers of the various possible suppliers until the display drivers match the display used by the terminal. For example, there are three possible display screen providers for the terminal: supplier one, supplier two, and supplier three. The terminal loads the corresponding display screen drivers in sequence according to the sequence of the first supplier, the second supplier and the third supplier, if the terminal uses the display screen of the first supplier, the terminal can use the display screen by only loading the driver of the first supplier, if the terminal uses the display screen of the second supplier, the terminal fails when loading the driver of the first supplier and then loads the driver of the second supplier, and if the terminal uses the display screen of the third supplier, the terminal fails when loading the driver of the first supplier and then loads the driver of the second supplier until the driver of the third supplier is loaded and then can use the terminal. It can be seen that for the display screens supplied by multiple suppliers, the loading is fast only when the used display screen is arranged at the front, otherwise, the display screen driver used by the terminal can be successfully loaded after multiple loading failures are required; at present, the loading sequence of each provider driver is fixed (for example, the loading sequence of the provider drivers is arranged according to the time introduced by the provider or according to the supply amount possible by the provider), so that it is very likely that the display driver needs to be loaded many times before the correct display driver can be loaded, and the boot efficiency is low. A fast and efficient loading method for the display driver is not provided.
The embodiment of the application provides a loading method, a loading device, a terminal and a storage medium of a display screen driver, so as to solve the problems in the related art. According to the technical scheme, when a starting-up instruction is received, a hardware identifier of a display screen of a terminal is obtained, a panel identifier set corresponding to the hardware identifier is determined according to a preset corresponding relation, and a target display screen drive corresponding to a target panel identifier in the panel identifier set is loaded; the terminal can screen out part of the display screen driven panel identifications according to the hardware identifications, and only the display screen drives corresponding to the part of the display screen identifications are required to be sequentially loaded, so that the loading speed of the display screen drives is increased, and the starting efficiency is improved.
Before explaining the embodiments of the present application, an application scenario of the embodiments of the present application is explained. Fig. 1 shows a schematic structural diagram of a terminal provided in an exemplary embodiment of the present application.
The terminal 100 is a terminal having a display screen, in which n display screen drivers are stored in advance, where n is a positive integer greater than 1.
Optionally, one display screen drives hardware corresponding to a display screen provided by one vendor. Each display screen driver in the n display screen drivers is used for providing an interface for controlling the display screen, such as opening the display screen, closing the display screen, configuring the display screen, and sending display data to the display screen. The realization form of the interfaces is made according to the hardware of a specific display screen; in the embodiment of the present application, the terminal 100 may use hardware of display screens provided by multiple suppliers, and a plurality of corresponding display screen drivers are stored in the memory 140.
Optionally, the terminal 100 includes: a processor 120 and a memory 140.
Processor 120 may include one or more processing cores. The processor 120 connects various parts within the overall terminal 100 using various interfaces and lines, and performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 140 and calling data stored in the memory 140. Optionally, the processor 120 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 120 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 120, but may be implemented by a single chip.
The Memory 140 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 140 includes a non-transitory computer-readable medium. The memory 140 may be used to store instructions, programs, code sets, or instruction sets. The memory 140 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like; the storage data area may store data and the like referred to in the following respective method embodiments.
Referring to fig. 2, a flowchart of a loading method of a display screen driver according to an exemplary embodiment of the present application is shown. The present embodiment is exemplified by applying the loading method of the display driver to the terminal shown in fig. 1. The loading method of the display screen driver comprises the following steps:
step 201, when a power-on instruction is received, acquiring a hardware identifier of a display screen of a terminal.
And when the terminal receives the starting-up instruction, acquiring a hardware identifier of a display screen of the terminal.
The terminal is a terminal stored with n display screen drivers.
Optionally, the receiving, by the terminal, the power-on instruction includes: and when the terminal detects the triggering operation of the starting-up key, determining to receive a starting-up instruction. Wherein the trigger operation comprises at least one of a pressing operation, a single-click operation and a double-click operation.
Optionally, the hardware identifier is used to uniquely identify the hardware type of the display screen.
Optionally, the hardware identifier of the display screen includes four hardware identifiers, which are a first hardware identifier, a second hardware identifier, a third hardware identifier, and a fourth hardware identifier.
Illustratively, the hardware identifier of the display screen is represented by a two-digit binary number, for example, the hardware identifier of the display screen includes a first hardware identifier "11", a second hardware identifier "10", a third hardware identifier "01", and a fourth hardware identifier "00".
Step 202, determining a panel identifier set corresponding to the hardware identifier according to a preset corresponding relationship, where the preset corresponding relationship includes a corresponding relationship between the hardware identifier and the panel identifier set, and the panel identifier set includes m panel identifiers.
Wherein m is a positive integer greater than 1 and less than n.
The terminal obtains a preset corresponding relation between the hardware identification and the panel identification set, and the terminal determines the panel identification set corresponding to the hardware identification according to the preset corresponding relation.
The panel identification is used for uniquely identifying the display screen drive, n display screen drives are stored in the terminal, and the n display screen drives respectively correspond to one panel identification.
In a possible implementation manner, the preset correspondence between the hardware identifier and the panel identifier set is shown in table one. 12 display screen drivers are stored in the terminal, each of the 12 display screen drivers corresponds to a PANEL identifier, and when the hardware identifier is '11', the corresponding PANEL identifier set comprises a PANEL identifier 'PANEL-A' and a PANEL identifier 'PANEL-B'; when the hardware identifier is 10, the corresponding PANEL identifier set comprises a PANEL identifier 'PANEL-C', a PANEL identifier 'PANEL-D' and a PANEL identifier 'PANEL-E'; when the hardware identifier is 01, the corresponding PANEL identifier set comprises a PANEL identifier 'PANEL-F', a PANEL identifier 'PAN EL-G', a PANEL identifier 'PANEL-H', a PANEL identifier 'PANEL-I' and a PANEL identifier 'PANE L-J'; when the hardware identifier is "00", the corresponding PANEL identifier set includes a PANEL identifier "PANEL-L" and a PANEL identifier "PANEL-M".
Watch 1
Figure BDA0001760233430000071
Optionally, the hardware identifier of the display screen includes four hardware identifiers, and a panel identifier set corresponding to each of the four hardware identifiers is stored in the terminal.
Optionally, the number of panel identifiers in each panel identifier set is the same, or there are at least two panel identifier sets in which the number of panel identifiers is different. There is no intersection between any two panel identification sets, or there is an intersection between at least two panel identification sets. This embodiment is not limited thereto.
Step 203, loading the target display screen driver corresponding to the target panel identifier in the panel identifier set.
Optionally, the terminal sequentially loads display screen drivers corresponding to m panel identifiers in the panel identifier set. And stopping loading when the target display screen corresponding to the target panel identification is loaded by the terminal successfully. The target panel identification is one of the m panel identifications.
In an illustrative example, based on the preset corresponding relationship provided in the first table, when the terminal receives a power-on instruction, the hardware identifier of the display screen is acquired as "00", a PANEL identifier set corresponding to the hardware identifier "00" is acquired, the PANEL identifier set includes a PANEL identifier "PANEL-L" and a PANEL identifier "PANEL-M", the terminal loads the display screen driver corresponding to the PANEL identifier "PANEL-L", if the loading is successful, the loading is stopped, if the loading is failed, the display screen driver corresponding to the PANEL identifier "PANEL-M" is continuously loaded, and if the loading is successful, the loading is stopped.
In summary, in this embodiment, when a power-on instruction is received, a hardware identifier of a display screen of a terminal is obtained, a panel identifier set corresponding to the hardware identifier is determined according to a preset correspondence, and a target display screen driver corresponding to a target panel identifier in the panel identifier set is loaded; the terminal can screen out part of the display screen driven panel identifications according to the hardware identifications, and only the display screen drives corresponding to the part of the panel identifications need to be loaded in sequence, so that the problem that the starting efficiency is low due to the fact that the display screen drives of all possible suppliers need to be loaded in sequence when the terminal is started in the related technology is solved, the loading speed of the display screen drives is increased, and the starting efficiency is improved.
Referring to fig. 3, a flowchart of a loading method of a display screen driver according to an exemplary embodiment of the present application is shown. The present embodiment is exemplified by applying the information presentation method to the terminal shown in fig. 1. The information prompting method comprises the following steps:
step 301, when a power-on instruction is received, acquiring a hardware identifier of a display screen of the terminal.
In a possible implementation manner, when the terminal receives a power-on instruction, the terminal obtains a level signal of the display screen through a General Purpose Input/Output (GPIO) interface of the main chip, and determines a hardware identifier corresponding to the level signal according to the first corresponding relationship. The first corresponding relation comprises the corresponding relation between the level signal and the hardware identification. The hardware identifier is used to uniquely identify the hardware type of the display screen.
Illustratively, when the level signal is a first level, the terminal determines that the hardware identifier corresponding to the first level is a first hardware identifier, when the level signal is a second level, the terminal determines that the hardware identifier corresponding to the second level is a second hardware identifier, when the level signal is a third level, the terminal determines that the hardware identifier corresponding to the third level is a third hardware identifier, and when the level signal is a fourth level, the terminal determines that the hardware identifier corresponding to the fourth level is a fourth hardware identifier. For example, the first hardware is identified as "11", the second hardware is identified as "10", the third hardware is identified as "01", and the fourth hardware is identified as "00".
Step 302, determining a panel identifier set corresponding to the hardware identifier according to a preset corresponding relationship, where the preset corresponding relationship includes a corresponding relationship between the hardware identifier and the panel identifier set, and the panel identifier set includes m panel identifiers.
Wherein m is a positive integer greater than 1 and less than n.
The terminal is pre-stored with a preset corresponding relation between the hardware identifier and the panel identifier set. And after the terminal acquires the hardware identifier, determining a panel identifier set corresponding to the hardware identifier according to a preset corresponding relation.
It should be noted that, the process of determining, by the terminal, the panel identifier set corresponding to the hardware identifier according to the preset corresponding relationship may refer to relevant details in the foregoing embodiment, and details are not described here again.
Step 303, determining the ith panel identifier in the panel identifier set as a target panel identifier, where i is a positive integer with an initial value of 1.
Optionally, the terminal determines the 1 st panel identifier in the panel identifier set as the target panel identifier.
And 304, loading a target display screen driver corresponding to the target panel identifier.
Optionally, the terminal obtains a pre-stored configuration file, determines a sequence number corresponding to the target panel identifier in the configuration file as a target sequence number, and loads the target display screen driver in the memory indicated by the target sequence number.
Optionally, the configuration file is used to indicate the loading order of all display drivers in the terminal. The configuration file comprises sequence numbers corresponding to the n display screen drivers, and the sequence numbers are used for indicating the positions of the display screen drivers in the memory.
In one possible implementation, the configuration file includes a predefined array A [8], as shown in Table two. The array A [8] comprises 8 elements, a first element A [0] for indicating a first position of the display screen driver corresponding to the PANEL identification "PAN EL-A" in the memory for the n display screen drivers, a second element A [1] for indicating a second position of the display screen driver corresponding to the PANEL identification "PANEL-B" in the memory for the n display screen drivers, a third element A [2] for indicating a third position of the display screen driver corresponding to the PANEL identification "PANEL-C" in the memory for the n display screen drivers, and a fourth element A [3] for indicating a fourth position of the display screen driver corresponding to the PANEL identification "PANEL-D" in the memory for the n display screen drivers; the fifth element A [4] is used to indicate the fifth position of the display screen drive corresponding to the PANEL identification "PANEL-E" in the memory for the n display screen drives, the sixth element A [5] is used to indicate the sixth position of the display screen drive corresponding to the PANEL identification "PANEL-F" in the memory for the n display screen drives, the seventh element A [6] is used to indicate the seventh position of the display screen drive corresponding to the PANEL identification "PANEL-G" in the memory for the n display screen drives, and the eighth element A [7] is used to indicate the eighth position of the display screen drive corresponding to the PANEL identification "PANEL-H" in the memory for the n display screen drives.
Watch two
Elements in an array Panel identification
A[0] PANEL-A
A[1] PANEL-B
A[2] PANEL-C
A[3] PANEL-D
A[4] PANEL-E
A[5] PANEL-F
A[6] PANEL-G
A[7] PANEL-H
Step 305, judging whether the target display screen driver is loaded successfully.
The terminal judges whether the target display screen driver is loaded successfully or not, if the target display screen driver is loaded successfully, the target display screen driver is the display screen driver used by the terminal, and step 306 is executed; if the target display screen driver fails to load, go to step 307.
In a possible implementation manner, the determining, by the terminal, whether the target display screen driver is successfully loaded includes: the terminal acquires a first software identifier corresponding to the target panel identifier, acquires a second software identifier of the candidate display screen driver corresponding to the target panel identifier, determines that the target display screen driver is successfully loaded when the second software identifier is consistent with the first software identifier, and executes step 306; and when the second software identifier is inconsistent with the first software identifier, determining that the target display screen driver fails to be loaded, and executing step 307.
The terminal stores the corresponding relation between the panel identification and the software identification in advance, and determines the software identification corresponding to the target panel identification as the first software identification according to the corresponding relation between the panel identification and the software identification.
Optionally, the terminal stores a second correspondence between the hardware identifier, the software identifier, and the panel identifier in advance. In the embodiment of the application, the hardware identifier, the software identifier and the panel identifier have a one-to-one correspondence relationship.
The hardware identification is the identification of the hardware of the display screen, and the software identification is the identification of the control software of the display screen. The panel identification is an identification of the display screen drive and is used for uniquely indicating the display screen drive in the n display screen drives.
In one possible implementation, the second correspondence between the hardware identifier, the software identifier and the panel identifier is as shown in fig. 4. When the hardware is marked as "11" and the software is marked as "0 x 00", the corresponding PANEL is marked as "PANEL-A", and the type of the display screen driver is "IC-A" at the time; when the hardware is marked as "11" and the software is marked as "0 x 01", the corresponding PANEL is marked as "PANEL-B", and the type of the display screen driver is "IC-A" at the time; when the hardware is marked as "10" and the software is marked as "0 x 02", the corresponding PANEL is marked as "PANEL-C", and the type of the display screen driver is "IC-B" at the time; when the hardware is marked as "10" and the software is marked as "0 x 00", the corresponding PANEL is marked as "PANEL-D", and the type of the display screen driver is "IC-B" at the time; when the hardware is marked as '01' and the software is marked as '0 x 03', the corresponding PANEL is marked as 'PANEL-E', and the type of the display screen drive is 'IC-C'; when the hardware is marked as '01' and the software is marked as '0 x 04', the corresponding PANEL is marked as 'PANEL-F', and the type of the display screen drive is 'IC-D'; when the hardware is marked as '00' and the software is marked as '0 x 01', the corresponding panel is marked as 'PANE L-G', and the type of the display screen drive is 'IC-E' at the moment; when the hardware is labeled "00" and the software is labeled "0 x 05", the corresponding PANEL is labeled "PANEL-H", and the type of display driver at this time is "IC-F".
Optionally, there are at least two panel identifiers corresponding to the same hardware identifier, that is, there is a same hardware identifier corresponding to different panel identifiers.
Optionally, the hardware identifiers of at least two display screen drivers are the same, that is, the same hardware identifier corresponds to different display screen drivers.
Optionally, at least two panel identifiers are the same, that is, the same software identifier is different from the different panel identifiers.
Therefore, the panel identifier of the display screen drive cannot be uniquely determined only by the hardware identifier, and the panel identifier of the display screen drive cannot be uniquely determined only by the software identifier. Because the hardware identification, the software identification and the panel identification have a one-to-one correspondence relationship, the panel identification driven by the display screen can be uniquely determined in a mode of 'hardware identification + software identification'.
And step 306, stopping loading when the target display screen driver is loaded successfully.
Optionally, when the second software identifier is consistent with the first software identifier, the terminal determines that the target display screen driver is successfully loaded, and stops loading.
And 307, judging whether i is smaller than m or not when the loading of the target display screen driver fails.
Optionally, when the second software identifier is inconsistent with the first software identifier, the terminal determines that the target display screen drive fails to be loaded, the terminal determines whether i is smaller than m at this time, and if i is smaller than m, the step 308 is executed; if i is equal to m, the process ends.
It should be noted that, step 306 and step 307 are two parallel steps, and one of the steps is executed alternatively, that is, there is no sequential execution order between step 306 and step 307.
And 308, when i is smaller than m, adding 1 to i, redetermining the ith panel identifier in the panel identifier set as the target panel identifier, and continuously executing the step of loading the target display screen driver corresponding to the target panel identifier.
Optionally, when i is smaller than n, the terminal adds 1 to i, redetermines the ith panel identifier in the panel identifier set as the target panel identifier, and continues to execute step 304.
Optionally, the terminal determines the target display screen driver successfully loaded as the candidate display screen driver, loads the candidate display screen driver when the start instruction is received next time, and executes the step of obtaining the hardware identifier of the display screen of the terminal again when the candidate display screen driver fails to be loaded.
Schematically, when the terminal receives a starting-up instruction next time, the candidate display screen driver is loaded first, and if the loading is successful, the loading is stopped; if the loading fails, step 301 is executed again according to the loading method of the display screen driver provided in the embodiment of the present application.
In an illustrative example, based on the correspondence relationship provided in fig. 4, when the terminal receives the power-on instruction, the hardware identifier of the display screen is acquired as "00", and the terminal acquires a PANEL identifier set corresponding to the hardware identifier "00", where the PANEL identifier set includes a PANEL identifier "PANEL-G" and a PANEL identifier "PANEL-H". The terminal determines a first PANEL identification 'PANEL-G' in the PANEL identification set as a target PANEL identification, acquires a pre-stored configuration file, determines a sequence number 'A [7 ]' corresponding to the target PANEL identification 'PANEL-G' in the configuration file as a target sequence number, and loads a target display screen drive in a memory indicated by the target sequence number 'A [7 ]'. The terminal acquires a second software identifier '0X 01' of the candidate display screen driver corresponding to the target PANEL identifier 'PANEL-G', and determines that the target display screen driver is successfully loaded when the second software identifier '0X 01' is consistent with the first software identifier '0X 01'. In the related art, if the display screen driver corresponding to the PANEL identifier "PANEL-G" needs to be loaded when the terminal is turned on, the display screen driver needs to be loaded seven times because the loading sequence of the display screen driver is the seventh, and the display screen driver loading method provided by the embodiment of the present application can be loaded successfully only once.
To sum up, the embodiment of the application also pre-stores the one-to-one correspondence relationship among the hardware identifier, the software identifier and the panel identifier in the terminal, so that the terminal can uniquely determine the panel identifier driven by the display screen in a mode of 'hardware identifier + software identifier', thereby improving the loading speed of the display drive and ensuring the loading accuracy of the display drive.
According to the method and the device, the target display screen driver which is loaded successfully is determined as the candidate display screen driver, and the candidate display screen driver is loaded when the starting instruction is received next time, so that the display screen driver corresponding to the display screen used by the terminal can be loaded first when the terminal is started, the loading speed of the display screen driver is effectively increased, and the starting time length during subsequent starting is shortened.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 5, a schematic structural diagram of a loading device of a display panel driver according to an embodiment of the present application is shown. The loading device of the display screen driver can be implemented by a dedicated hardware circuit, or a combination of hardware and software, to be all or a part of the terminal in fig. 1, where n display screen drivers are stored in the terminal. The loading device of the display screen driver comprises: an acquisition module 510, a determination module 520, and a loading module 530.
An obtaining module 510, configured to obtain a hardware identifier of a display screen of a terminal when a power-on instruction is received;
a determining module 520, configured to determine, according to a preset correspondence, a panel identifier set corresponding to the hardware identifier, where the preset correspondence includes a correspondence between the hardware identifier and the panel identifier set, and the panel identifier set includes m panel identifiers;
a loading module 530, configured to load a target display screen driver corresponding to a target panel identifier in the panel identifier set;
wherein n is a positive integer greater than 1, and m is a positive integer greater than 1 and less than n.
Optionally, the loading module 530 is further configured to determine an ith panel identifier in the panel identifier set as a target panel identifier, where i is a positive integer with an initial value of 1; loading a target display screen driver corresponding to the target panel identifier; stopping loading when the target display screen driver is loaded successfully; when the target display screen drive fails to load and i is smaller than m, adding 1 to i; and re-determining the ith panel identifier in the panel identifier set as a target panel identifier, and continuously executing the step of loading the target display screen driver corresponding to the target panel identifier.
Optionally, the loading module 530 is further configured to obtain a pre-stored configuration file, where the configuration file includes sequence numbers corresponding to the n display screen drivers, and the sequence numbers are used to indicate positions of the display screen drivers in the memory; determining a sequence number corresponding to the target panel identification as a target sequence number in the configuration file; and loading the target display screen drive in the memory indicated by the target sequence number.
Optionally, the loading module 530 is further configured to obtain a first software identifier corresponding to the target panel identifier; acquiring a second software identifier of a candidate display screen drive corresponding to the target panel identifier; when the second software identification is consistent with the first software identification, determining that the target display screen drive is successfully loaded, and stopping loading; and when the second software identification is inconsistent with the first software identification, determining that the target display screen drive fails to be loaded, and when i is smaller than n, adding 1 to i.
Optionally, the obtaining module 510 is further configured to obtain, when a power-on instruction is received, a level signal of the display screen through a GPIO interface of the main chip; and determining a hardware identifier corresponding to the level signal according to the first corresponding relation, wherein the first corresponding relation comprises the corresponding relation between the level signal and the hardware identifier.
Optionally, the apparatus further comprises: the module is loaded again. The reloading module is used for determining the target display screen driver which is loaded successfully as a candidate display screen driver; loading the candidate display screen driver when a starting-up instruction is received next time; and when the loading of the candidate display screen driver fails, executing the step of acquiring the hardware identifier of the display screen of the terminal again.
Optionally, the hardware identifier, the software identifier and the panel identifier have a one-to-one correspondence relationship;
the hardware identification is the identification of the hardware of the display screen, the software identification is the identification of the control software of the display screen, and the panel identification is used for uniquely indicating the display screen drive in the n display screen drives.
The relevant details may be combined with the method embodiments described with reference to fig. 2-4. The obtaining module 510 is further configured to implement any other implicit or public functions related to the obtaining step in the foregoing method embodiments; the determining module 520 is further configured to implement any other implicit or disclosed functionality associated with the determining step in the above method embodiments; the loading module 530 is further configured to implement any other implicit or disclosed functionality related to the loading step in the above method embodiments.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The present application also provides a computer readable medium, on which program instructions are stored, and when the program instructions are executed by a processor, the loading method of the display screen driver provided by the above method embodiments is implemented.
The present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the loading method of the display screen driver according to the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps in the method for loading the display screen driver to implement the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like. The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A loading method of a display screen driver is used in a terminal storing n display screen drivers, and the method comprises the following steps:
when a starting-up instruction is received, acquiring a hardware identifier of a display screen of the terminal;
determining a panel identification set corresponding to the hardware identification according to a preset corresponding relation, wherein the preset corresponding relation comprises a corresponding relation between the hardware identification and the panel identification set, and the panel identification set comprises m panel identifications;
loading a target display screen drive corresponding to a target panel identification in the panel identification set;
wherein n is a positive integer greater than 1, and m is a positive integer greater than 1 and less than n;
the loading of the target display screen driver corresponding to the target panel identifier in the panel identifier set includes:
determining the ith panel identifier in the panel identifier set as the target panel identifier, wherein i is a positive integer with an initial value of 1;
loading the target display screen driver corresponding to the target panel identifier;
stopping loading when the target display screen driver is loaded successfully;
adding 1 to the i when the loading of the target display screen driver fails and the i is smaller than the m; re-determining the ith panel identifier in the panel identifier set as the target panel identifier, and continuing to load the target display screen driver corresponding to the target panel identifier;
the stopping of loading when the target display screen driver is loaded successfully comprises:
the terminal stores the corresponding relation between the panel identification and the software identification, and determines the software identification corresponding to the target panel identification as a first software identification according to the corresponding relation between the panel identification and the software identification;
acquiring a second software identifier of a candidate display screen drive corresponding to the target panel identifier;
when the second software identification is consistent with the first software identification, determining that the target display screen drive is successfully loaded, and stopping loading;
adding 1 to i when the target display screen driver fails to load and i is smaller than m, including:
when the second software identification is inconsistent with the first software identification, determining that the target display screen drive fails to be loaded, and when i is smaller than n, adding 1 to i;
the terminal also stores a second preset corresponding relation among the hardware identification, the software identification and the panel identification, and uniquely determines the panel identification driven by the display screen according to the second preset corresponding relation, the hardware identification and the software identification;
the hardware identification is the identification of the hardware of the display screen, the software identification is the identification of the control software of the display screen, and the panel identification is used for uniquely indicating the display screen drive in the n display screen drives.
2. The method of claim 1, wherein the loading the target display screen driver corresponding to the target panel identifier comprises:
acquiring a pre-stored configuration file, wherein the configuration file comprises sequence numbers corresponding to the n display screen drivers, and the sequence numbers are used for indicating the positions of the display screen drivers in a memory;
determining the sequence number corresponding to the target panel identification in the configuration file as a target sequence number;
loading the target display screen driver in the memory indicated by the target sequence number.
3. The method according to claim 1, wherein the obtaining the hardware identifier of the display screen of the terminal when the power-on instruction is received comprises:
when the starting-up instruction is received, acquiring a level signal of the display screen through a general purpose input/output (GPIO) interface of the main chip;
and determining the hardware identifier corresponding to the level signal according to a first corresponding relationship, wherein the first corresponding relationship comprises a corresponding relationship between the level signal and the hardware identifier.
4. The method of claim 1, wherein after stopping loading when the target display screen driver loading is successful, further comprising:
determining the target display screen driver which is loaded successfully as a candidate display screen driver;
loading the candidate display screen driver when the starting-up instruction is received next time;
and when the loading of the candidate display screen drive fails, executing the step of acquiring the hardware identifier of the display screen of the terminal again.
5. A loading device of a display screen driver, which is used in a terminal storing n display screen drivers, the device comprising:
the terminal comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a hardware identifier of a display screen of the terminal when a starting-up instruction is received;
a determining module, configured to determine, according to a preset correspondence, a panel identifier set corresponding to the hardware identifier, where the preset correspondence includes a correspondence between the hardware identifier and the panel identifier set, and the panel identifier set includes m panel identifiers;
the loading module is used for loading a target display screen drive corresponding to a target panel identifier in the panel identifier set;
wherein n is a positive integer greater than 1, and m is a positive integer greater than 1 and less than n;
the loading module is further configured to determine an ith panel identifier in the panel identifier set as the target panel identifier, where i is a positive integer with an initial value of 1; loading the target display screen driver corresponding to the target panel identifier; stopping loading when the target display screen driver is loaded successfully; adding 1 to the i when the loading of the target display screen driver fails and the i is smaller than the m; re-determining the ith panel identifier in the panel identifier set as the target panel identifier, and continuing to load the target display screen driver corresponding to the target panel identifier;
the terminal stores the corresponding relation between the panel identification and the software identification, and the loading module is also used for determining the software identification corresponding to the target panel identification as a first software identification according to the corresponding relation between the panel identification and the software identification; acquiring a second software identifier of a candidate display screen drive corresponding to the target panel identifier; when the second software identification is consistent with the first software identification, determining that the target display screen drive is successfully loaded, and stopping loading; when the second software identification is inconsistent with the first software identification, determining that the target display screen drive fails to be loaded, and when i is smaller than n, adding 1 to i;
the terminal also stores a second preset corresponding relation among the hardware identification, the software identification and the panel identification, and uniquely determines the panel identification driven by the display screen according to the second preset corresponding relation, the hardware identification and the software identification;
the hardware identification is the identification of the hardware of the display screen, the software identification is the identification of the control software of the display screen, and the panel identification is used for uniquely indicating the display screen drive in the n display screen drives.
6. A terminal, characterized in that the terminal comprises a processor, a memory connected to the processor, and program instructions stored on the memory, the processor implementing the loading method of the display screen driver according to any one of claims 1 to 4 when executing the program instructions.
7. A computer-readable storage medium, having stored thereon program instructions, which when executed by a processor, implement the loading method of the display screen driver according to any one of claims 1 to 4.
CN201810904308.7A 2018-08-09 2018-08-09 Display screen driver loading method and device, terminal and storage medium Active CN109189486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810904308.7A CN109189486B (en) 2018-08-09 2018-08-09 Display screen driver loading method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810904308.7A CN109189486B (en) 2018-08-09 2018-08-09 Display screen driver loading method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109189486A CN109189486A (en) 2019-01-11
CN109189486B true CN109189486B (en) 2021-12-10

Family

ID=64921346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810904308.7A Active CN109189486B (en) 2018-08-09 2018-08-09 Display screen driver loading method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109189486B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308941A (en) * 2019-07-03 2019-10-08 深圳市海邻科信息技术有限公司 BIOS compatibility method, device, terminal and computer storage medium without EDID screen
CN110362360A (en) * 2019-07-15 2019-10-22 惠州Tcl移动通信有限公司 Driver loading method, device, mobile terminal and storage medium
CN110888689B (en) * 2019-12-09 2023-10-20 福智易车联网(宁波)有限公司 Touch screen drive loading method, storage medium and terminal equipment
CN113849237A (en) * 2021-09-26 2021-12-28 高创(苏州)电子有限公司 Driving method and device of touch module and display equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932918A (en) * 2015-06-02 2015-09-23 惠州Tcl移动通信有限公司 Mobile terminal and loading method for LCD driver of same
CN105188048A (en) * 2015-07-31 2015-12-23 上海海漾软件技术有限公司 Method, device and terminal equipment for loading customized applications for mobile terminal
CN105302371A (en) * 2015-11-02 2016-02-03 Tcl移动通信科技(宁波)有限公司 Method and system for controlling driver loading of touch screen of mobile terminal
CN107589975A (en) * 2017-09-29 2018-01-16 惠州Tcl移动通信有限公司 Detection method, mobile terminal and the storage medium of fingerprint sensor drive load
CN107632948A (en) * 2017-09-22 2018-01-26 惠州Tcl移动通信有限公司 Mobile terminal and USB drivings set processing method and storage medium
CN107704282A (en) * 2017-09-15 2018-02-16 北京东土科技股份有限公司 A kind of loading method and device applied to embedded system
CN108279937A (en) * 2018-01-23 2018-07-13 广东欧珀移动通信有限公司 Call method, device, storage medium and the electronic equipment of parameter

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932918A (en) * 2015-06-02 2015-09-23 惠州Tcl移动通信有限公司 Mobile terminal and loading method for LCD driver of same
CN105188048A (en) * 2015-07-31 2015-12-23 上海海漾软件技术有限公司 Method, device and terminal equipment for loading customized applications for mobile terminal
CN105302371A (en) * 2015-11-02 2016-02-03 Tcl移动通信科技(宁波)有限公司 Method and system for controlling driver loading of touch screen of mobile terminal
CN107704282A (en) * 2017-09-15 2018-02-16 北京东土科技股份有限公司 A kind of loading method and device applied to embedded system
CN107632948A (en) * 2017-09-22 2018-01-26 惠州Tcl移动通信有限公司 Mobile terminal and USB drivings set processing method and storage medium
CN107589975A (en) * 2017-09-29 2018-01-16 惠州Tcl移动通信有限公司 Detection method, mobile terminal and the storage medium of fingerprint sensor drive load
CN108279937A (en) * 2018-01-23 2018-07-13 广东欧珀移动通信有限公司 Call method, device, storage medium and the electronic equipment of parameter

Also Published As

Publication number Publication date
CN109189486A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109189486B (en) Display screen driver loading method and device, terminal and storage medium
CN105554547B (en) The method and system of display screen adaptive configuration
CN107704282B (en) Loading method and device applied to embedded system
CN110597675B (en) Chip testing method, device, storage medium and burner
CN102722394A (en) Start upgrading method of embedded equipment
CN111221489B (en) Method, device, equipment and medium compatible with various models of display screens
CN105740010A (en) Power-on method and terminal equipment
CN102486733A (en) Method and device for upgrading boot program
CN109684125B (en) Method, device, equipment and storage medium for repairing DDR physical damage
US20160092201A1 (en) Method and Device for Updating Program Data
CN114816305A (en) Synchronous display method, device, display system and medium of multi-screen equipment
CN112506745A (en) Memory temperature reading method and device and computer readable storage medium
CN109002331A (en) Starting method, apparatus, computer equipment and the storage medium of touch screen
CN113867743B (en) Network operating system loading and burning method and device, electronic equipment and storage medium
CN109285495B (en) Electric appliance and screen driving method and device thereof
CN103440334A (en) Driver matching method and device of mobile terminal
CN114153477A (en) Method, device, system, equipment and medium for upgrading firmware of PCIE (peripheral component interface express) driver card
CN114546537B (en) Starting sequence deployment method and related device for multiple operating systems
CN112799683A (en) Terminal device program programming and testing method
US7406549B2 (en) Support for non-standard device containing operating system data
CN115587026A (en) Chip testing method and device, storage medium and chip
CN109254798A (en) Server starts method, apparatus, server and computer readable storage medium
US20070074075A1 (en) Computer program testing method
CN110764837A (en) Method and device for starting equipment
CN103019753A (en) Starting control method and device for mobile terminal and mobile terminal

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