Display data processing method, device, electronic device and storage medium

By converting the initialization command after changing the mobile phone screen, the problem of abnormal display after changing the screen is solved, and the adaptability of the screen is improved.

CN114816310BActive Publication Date: 2025-04-18SHENZHEN AIXIESHENG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210438245.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2025-04-18
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

In the prior art, after the mobile phone screen is replaced, due to differences in driver ICs, directly sending the original screen initialization information will lead to abnormal display, resulting in poor screen universality.

Method used

By obtaining the first initialization instruction and determining whether it is an initialization instruction for the first screen, if so, it is determined whether the screen display parameter is a necessary command parameter of the screen driving element of the second screen. If so, the first initialization instruction is converted into the second initialization instruction corresponding to the second screen according to the preset conversion protocol.

Benefits of technology

The problem of abnormal display after changing the screen is solved, and the adaptability of the screen is improved, so that the second screen can be displayed normally based on the converted initialization command.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816310B_ABST
    Figure CN114816310B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, electronic device, storage medium and computer program product for processing display data. The method comprises: obtaining a first initialization instruction, the first initialization instruction carrying a screen display parameter; if the first initialization instruction is an initialization instruction for a first screen, determining whether the screen display parameter is a required command parameter of a screen driving element of a second screen; if the screen display parameter is a required command parameter of the screen driving element of the second screen, converting the first initialization command into a second initialization command corresponding to the second screen according to a preset conversion protocol. The use of this method can improve the adaptability of the screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of liquid crystal display technology, and in particular to a method, device, electronic device, storage medium and computer program product for processing display data. Background Art

[0002] With the development of liquid crystal display technology, mobile phones are becoming more and more popular in people's daily lives. Mobile phone screens are fragile consumables. When a mobile phone screen is damaged and needs to be repaired, it may be impossible to find the original screen due to various reasons. In this case, a screen of suitable size will generally be selected for repair.

[0003] Currently, some screens do not have the initialization information burned into the driver IC. For such screens, the mobile phone needs to send the initialization information to the driver IC register of the screen to drive the new screen display. However, when the mobile phone directly sends the initialization information to the driver IC register, since it is not the original screen, the new screen will produce display anomalies due to differences in the driver IC, resulting in poor screen versatility. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, electronic device, computer-readable storage medium and computer program product for processing display data that can improve screen adaptability in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for processing display data, the method comprising:

[0006] Obtaining a first initialization instruction, where the first initialization instruction carries a screen display parameter;

[0007] If the first initialization instruction is an initialization instruction for the first screen, determining whether the screen display parameter is a necessary command parameter of a screen driving element of the second screen;

[0008] If the screen display parameter is a required command parameter of the screen driving element of the second screen, the first initialization instruction is converted into a second initialization instruction corresponding to the second screen according to a preset conversion protocol.

[0009] In one embodiment, the method of determining whether the first initialization instruction is an initialization instruction for the first screen includes:

[0010] Matching the first initialization instruction with a preset initialization instruction set of the first screen;

[0011] When the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen, it is determined that the first initialization instruction is an initialization instruction for the first screen.

[0012] In one embodiment, the preset initialization instruction set includes at least two preset initialization instructions; matching the first initialization instruction with the preset initialization instruction set of the first screen includes: performing a numerical conversion on the first initialization instruction to obtain an initial numerical conversion result; performing a numerical conversion on each of the preset initialization instructions to obtain at least two preset numerical conversion results; matching the initial numerical conversion result with each of the preset numerical conversion results; accordingly, when the initial numerical conversion result is the same as the numerical value of at least one of the preset numerical conversion results, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

[0013] In one embodiment, the preset initialization instruction set also includes preset screen display parameters corresponding to each of the preset initialization instructions; matching the first initialization instruction with the preset initialization instruction set of the first screen also includes: performing numerical conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result; performing numerical conversion on each of the preset screen display parameters to obtain at least two preset screen display parameter conversion results; matching the screen display parameter conversion result with each of the preset screen display parameter conversion results; accordingly, when the initial numerical conversion result and the numerical value of at least one of the preset numerical conversion results are the same, and the screen display parameter conversion result and the numerical value of at least one of the preset screen display parameter conversion results are the same, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

