CN-121996334-A - Display module identification method, electronic equipment and computer readable storage medium
Abstract
The application provides a display module identification method, electronic equipment and a computer readable storage medium, and relates to the technical field of software. The method can accurately distinguish the types of the display modules so as to finish the correct configuration of the display modules, and the electronic equipment has stable display effect. The method comprises the steps of obtaining product IDs of modules to be identified, wherein different display modules have different product IDs, determining the category of the modules to be identified according to the product IDs under the condition that the pre-configuration state of the modules to be identified is the same as that of a first module and the module specification identification of the modules to be identified is the same as that of the first module, wherein the first module is at least one of a plurality of categories of display modules, and the first module is different from the modules to be identified.
Inventors
- WANG TAO
- WEI PENG
Assignees
- 荣耀终端股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241107
Claims (11)
- 1. The display module identification method is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a module to be identified, the module to be identified is any one of a plurality of types of display modules, and the method comprises the following steps: obtaining the product ID of the module to be identified, wherein different display modules have different product IDs; And determining the category of the module to be identified according to the product ID under the condition that the pre-configuration state of the module to be identified is the same as that of a first module and the module specification identification of the module to be identified is the same as that of the first module, wherein the first module is at least one of the display modules of the categories, and the first module is different from the module to be identified.
- 2. The method of claim 1, wherein prior to said determining the class of the module to be identified based on the product ID, the method further comprises: And obtaining the pre-configuration state of the module to be identified.
- 3. The method of claim 2, wherein prior to said determining the class of the module to be identified based on the product ID, the method further comprises: Acquiring a module specification identifier of the module to be identified under the condition that the pre-configuration state of the module to be identified is the same as the pre-configuration state of the first module; and judging whether the module specification identifier of the module to be identified is the same as the module specification identifier of the first module.
- 4. The method of claim 2, wherein prior to said determining the class of the module to be identified based on the product ID, the method further comprises: acquiring the module specification identifiers of the modules to be identified under the condition that the pre-configuration states of the display modules of the multiple categories are the same and the module specification identifiers of at least two display modules in the multiple categories are different; and judging whether the module specification identifier of the module to be identified is the same as the module specification identifier of the first module.
- 5. The method according to any one of claims 1-4, further comprising: and under the condition that the pre-configuration state of the module to be identified is different from the pre-configuration state of a second module, determining the category of the module to be identified according to the pre-configuration state of the module to be identified, wherein the second module is a display module except for the module to be identified in the display modules of the categories.
- 6. The method according to any one of claims 1-4, further comprising: And determining the category of the module to be identified according to the module specification identification of the module to be identified under the condition that the pre-configuration state of the module to be identified is the same as the pre-configuration state of a third module and the module specification identification of the module to be identified is different from the module specification identification of the third module, wherein the third module is a display module except the module to be identified in the display modules of the categories.
- 7. The method according to any one of claims 1-6, wherein the electronic device is configured with a display driver, and the obtaining the product ID of the module to be identified includes: after entering a kernel starting stage, the display driver acquires the product ID of the display module; Under the condition that the pre-configuration state and the module specification identification of the module to be identified are the same as those of the first module, determining the category of the module to be identified according to the product ID comprises the following steps: And the display driver determines the category of the module to be identified according to the product ID under the condition that the pre-configuration state and the module specification identification of the module to be identified and the first module are the same.
- 8. The method of claim 7, wherein prior to the display driver obtaining the product ID of the display module, the method further comprises: After entering a kernel starting stage, initializing the module to be identified by the touch drive; the touch control drive obtains a pre-configuration state of the module to be identified; The display driver obtains the product ID of the display module, including: The display driver sends a request for acquiring a product ID to the touch driver; and the touch control drive sends the product ID of the module to be identified to the display drive.
- 9. The method of claim 8, wherein prior to initializing the module to be identified by the touch driver, the method further comprises: After entering a Unified Extensible Firmware Interface (UEFI) starting stage, a boot start program initializes the touch drive and the display drive; the display driver initializes the module to be identified; And the display driver acquires the pre-configuration state of the module to be identified.
- 10. An electronic device comprising a memory and a processor, the processor coupled with the memory, wherein the memory is configured to store computer program code comprising computer instructions that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-9.
- 11. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-9.
Description
Display module identification method, electronic equipment and computer readable storage medium Technical Field The embodiment of the application relates to the technical field of software, in particular to a display module identification method, electronic equipment and a computer readable storage medium. Background Electronic devices may typically support multiple display modules. The display modules provided by different manufacturers are not uniform in specification, and the initialization configuration information of the drivers and the like used by the display modules of all categories is different. When the display module is connected with the electronic device, the electronic device needs to correctly identify the type of the display module connected with the electronic device so as to correctly load the driving information required by the display module. In the prior art, the electronic device cannot accurately distinguish the category of the display module, so that the driving information cannot be loaded correctly, and the display effect of the electronic device is unstable. Disclosure of Invention The embodiment of the application provides a display module identification method, electronic equipment and a computer readable storage medium, which can accurately distinguish the types of display modules so as to finish the correct configuration of the display modules and ensure that the electronic equipment has a stable display effect. In order to achieve the above purpose, the embodiment of the present application adopts the following technical scheme: In a first aspect, a method for identifying a display module is provided, where the method is applied to an electronic device including a module to be identified, and the module to be identified is any one of a plurality of types of display modules. In the embodiment of the application, the electronic device can acquire the product ID of the module to be identified, the product ID can be used for uniquely identifying the display module, and under the condition that the pre-configuration state of the module to be identified is the same as the pre-configuration state of the first module and the module specification identification of the module to be identified is the same as the module specification identification of the first module (abbreviated as the case 1), the category of the module to be identified is determined according to the product ID, the first module can be at least one of a plurality of categories of display modules, and the first module is different from the module to be identified. For example, the display modules include a display module 1 and a display module 2 with the same preconfigured status and module specification identifiers, and in the case that the module to be identified and the first module are the display module 1 and the display module 2 respectively, the electronic device cannot determine the category of the module to be identified through the preconfigured status and the module specification identifiers, so that the category of the module to be identified is further determined according to the product ID. In addition, the pre-configuration state of the display module may specifically be a pre-configuration state of an ID PIN of the display module. In one possible design, the electronic device may also obtain the product ID of the module to be identified when the preconfigured state of the module to be identified is the same as the preconfigured state of the first module and the module specification identifier of the module to be identified is the same as the module specification identifier of the first module, and then determine the category of the module to be identified according to the product ID. According to the application, the category of the display module is distinguished by introducing the product ID, namely the finer granularity parameter, so that the category of the display module can be accurately identified under different scenes, further the correct configuration of the display module is completed, and the electronic equipment can have a stable display effect. In an implementation manner provided in the first aspect, before the electronic device determines the class of the module to be identified according to the product ID, the electronic device may further obtain the preconfigured state of the module to be identified. In the related art, the electronic device may obtain the preconfigured state of the module to be identified in the UEFI start-up stage, and the scheme provided in this embodiment may be completed in the UEFI stage, that is, the engineer may use the running program in the existing UEFI start-up stage to complete the scheme provided in this embodiment, so as to improve the compatibility of the program. In an implementation manner provided in the first aspect, on the basis of the electronic device obtaining the preconfigured state of the module to be identified, the electronic device may fur