[0014] In one of the embodiments, determining whether the screen display parameters are required command parameters of the screen driving element of the second screen includes: matching the screen display parameters with screen display information of the screen driving element of the second screen, and determining whether the screen display parameters hit the screen display information of the screen driving element of the second screen, the screen display information of the screen driving element of the second screen including at least one of screen resolution, driving power supply voltage, driving timing and gamma voltage parameters.

[0015] In one of the embodiments, the preset conversion protocol is a mapping relationship between multiple screen identifiers and target screen display parameters, and the multiple screen identifiers include at least the screen identifier of the second screen; converting the first initialization instruction into a second initialization instruction corresponding to the second screen according to the preset conversion protocol includes: determining the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization instruction based on the mapping relationship between the multiple screen identifiers and the target screen display parameters; converting the screen display parameters carried by the first initialization instruction into the target screen display parameters to obtain the second initialization instruction.

[0016] In one embodiment, the method further includes: if the screen display parameter is a non-essential command parameter of the screen driving element of the second screen, shielding the first initialization instruction.

[0017] In a second aspect, the present application further provides a display data processing device, the device comprising:

[0018] An instruction acquisition module, used to acquire a first initialization instruction, wherein the first initialization instruction carries a screen display parameter;

[0019] an instruction processing module, configured to determine whether the screen display parameter is a necessary command parameter of a screen driving element of a second screen if the first initialization instruction is an initialization instruction for the first screen;

[0020] The instruction conversion module is used to convert the first initialization instruction into a second initialization instruction corresponding to the second screen according to a preset conversion protocol if the screen display parameter is a necessary command parameter of the screen driving element of the second screen.

[0021] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned display data processing method when executing the computer program.

[0022] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the above-mentioned method for processing display data.

[0023] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned display data processing method are implemented.

[0024] The above-mentioned display data processing method, device, electronic device, storage medium and computer program product, on the one hand, by obtaining a first initialization instruction, and when determining that the first initialization instruction is an initialization instruction for the first screen, judging whether the screen display parameter carried by the first initialization instruction is a necessary command parameter of the screen driving element of the second screen, wherein the first screen and the second screen are different, so that after the screen is replaced, the first initialization instruction will not be directly sent to the second screen, avoiding the situation that when the first initialization instruction is an initialization instruction for the first screen, if it is directly sent to the second screen, it will cause abnormal screen display. On the other hand, when determining that the screen display parameter is a necessary command parameter of the screen driving element of the second screen, the first initialization instruction is converted into a second initialization instruction corresponding to the second screen according to a preset conversion protocol, so that when the second screen is different from the first screen, the second screen can also be displayed normally based on the corresponding second initialization instruction. Therefore, the adaptability of the screen can be improved by the above method. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 A diagram showing an application environment of a method for processing display data in one embodiment;

[0026] Figure 2 A schematic diagram of a flow chart of a method for processing display data in one embodiment;

[0027] Figure 3 A schematic diagram of a flow chart of a method for processing display data in one embodiment;

[0028] Figure 4 A schematic diagram of a flow chart of a method for processing display data in one embodiment;

[0029] Figure 5 is a structural block diagram of a display data processing device in one embodiment;

[0030] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0032] The display data processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in the figure, Figure 1The electronic device 102 and the LCD (liquid crystal display) display module 104 are involved, wherein the LCD display module 104 is integrated with a controller 106 and a driving element 108, the electronic device 102 can send an initialization instruction to the LCD display module 104, the controller 106 in the LCD display module 104 can receive the initialization instruction sent by the electronic device 102, and after processing the initialization instruction, send it to the driving element 108, and the driving element 108 downloads it to the driving element register, so that the LCD display module 104 can be displayed normally through the initialization instruction. Among them, the electronic device 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The controller 106 can use a control motherboard, and the control motherboard can be provided with devices such as CPU (Central Processing Unit, central processing unit), MCU (Micro Control Unit, micro control unit).

[0033] Specifically, the controller 106 obtains a first initialization instruction sent by the electronic device 102, and the first initialization instruction carries a screen display parameter; if the first initialization instruction is an initialization instruction for the first screen, it is determined whether the screen display parameter is a required command parameter of the screen driving element of the second screen; if the screen display parameter is a required command parameter of the screen driving element of the second screen, the first initialization instruction is converted into a second initialization instruction corresponding to the second screen according to a preset conversion protocol.

[0034] Among them, in the field of liquid crystal displays, screens are fragile consumables. Therefore, when repairing them, due to various reasons, it may be impossible to find the original screen for repair. In this case, a screen with a matching size is generally selected for repair. Since some screens have not burned the initialization information into the driver IC, it is necessary to send an initialization instruction to the replaced screen through a mobile phone to drive the replaced screen for display. Since the driving elements of the replaced screen are different from those of the original screen, using the initialization information originally adapted to the original screen to drive the replaced screen will result in display abnormalities. Since mobile phones are becoming more and more popular in people's daily lives, and mobile phone screens are fragile consumables, the electronic device involved in the embodiments of the present application may be a mobile phone.

[0035] In one embodiment, Figure 2 As shown, a method for processing display data is provided, and the method is applied to Figure 1The controller 106 in the embodiment is taken as an example to illustrate, and the following steps are included:

[0036] Step S202: Obtain a first initialization instruction, where the first initialization instruction carries screen display parameters.

[0037] Among them, the first initialization instruction may refer to an instruction for driving the screen display. Specifically, the first initialization instruction may include an instruction for setting the screen resolution, or an instruction for setting the driving power supply voltage. The first initialization instruction may be an instruction sent to the controller via any mobile device such as a mobile phone or a computer, so that the controller can obtain the first initialization instruction.

[0038] The first initialization instruction carries screen display parameters, and the screen display parameters may refer to specific parameters that need to be set when setting the screen according to the first initialization instruction.

[0039] In one embodiment, when the first initialization instruction is an instruction for setting the screen resolution, the screen display parameter may refer to a specific value of the screen resolution that needs to be set; when the first initialization instruction is an instruction for setting the driving power supply voltage, the first initialization instruction may refer to a specific value of the driving power supply voltage that needs to be set.

[0040] Step S204: if the first initialization instruction is an initialization instruction for the first screen, determine whether the screen display parameter is a required command parameter of the screen driving element of the second screen.

[0041] Among them, the first screen may refer to the original screen of the mobile phone, and the initialization instruction of the first screen refers to the instruction that can drive the first screen to display normally. For example, the initialization instruction of the first screen may be a screen resolution instruction, a driving timing instruction, etc. The initialization instruction of the first screen may also be a driving power supply voltage instruction, a Gamma voltage instruction, etc. The initialization instruction of the first screen may also be a screen resolution instruction, a driving timing instruction, a driving power supply voltage instruction, a Gamma voltage instruction, etc., that is, the initialization instruction of the first screen is related to the display properties of the first screen itself.

[0042] Among them, the necessary command parameters refer to the necessary parameters that enable the screen driving element to drive the screen to display normally, and the necessary command parameters of the screen driving element of the second screen refer to the necessary parameters that enable the screen driving element of the second screen to enable the second screen to display normally. Among them, the necessary command parameters are determined according to the screen display properties of the screen. For example, if some screens are to display normally, it may be necessary to set the Gamma voltage, while some screens may not need to set the Gamma voltage for normal display. Therefore, the necessary command parameters are also determined according to the actual display properties of different screens.

[0043] Step S206: if the screen display parameter is a required command parameter of the screen driving element of the second screen, converting the first initialization instruction into a second initialization instruction corresponding to the second screen according to a preset conversion protocol.

[0044] The preset conversion protocol refers to a preset protocol that can convert the first initialization instruction. The preset conversion protocol can refer to a set conversion rule or a set mapping relationship, etc. The preset conversion protocol can be set according to actual circumstances.

[0045] When the screen display parameters are required command parameters of the screen driving element of the second screen, it means that the screen display parameters carried by the first initialization instruction will affect the normal display of the second screen. Therefore, the first initialization instruction can be converted into a second initialization instruction corresponding to the second screen according to the preset conversion protocol, so that the second screen can be displayed normally based on the instructions sent by the mobile phone.

[0046] In one of the embodiments, the first screen may be the original screen of the mobile phone, and the second screen may be a replacement screen of the mobile phone. After the original screen of the mobile phone is damaged, the second screen may be used as the display screen of the mobile phone. However, since the initialization information that drives the screen display of the mobile phone is adapted to the driving element of the first screen, when the first initialization instruction sent by the mobile phone is an initialization instruction for the first screen, and the screen display parameters are required command parameters of the screen driving element of the second screen, if it is directly sent to the driving element of the second screen, the second screen will display abnormally due to the difference in the driving elements. At this time, the problem of abnormal display of the second screen can be solved by converting the first initialization instruction into the second initialization instruction corresponding to the second screen through a preset conversion protocol.

[0047] In the above-mentioned method for processing display data, on the one hand, by obtaining the first initialization instruction, and when determining that the first initialization instruction is an initialization instruction for the first screen, it is determined whether the screen display parameter carried by the first initialization instruction is a necessary command parameter of the screen driving element of the second screen, wherein the first screen and the second screen are different, so that after the screen is replaced, the first initialization instruction will not be directly sent to the second screen, avoiding the situation that when the first initialization instruction is an initialization instruction for the first screen, if it is directly sent to the second screen, it will cause abnormal screen display. On the other hand, when determining that the screen display parameter is a necessary command parameter of the screen driving element of the second screen, the first initialization instruction is converted into the second initialization instruction corresponding to the second screen according to the preset conversion protocol, so that when the second screen is different from the first screen, the second screen can also be displayed normally based on the corresponding second initialization instruction. Therefore, the adaptability of the screen can be improved by the above-mentioned method.

[0048] In one of the embodiments, a method for determining whether the first initialization instruction is an initialization instruction for the first screen includes: matching the first initialization instruction with a preset initialization instruction set for the first screen; when the first initialization instruction hits at least one instruction in the preset initialization instruction set for the first screen, determining that the first initialization instruction is an initialization instruction for the first screen.

[0049] Among them, the preset initialization instruction set refers to the instructions configured by the controller according to the initialization instruction of the first screen. If it is necessary to determine whether the first initialization instruction is an initialization instruction for the first screen, the first initialization instruction can be matched with the preset initialization instruction set to obtain a matching result, wherein the matching result can be that the first initialization instruction is an initialization instruction for the first screen, and the matching result can also be that the first initialization instruction is not an initialization instruction for the first screen. Therefore, through the above method, the first initialization instruction sent by the mobile phone can be judged, so as to identify the first initialization instruction adapted to the first screen, avoiding the situation where the first initialization instruction adapted to the initialization instruction of the first screen is directly issued, resulting in abnormal display of the second screen.

[0050] In one of the embodiments, the controller is integrated with a Catch Command module, and a preset initialization instruction set can be configured through the Catch Command module.

[0051] In one embodiment, the preset initialization instruction set includes at least two preset initialization instructions, and matching the first initialization instruction with the preset initialization instruction set of the first screen includes:

[0052] Step S302, performing numerical conversion on the first initialization instruction to obtain an initial numerical conversion result.

[0053] The numerical conversion refers to the conversion of the form, base or format of the first initialization instruction, and the specific numerical conversion method can be determined according to the form of the first initialization instruction. For example, if the first initialization instruction can be in hexadecimal form, the hexadecimal first initialization instruction can be converted into a decimal value to obtain the initial numerical conversion result corresponding to the first initialization instruction.

[0054] Step S304, performing numerical conversion on each of the preset initialization instructions to obtain at least two preset numerical conversion results.

[0055] Correspondingly, each preset initialization instruction can also be converted between bases, such as converting a hexadecimal preset initialization instruction into a decimal value. Since there are at least two preset initialization instructions, there are at least two preset value conversion results.

[0056] Step S306, matching the initial numerical value conversion result with each of the preset numerical value conversion results.

[0057] Among them, after obtaining the initial numerical conversion result and each preset numerical conversion result, the initial numerical conversion result and each preset numerical conversion result can be numerically matched. For example, the initial numerical conversion result of the first initialization instruction is a decimal value, and each preset numerical conversion result is also a decimal value. The matching process can be to compare the size of the initial numerical conversion result and each preset numerical conversion result.

[0058] Step S308: When the initial numerical value conversion result is the same as the value of at least one of the preset numerical value conversion results, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

[0059] Among them, after matching the initial value conversion result with each preset value conversion result, if the initial value conversion result has the same value as at least one preset value conversion result, it can be determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen. Thus, through the above method, it is determined whether the first initialization instruction is related to the initialization instruction of the first screen, so that subsequent processing can be performed.

[0060] On the basis of the above embodiment, the preset initialization instruction set further includes preset screen display parameters corresponding to each preset initialization instruction, that is, each preset initialization instruction carries the preset screen display parameters.

[0061] The matching the first initialization instruction with a preset initialization instruction set of the first screen further includes:

[0062] Step S402, performing numerical conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result.

[0063] Among them, numerical conversion can also be performed on the screen display parameters. For example, if the screen display parameters carried by the first initialization instruction can be in hexadecimal form, the hexadecimal screen display parameters can be converted into decimal values ​​to obtain the initial numerical conversion results corresponding to the screen display parameters.

[0064] Step S404: performing numerical conversion on each of the preset screen display parameters to obtain at least two preset screen display parameter conversion results.

[0065] Correspondingly, the preset screen display parameters carried by each preset initialization instruction can also be converted between bases, such as converting the hexadecimal preset screen display parameters into decimal values. Since there are at least two preset screen display parameters, there are at least two preset screen display parameter conversion results obtained.

[0066] Step S406: Match the screen display parameter conversion result with each of the preset screen display parameter conversion results.

[0067] Among them, after obtaining the screen display parameter conversion result and each preset screen display parameter conversion result, the screen display parameter conversion result and each preset screen display parameter can be numerically matched. For example, the screen display parameter conversion result of the first initialization instruction is a decimal value, and each preset screen display parameter is also a decimal value. The matching process can be to compare the size of the screen display parameter conversion result and each preset screen display parameter conversion result.

[0068] Step S408, accordingly, when the initial numerical value conversion result and the at least one preset numerical value conversion result have the same numerical value, and the screen display parameter conversion result and the at least one preset screen display parameter conversion result have the same numerical value, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

[0069] Among them, after matching the screen display parameter conversion result with each preset screen display parameter conversion result, if the initial value conversion result is the same as the value of at least one preset value conversion result, and the screen display parameter conversion result is the same as the value of at least one preset screen display parameter conversion result, it can be determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen. Therefore, through the above method, since not only the initialization instructions are compared, but also the screen display parameters are compared, the accuracy of the comparison result can be improved.

[0070] In one of the embodiments, determining whether the screen display parameters are required command parameters of the screen driving element of the second screen includes: matching the screen display parameters with screen display information of the screen driving element of the second screen, and determining whether the screen display parameters hit the screen display information of the screen driving element of the second screen, the screen display information of the screen driving element of the second screen including at least one of screen resolution, driving power supply voltage, driving timing and gamma voltage parameters.

[0071] Among them, screen display information refers to information related to screen display, and the screen display information is related to the driving elements of the screen. For example, for screen A to display normally, the screen display information that may be required may be three types of parameters: a parameter, b parameter, and c parameter, while for screen B to display normally, only parameters a and b may be required. Generally, the screen display information includes at least one of screen resolution, driving power supply voltage, driving timing, and gamma voltage parameters.

[0072] In one of the embodiments, if the first initialization instruction is an initialization instruction for the first screen, the specific method of processing the first initialization instruction can be determined by judging whether the screen display parameters are necessary command parameters of the screen driving element of the second screen. When judging whether the screen display parameters are necessary command parameters of the driving element of the second screen, the screen display parameters can be matched with the screen display information of the second screen to obtain a matching result.

[0073] Therefore, when the matching result is that the screen display parameter is a necessary command parameter of the driving element of the second screen, in one embodiment, the preset conversion protocol is a mapping relationship between multiple screen identifiers and target screen display parameters, and the multiple screen identifiers at least include the screen identifier of the second screen; converting the first initialization instruction into a second initialization instruction corresponding to the second screen according to the preset conversion protocol includes:

[0074] Determining, based on a mapping relationship between the plurality of screen identifiers and the target screen display parameters, the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization instruction;

[0075] The screen display parameters carried by the first initialization instruction are converted into the target screen display parameters to obtain a second initialization instruction.

[0076] Among them, the mapping relationship between multiple screen identifiers and target screen display parameters can be: screen A corresponds to the corresponding target screen display parameters, screen B corresponds to the corresponding target screen display parameters..., wherein the target screen display parameters can be one or more. Based on the mapping relationship between multiple screen identifiers and target screen display parameters, the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization instruction can be determined, and the screen display parameters carried by the first initialization instruction are converted into the target screen display parameters to obtain the second initialization instruction. Specifically, the screen display parameters of the first initialization instruction are screen resolution parameters. Based on the mapping relationship, the target screen resolution parameters of the second screen are found, and the screen display parameters carried by the first initialization instruction are converted into the target screen resolution parameters of the second screen. Therefore, when the second screen is not an original screen, the second screen can also be displayed normally based on the corresponding second initialization instruction.

[0077] Therefore, when the matching result is that the screen display parameter is not a required command parameter of the driving element of the second screen, in one embodiment, the method further includes: if the screen display parameter is a non-required command parameter of the screen driving element of the second screen, the first initialization instruction is shielded.

[0078] Among them, the screen display parameters are non-essential command parameters of the screen driving element of the second screen, which means that the first initialization instruction has almost no effect on the display of the second screen. In order to prevent unpredictable hidden dangers, the first initialization instruction can be shielded to increase the stability of the screen display.

[0079] In one of the embodiments, the relevant steps of the method for processing display data in a specific embodiment are described as follows:

[0080] First, this embodiment involves a mobile phone, and an LCD (liquid crystal display) display module that is replaced after the original screen of the mobile phone is damaged, wherein the LCD display module is integrated with a controller and a driving element, and the mobile phone can send an initialization instruction to the LCD display module, and the controller in the LCD display module can receive the initialization instruction sent by the mobile phone, and after processing the initialization instruction, send it to the driving element, and the driving element 108 downloads it to the driving element register, so that the LCD display module can display normally through the initialization instruction.

[0081] After the mobile phone is turned on and woken up, the CPU of the mobile phone can send a first initialization instruction to the controller of the LCD display module through the interface, where the first initialization instruction can refer to an instruction for driving the screen display. Specifically, the first initialization instruction can include an instruction for setting the screen resolution, or an instruction for setting the driving power supply voltage. The first initialization instruction can be an instruction sent to the controller through any mobile device such as a mobile phone or a computer, so that the controller can obtain the first initialization instruction.

[0082] After receiving the first initialization instruction, the controller can determine whether the first initialization instruction is an initialization instruction for the first screen. Specifically, the first initialization instruction can be matched with a preset initialization instruction set for the first screen; when the first initialization instruction hits at least one instruction in the preset initialization instruction set for the first screen, it is determined that the first initialization instruction is an initialization instruction for the first screen.

[0083] After determining that the first initialization instruction is an initialization instruction for the first screen, it is determined whether the screen display parameters are necessary command parameters of the screen driving element of the second screen. Specifically, the screen display parameters are matched with the screen display information of the screen driving element of the second screen to determine whether the screen display parameters hit the screen display information of the screen driving element of the second screen. The screen display information of the screen driving element of the second screen includes at least one of screen resolution, driving power supply voltage, driving timing and gamma voltage parameters.

[0084] When the matching result is that the screen display parameter is a required command parameter of the driving element of the second screen, based on the mapping relationship between the multiple screen identifiers and the target screen display parameters, the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization instruction can be determined, and the screen display parameters carried by the first initialization instruction are converted into the target screen display parameters to obtain the second initialization instruction. Therefore, when the second screen is not an original screen, the second screen can also be displayed normally based on the corresponding second initialization instruction.

[0085] When the matching result is that the screen display parameter is not a necessary command parameter of the driving element of the second screen, the first initialization instruction is shielded to increase the stability of the screen display.

[0086] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0087] Based on the same inventive concept, the embodiment of the present application also provides a display data processing device for implementing the display data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more display data processing device embodiments provided below can refer to the limitations of the display data processing method above, and will not be repeated here.

[0088] In one embodiment, Figure 5As shown, a display data processing device is provided, comprising: an instruction acquisition module, an instruction processing module and an instruction conversion module, wherein:

[0089] The instruction acquisition module 502 is used to acquire a first initialization instruction, where the first initialization instruction carries a screen display parameter.

[0090] The instruction processing module 504 is configured to determine whether the screen display parameter is a required command parameter of a screen driving component of a second screen if the first initialization instruction is an initialization instruction for the first screen.

[0091] The instruction conversion module 506 is configured to convert the first initialization instruction into a second initialization instruction corresponding to the second screen according to a preset conversion protocol if the screen display parameter is a required command parameter of the screen driving element of the second screen.

[0092] In one of the embodiments, the instruction processing module is used to match the first initialization instruction with a preset initialization instruction set of the first screen; when the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen, it is determined that the first initialization instruction is an initialization instruction for the first screen.

[0093] In one embodiment, the instruction processing module is used to perform numerical conversion on the first initialization instruction to obtain an initial numerical conversion result; perform numerical conversion on each of the preset initialization instructions to obtain at least two preset numerical conversion results; match the initial numerical conversion result with each of the preset numerical conversion results; accordingly, when the initial numerical conversion result is the same as the numerical value of at least one of the preset numerical conversion results, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen, and the preset initialization instruction set includes at least two preset initialization instructions.

[0094] In one embodiment, the instruction processing module is used to perform numerical conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result; perform numerical conversion on each of the preset screen display parameters to obtain at least two preset screen display parameter conversion results; match the screen display parameter conversion result with each of the preset screen display parameter conversion results; accordingly, when the initial numerical conversion result and the numerical value of at least one of the preset numerical conversion results are the same, and the screen display parameter conversion result and the numerical value of at least one of the preset screen display parameter conversion results are the same, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen, and the preset initialization instruction set also includes the preset screen display parameters corresponding to each of the preset initialization instructions.

[0095] In one embodiment, the instruction processing module is used to match the screen display parameters with the screen display information of the screen driving element of the second screen, and determine whether the screen display parameters hit the screen display information of the screen driving element of the second screen, and the screen display information of the screen driving element of the second screen includes at least one of screen resolution, driving power supply voltage, driving timing and gamma voltage parameters.

[0096] In one of the embodiments, the instruction conversion module is used to determine the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization instruction based on the mapping relationship between the multiple screen identifiers and the target screen display parameters; convert the screen display parameters carried by the first initialization instruction into the target screen display parameters to obtain the second initialization instruction, and the preset conversion protocol is a mapping relationship between multiple screen identifiers and target screen display parameters, and the multiple screen identifiers at least include the screen identifier of the second screen.

[0097] In one of the embodiments, the device further comprises: an instruction shielding module;

[0098] The instruction shielding module is used to shield the first initialization instruction if the screen display parameter is a non-essential command parameter of the screen driving element of the second screen.

[0099] Each module in the above-mentioned display data processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0100] In one embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The electronic device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing display data is implemented.

[0101] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0102] In one embodiment, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the above-mentioned display data processing method when executing the computer program.

[0103] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for processing display data are implemented.

[0104] In one embodiment, a computer program product is provided, including a computer program, which implements the steps of the above-mentioned display data processing method when executed by a processor.

[0105] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0107] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for processing display data, characterized in that: The method comprises: Obtaining a first initialization instruction, where the first initialization instruction carries a screen display parameter; If the first initialization instruction is an initialization instruction for the first screen, determining whether the screen display parameter is a necessary command parameter of a screen driving element of the second screen; If the screen display parameter is a required command parameter of the screen driving element of the second screen, converting the first initialization instruction into a second initialization instruction corresponding to the second screen according to a preset conversion protocol; The method of determining whether the first initialization instruction is an initialization instruction for the first screen includes: Matching the first initialization instruction with a preset initialization instruction set of the first screen; When the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen, determining that the first initialization instruction is an initialization instruction for the first screen; The determining whether the screen display parameter is a necessary command parameter of the screen driving element of the second screen includes: The screen display parameters are matched with the screen display information of the screen driving element of the second screen to determine whether the screen display parameters hit the screen display information of the screen driving element of the second screen, wherein the screen display information of the screen driving element of the second screen includes at least one of screen resolution, driving power supply voltage, driving timing and gamma voltage parameters.

2. The method according to claim 1, characterized in that: The preset initialization instruction set includes at least two preset initialization instructions; The matching the first initialization instruction with a preset initialization instruction set of the first screen includes: Performing numerical conversion on the first initialization instruction to obtain an initial numerical conversion result; Performing numerical conversion on each of the preset initialization instructions to obtain at least two preset numerical conversion results; Matching the initial numerical value conversion result with each of the preset numerical value conversion results; Correspondingly, when the initial numerical value conversion result is the same as the numerical value of at least one of the preset numerical value conversion results, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

3. The method according to claim 2, characterized in that The preset initialization instruction set also includes preset screen display parameters corresponding to each of the preset initialization instructions; The matching the first initialization instruction with a preset initialization instruction set of the first screen further includes: Performing numerical conversion on the screen display parameter carried by the first initialization instruction to obtain a screen display parameter conversion result; Performing numerical conversion on each of the preset screen display parameters to obtain at least two preset screen display parameter conversion results; Matching the screen display parameter conversion result with each of the preset screen display parameter conversion results; Correspondingly, when the initial numerical value conversion result and the at least one preset numerical value conversion result have the same value, and the screen display parameter conversion result and the at least one preset screen display parameter conversion result have the same value, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

4. The method according to claim 1, characterized in that The method further comprises: If the screen display parameter is a non-essential command parameter of the screen driving element of the second screen, the first initialization instruction is shielded.

5. The method according to claim 1, characterized in that The preset conversion protocol is a mapping relationship between a plurality of screen identifiers and target screen display parameters, wherein the plurality of screen identifiers at least includes a screen identifier of the second screen; Converting the first initialization instruction into a second initialization instruction corresponding to the second screen according to a preset conversion protocol includes: Determining, based on a mapping relationship between the plurality of screen identifiers and the target screen display parameters, the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization instruction; The screen display parameters carried by the first initialization instruction are converted into the target screen display parameters to obtain a second initialization instruction.

6. A display data processing device, characterized in that: The device comprises: An instruction acquisition module, used to acquire a first initialization instruction, wherein the first initialization instruction carries a screen display parameter; an instruction processing module, configured to determine whether the screen display parameter is a necessary command parameter of a screen driving element of a second screen if the first initialization instruction is an initialization instruction for the first screen; an instruction conversion module, configured to convert the first initialization instruction into a second initialization instruction corresponding to the second screen according to a preset conversion protocol if the screen display parameter is a necessary command parameter of the screen driving element of the second screen; The instruction processing module is specifically configured to match the first initialization instruction with a preset initialization instruction set of the first screen; when the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen, determine that the first initialization instruction is an initialization instruction for the first screen; The instruction processing module is also used to match the screen display parameters with the screen display information of the screen driving element of the second screen, and determine whether the screen display parameters hit the screen display information of the screen driving element of the second screen, and the screen display information of the screen driving element of the second screen includes at least one of screen resolution, driving power supply voltage, driving timing and gamma voltage parameters.

7. The device according to claim 6, characterized in that The preset initialization instruction set includes at least two preset initialization instructions; The instruction processing module is specifically used to: perform numerical conversion on the first initialization instruction to obtain an initial numerical conversion result; perform numerical conversion on each of the preset initialization instructions to obtain at least two preset numerical conversion results; and match the initial numerical conversion result with each of the preset numerical conversion results; Correspondingly, when the initial numerical value conversion result is the same as the numerical value of at least one of the preset numerical value conversion results, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

8. The device according to claim 7, characterized in that The preset initialization instruction set also includes preset screen display parameters corresponding to each of the preset initialization instructions; The instruction processing module is specifically used to: perform numerical conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result; perform numerical conversion on each of the preset screen display parameters to obtain at least two preset screen display parameter conversion results; and match the screen display parameter conversion result with each of the preset screen display parameter conversion results; Correspondingly, when the initial numerical value conversion result and the at least one preset numerical value conversion result have the same value, and the screen display parameter conversion result and the at least one preset screen display parameter conversion result have the same value, it is determined that the first initialization instruction hits at least one instruction in the preset initialization instruction set of the first screen.

9. The device according to claim 7, characterized in that It also includes an instruction shielding module, which is specifically used to: if the screen display parameter is a non-essential command parameter of the screen driving element of the second screen, shield the first initialization instruction.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method, device and equipment compatible with various types of display screens, and medium

    CN111221489A

  • Terminal screen adaptation method and system, equipment and medium

    CN113553017A