CN114816310A - Display data processing method and device, electronic equipment and storage medium - Google Patents

Display data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114816310A
CN114816310A CN202210438245.7A CN202210438245A CN114816310A CN 114816310 A CN114816310 A CN 114816310A CN 202210438245 A CN202210438245 A CN 202210438245A CN 114816310 A CN114816310 A CN 114816310A
Authority
CN
China
Prior art keywords
screen
initialization
preset
initialization instruction
screen display
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.)
Pending
Application number
CN202210438245.7A
Other languages
Chinese (zh)
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.)
Shenzhen Aixiesheng Technology Co Ltd
Original Assignee
Shenzhen Aixiesheng Technology Co 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 Shenzhen Aixiesheng Technology Co Ltd filed Critical Shenzhen Aixiesheng Technology Co Ltd
Priority to CN202210438245.7A priority Critical patent/CN114816310A/en
Publication of CN114816310A publication Critical patent/CN114816310A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application relates to a display data processing method, a display data processing device, an electronic device, a storage medium and a computer program product. The method comprises the following steps: acquiring a first initialization instruction, wherein the first initialization instruction carries screen display parameters; if the first initialization instruction is an initialization instruction for a first screen, judging whether the screen display parameter is a necessary command parameter of a screen driving element of a second screen; and if the screen display parameters are the necessary command parameters 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. By adopting the method, the adaptability of the screen can be improved.

Description

Display data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of liquid crystal display technologies, and in particular, to a method and an apparatus for processing display data, an electronic device, a storage medium, and a computer program product.
Background
With the development of liquid crystal display technology, mobile phones are more and more popular in daily life of people, screens of mobile phones belong to fragile consumables, when the screens of the mobile phones are damaged and maintained, original screens cannot be found due to various reasons, and the screens with the adaptive sizes are generally selected for maintenance.
At present, part of screens exist, initialization information is not burnt into a drive IC, and the screens need to send the initialization information to a drive IC register of the screen through a mobile phone so as to drive a newly replaced screen to display. However, when the mobile phone directly sends the initialization information to the driver IC register, the new screen may have bad phenomena such as abnormal display due to differences of the driver IC and the like, which results in poor screen versatility.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for processing display data, which can improve screen adaptability, in view of the above technical problems.
In a first aspect, the present application provides a method for processing display data, the method including:
acquiring a first initialization instruction, wherein the first initialization instruction carries screen display parameters;
if the first initialization instruction is an initialization instruction for a first screen, judging whether the screen display parameter is a necessary command parameter of a screen driving element of a second screen;
and if the screen display parameters are the necessary command parameters 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.
In one embodiment, the determining whether the first initialization instruction is an initialization instruction for a first screen includes:
matching the first initialization instruction with a preset initialization instruction set of the first screen;
determining that the first initialization instruction is an initialization instruction for the first screen when the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
In one embodiment, 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 value conversion on the first initialization instruction to obtain an initial numerical value conversion result; performing numerical value conversion on each preset initialization instruction to obtain at least two preset numerical value conversion results; matching the initial numerical value conversion result with each preset numerical value conversion result; correspondingly, when the initial numerical value conversion result is the same as the numerical value of the at least one preset numerical value conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
In one embodiment, the preset initialization instruction set further includes preset screen display parameters corresponding to the preset initialization instructions; the matching the first initialization instruction with a preset initialization instruction set of the first screen further includes: performing numerical value conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result; performing numerical value conversion on each preset screen display parameter to obtain at least two preset screen display parameter conversion results; matching the screen display parameter conversion result with each preset screen display parameter conversion result; correspondingly, when the initial value conversion result is the same as the value of the at least one preset value conversion result, and the screen display parameter conversion result is the same as the value of the at least one preset screen display parameter conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
In one embodiment, the determining whether the screen display parameter is a necessary command parameter of a screen driving element of the second screen includes: and matching the screen display parameters with screen display information of a screen driving element of the second screen, and judging 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 comprises at least one of screen resolution, driving power supply voltage, driving time sequence and gamma voltage parameters.
In one embodiment, the preset conversion protocol is a mapping relation between a plurality of screen identifiers and target screen display parameters, and the plurality of screen identifiers at least comprise a screen identifier of a second screen; converting the first initialization command into a second initialization command corresponding to the second screen according to a preset conversion protocol, including: determining target screen display parameters of a second screen corresponding to the screen display parameters of the first initialization command based on the mapping relation between the screen identifications and the target screen display parameters; and converting the screen display parameters carried by the first initialization instruction into the target screen display parameters to obtain a second initialization command.
In one embodiment, the method further comprises: and if the screen display parameter is an unnecessary command parameter of the screen driving element of the second screen, shielding the first initialization command.
In a second aspect, the present application further provides a device for processing display data, the device comprising:
the device comprises an instruction acquisition module, a display module and a display module, wherein the instruction acquisition module is used for acquiring a first initialization instruction, and the first initialization instruction carries screen display parameters;
the instruction processing module is used for judging whether the screen display parameters are the necessary command parameters of the screen driving element of the second screen or not if the first initialization instruction is an initialization instruction aiming at the first screen;
and the instruction conversion module is used for converting the first initialization command into a second initialization command corresponding to the second screen according to a preset conversion protocol if the screen display parameter is an essential command parameter of the screen driving element of the second screen.
In a third aspect, the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method for processing display data when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the above-mentioned display data processing method.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the method for processing display data described above.
On one hand, by obtaining the first initialization instruction and judging whether the screen display parameter carried by the first initialization instruction is the necessary command parameter of the screen driving element of the second screen or not when the first initialization instruction is determined to be the initialization instruction for the first screen, wherein the first screen is different from the second screen, the first initialization instruction is not directly issued to the second screen after the screen is replaced, the situation that screen display is abnormal if the first initialization instruction is directly issued to the second screen when the first initialization instruction is the initialization instruction for the first screen is avoided, on the other hand, when the screen display parameter is determined to be the 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 the second screen can be normally displayed based on the corresponding second initialization instruction even if the second screen is different from the first screen. Therefore, the method can improve the adaptability of the screen.
Drawings
FIG. 1 is a diagram of an application environment in which a method for processing display data is performed in one embodiment;
FIG. 2 is a flow diagram illustrating a method for processing display data according to one embodiment;
FIG. 3 is a flow diagram illustrating a method for processing display data according to one embodiment;
FIG. 4 is a flow diagram illustrating a method for processing display data according to one embodiment;
FIG. 5 is a block diagram showing the structure of a data processing apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of an electronic device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for processing display data provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Fig. 1 relates to an electronic device 102 and an LCD (liquid crystal display) display module 104, 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, process the initialization instruction, send the processed initialization instruction to the driving element 108, and download the processed initialization instruction to a driving element register by the driving element 108, so that the LCD display module 104 can normally display through the initialization instruction. The electronic device 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The controller 106 may be a Control motherboard, and a Central Processing Unit (CPU), a Micro Control Unit (MCU), and other devices may be disposed on the Control motherboard.
Specifically, the controller 106 obtains a first initialization instruction sent by the electronic device 102, where the first initialization instruction carries a screen display parameter; if the first initialization instruction is an initialization instruction for a first screen, judging whether the screen display parameter is a necessary command parameter of a screen driving element of a second screen; and if the screen display parameters are the necessary command parameters 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.
Among them, in the field of liquid crystal display, since a screen is a fragile consumable, when it is repaired, for various reasons, the original screen may not be found for maintenance, and a screen with a size adapted for maintenance is generally selected, because some screens do not burn the initialization information into the drive IC, the initialization instruction needs to be sent to the replaced screen through the mobile phone, the replaced screen is driven to display, and because the driving element of the replaced screen is different from the original screen, therefore, the original initialization information which is adapted to the original screen is adopted to drive the replaced screen, the abnormal display condition can occur, because the mobile phone is more and more popular in daily life of people, and the screen of the mobile phone belongs to fragile consumables, the electronic device related to the embodiment of the application can be the mobile phone.
In one embodiment, as shown in fig. 2, a method for processing display data is provided, which is exemplified by the method applied to the controller 106 in fig. 1, and includes the following steps:
step S202, a first initialization instruction is obtained, and the first initialization instruction carries screen display parameters.
The first initialization instruction may be an instruction for driving a screen to display, specifically, the first initialization instruction may include an instruction for setting a screen resolution, or may also be an instruction for setting a driving power supply voltage, and the first initialization instruction may be an instruction sent to the controller through any mobile device such as a mobile phone and a computer, so that the controller may obtain the first initialization instruction.
The first initialization instruction carries screen display parameters, and the screen display parameters may refer to parameters to be specifically set when a screen is set according to the first initialization instruction.
In one embodiment, when the first initialization instruction is an instruction to set a screen resolution, the screen display parameter may refer to a specific value of the screen resolution that needs to be set, and when the first initialization instruction is an instruction to set a driving power supply voltage, the first initialization instruction may refer to a dramatic value of the driving power supply voltage that needs to be set.
Step S204, if the first initialization instruction is an initialization instruction for the first screen, determining whether the screen display parameter is an essential command parameter of the screen driving element of the second screen.
The first screen may be an original screen of a mobile phone, and the initialization instruction of the first screen may be an instruction that can drive the first screen to normally display, for example, the initialization instruction of the first screen may be a screen resolution instruction, a driving timing instruction, and the like, the initialization instruction of the first screen may also be a driving power supply voltage instruction, a Gamma (Gamma) voltage instruction, and the like, and 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 (Gamma) voltage instruction, and the like, that is, the initialization instruction of the first screen is related to a display attribute of the first screen itself.
The necessary command parameter is determined according to the screen display attribute of the screen, for example, if some screens are to be displayed normally, a Gamma (Gamma) voltage may need to be set, and if some screens are to be displayed normally, a Gamma (Gamma) voltage may not need to be set, so that the necessary command parameter is also determined according to the actual display attribute of each different screen.
Step S206, if the screen display parameter is a necessary 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 preset conversion protocol refers to a protocol which is preset and can convert the first initialization command, the preset conversion protocol may refer to a set conversion rule, a set mapping relationship, and the like, and the preset conversion protocol may be set according to an actual situation.
When the screen display parameters are the necessary command parameters of the screen driving element of the second screen, it indicates that the screen display parameters carried by the first initialization command may affect the normal display of the second screen, and therefore, the first initialization command may be converted into a second initialization command corresponding to the second screen according to a preset conversion protocol, so that the second screen may be normally displayed based on the command sent by the mobile phone.
In one embodiment, the first screen may be an original screen of the mobile phone, the second screen may be a replacement screen of the mobile phone, and 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 for driving the display of the mobile phone screen 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 parameter is an essential command parameter of the screen driving element of the second screen, if the initialization information is directly sent to the driving element of the second screen, the display of the second screen is abnormal due to different driving elements, and at this time, the first initialization instruction is converted into a second initialization instruction corresponding to the second screen through a preset conversion protocol, which can solve the problem of the display abnormality of the second screen.
In the method for processing the display data, on one hand, by obtaining the first initialization instruction and judging whether the screen display parameter carried by the first initialization instruction is the necessary command parameter of the screen driving element of the second screen when the first initialization instruction is determined to be the initialization instruction for the first screen, wherein the first screen and the second screen are different, the first initialization instruction cannot be directly issued to the second screen after the screen is replaced, the situation that screen display is abnormal if the first initialization instruction is directly issued to the second screen when the first initialization instruction is the initialization instruction for the first screen is avoided, on the other hand, when the screen display parameter is determined to be the 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 a preset conversion protocol, so that the second screen can be normally displayed based on the corresponding second initialization instruction even if the second screen is different from the first screen. Therefore, the method can improve the adaptability of the screen.
In one embodiment, the determining whether the first initialization instruction is an initialization instruction for a first screen includes: matching the first initialization instruction with a preset initialization instruction set of the first screen; determining that the first initialization instruction is an initialization instruction for the first screen when the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
The preset initialization instruction set is an instruction configured by the controller according to an initialization instruction of the first screen, and if it is required to determine whether the first initialization instruction is an initialization instruction for the first screen, the first initialization instruction may be matched with the preset initialization instruction set to obtain a matching result, where the matching result may be that the first initialization instruction is an initialization instruction for the first screen, and the matching result may also be that the first initialization instruction is not an initialization instruction for the first screen. Therefore, by the method, the first initialization instruction sent by the mobile phone can be judged, so that the first initialization instruction matched with the first screen is identified, and the condition that the display of the second screen is abnormal due to the fact that the first initialization instruction matched with the initialization instruction of the first screen is directly issued is avoided.
In one embodiment, the controller is integrated with a Catch Command module, and the preset initialization instruction set can be configured and obtained through the Catch Command module.
In one embodiment, the preset initialization instruction set includes at least two preset initialization instructions, and the matching the first initialization instruction with the preset initialization instruction set of the first screen includes:
step S302, performing value conversion on the first initialization instruction to obtain an initial value conversion result.
The numerical value conversion refers to conversion of the first initialization instruction in a form, a scale, or a format, and a specific numerical value conversion mode may be determined according to the form of the first initialization instruction. For example, the first initialization instruction may be in hexadecimal form, and the hexadecimal first initialization instruction may be converted into a decimal value, so as to obtain an initial value conversion result corresponding to the first initialization instruction.
Step S304, performing a numerical value conversion on each of the preset initialization instructions to obtain at least two preset numerical value conversion results.
Correspondingly, each preset initialization instruction can also perform conversion between systems, for example, a hexadecimal preset initialization instruction is converted into a decimal value, and at least two preset value conversion results are obtained because at least two preset initialization instructions are provided.
Step S306, matching the initial numerical value conversion result with each of the preset numerical value conversion results.
After the initial value conversion result and each preset value conversion result are obtained, the initial value conversion result and each preset value conversion result may be subjected to value matching, for example, the initial value conversion result of the first initialization instruction is a decimal value, each preset value conversion result is also a decimal value, and the matching process may be to compare the size of the initial value conversion result and each preset value conversion result.
Step S308, when the initial value conversion result is the same as the value of the at least one preset value conversion result, determining that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
After the initial value conversion result is matched with each preset value conversion result, if the initial value conversion result is the same as the value of 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. Therefore, whether the first initialization instruction is related to the initialization instruction of the first screen or not is determined through the method, and therefore subsequent processing can be conducted.
On the basis of the above embodiment, the preset initialization instruction set further includes preset screen display parameters corresponding to the preset initialization instructions, that is, the preset screen display parameters are carried in the preset initialization instructions.
The matching the first initialization instruction with a preset initialization instruction set of the first screen further includes:
step S402, carrying out numerical value conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result.
If the screen display parameters carried by the first initialization instruction can be in a hexadecimal form, the hexadecimal screen display parameters can be converted into decimal values, and initial value conversion results corresponding to the screen display parameters are obtained.
Step S404, performing numerical value conversion on each preset screen display parameter to obtain at least two preset screen display parameter conversion results.
Correspondingly, the preset screen display parameters carried by each preset initialization instruction can also be converted between systems, for example, hexadecimal preset screen display parameters are converted into decimal values, and at least two preset screen display parameter conversion results are obtained because at least two preset screen display parameters are provided.
Step S406, matching the screen display parameter conversion result with each of the preset screen display parameter conversion results.
After the screen display parameter conversion result and each preset screen display parameter conversion result are obtained, the screen display parameter conversion result and each preset screen display parameter may be subjected to value matching, for example, the screen display parameter conversion result of the first initialization instruction is a decimal value, each preset screen display parameter is also a decimal value, and the matching process may be to compare the screen display parameter conversion result and the size of each preset screen display parameter conversion result.
Step S408, correspondingly, when the initial value conversion result is the same as the value of the at least one preset value conversion result, and the screen display parameter conversion result is the same as the value of the at least one preset screen display parameter conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
After the screen display parameter conversion result is matched 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 the at least one preset screen display parameter conversion result, it can be determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen. Therefore, by the method, the accuracy of the comparison result can be improved because the initialization instruction and the screen display parameter are compared.
In one embodiment, the determining whether the screen display parameter is a necessary command parameter of a screen driving element of the second screen includes: and matching the screen display parameters with screen display information of a screen driving element of the second screen, and judging 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 comprises at least one of screen resolution, driving power supply voltage, driving time sequence and gamma voltage parameters.
The screen display information refers to information related to screen display, and the screen display information is related to a driving element of a screen, for example, a screen is to be normally displayed, and the screen display information that may be required is three parameters, i.e., an a parameter, a B parameter, and a c parameter, while a screen B is to be normally displayed, and may only need the a parameter and the B parameter, and generally, the screen display information includes at least one of a screen resolution, a driving power supply voltage, a driving timing, and a gamma voltage parameter.
In one embodiment, if the first initialization instruction is an initialization instruction for the first screen, the specific manner of processing the first initialization instruction may be determined by determining whether the screen display parameter is an essential command parameter of the screen driving element of the second screen, and when determining whether the screen display parameter is an essential command parameter of the driving element of the second screen, the screen display parameter may be matched with the screen display information of the second screen to obtain a matching result.
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 relation between a plurality of screen identifiers and the target screen display parameter, and the plurality of screen identifiers at least comprise the screen identifier 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, including:
determining target screen display parameters of a second screen corresponding to the screen display parameters of the first initialization command based on the mapping relation between the screen identifications and the target screen display parameters;
and converting the screen display parameters carried by the first initialization instruction into the target screen display parameters to obtain a second initialization command.
The mapping relationship between the multiple screen identifiers and the target screen display parameters may be: the screen a corresponds to a corresponding target screen display parameter, and the screen B corresponds to a corresponding target screen display parameter …, where the target screen display parameter may be one or multiple, and then, based on the mapping relationship between multiple screen identifiers and the target screen display parameter, the target screen display parameter of the second screen corresponding to the screen display parameter of the first initialization command may be determined, and the screen display parameter carried by the first initialization command is converted into the target screen display parameter, so as to obtain the second initialization command, specifically, if the screen display parameter of the first initialization command is a screen resolution parameter, then, based on the mapping relationship, the target screen resolution parameter of the second screen is found, and the screen display parameter carried by the first initialization command is converted into the target screen resolution parameter of the second screen, so that in the case that the second screen is not an original screen, the second screen may also be normally displayed based on a corresponding second initialization instruction.
Therefore, when the matching result is that the screen display parameter is not a necessary command parameter of the driving element of the second screen, in one embodiment, the method further comprises: and if the screen display parameter is an unnecessary command parameter of the screen driving element of the second screen, shielding the first initialization command.
The screen display parameters are unnecessary command parameters of the screen driving element of the second screen, which means that the first initialization command has almost no influence on the display condition of the second screen, and in order to prevent unpredictable hidden dangers, the first initialization command can be shielded, so that the stability of screen display is increased.
In one embodiment, the following steps are described in relation to a method for processing display data in a specific embodiment:
first, the present embodiment relates to a mobile phone and a replaced LCD (liquid crystal display) display module after an original screen of the mobile phone is damaged, wherein the LCD display module is integrated with a controller and a driving element, the mobile phone can send an initialization instruction to the LCD display module, the controller in the LCD display module can receive the initialization instruction sent by the mobile phone, process the initialization instruction, send the processed initialization instruction to the driving element, and download the processed initialization instruction to a driving element register by the driving element 108, so that the LCD display module can normally display through the initialization instruction.
After the mobile phone is started and awakened, a CPU of the mobile phone may send a first initialization instruction to a controller of the LCD display module through an interface, where the first initialization instruction may be an instruction for driving a screen to display, specifically, the first initialization instruction may include an instruction for setting a screen resolution or an instruction for setting a driving power supply voltage, and the first initialization instruction may be an instruction sent to the controller through any mobile device such as a mobile phone or a computer, so that the controller may obtain the first initialization instruction.
After receiving the first initialization instruction, the controller may determine whether the first initialization instruction is an initialization instruction for the first screen, and specifically, may 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 a preset initialization instruction set of a first screen, determining that the first initialization instruction is an initialization instruction for the first screen.
After the first initialization instruction is determined to be an initialization instruction for the first screen, whether the screen display parameters are necessary command parameters of the screen driving element of the second screen is judged, specifically, the screen display parameters are matched with screen display information of the screen driving element of the second screen, and whether the screen display parameters hit the screen display information of the screen driving element of the second screen is judged, 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.
And when the matching result is that the screen display parameters are the necessary command parameters of the driving element of the second screen, determining the target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization command based on the mapping relation between the plurality of screen identifications and the target screen display parameters, and converting the screen display parameters carried by the first initialization command into the target screen display parameters to obtain a second initialization command. So that the second screen can be normally displayed based on the corresponding second initialization instruction even in the case that the second screen is not the original screen.
And when the matching result is that the screen display parameters are not the necessary command parameters of the driving element of the second screen, shielding the first initialization command, thereby increasing the stability of screen display.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a display data processing apparatus for implementing the above-mentioned display data processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the processing device for display data provided below can refer to the limitations on the processing method for display data in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 5, there is provided a processing apparatus for displaying data, including: instruction acquisition module, instruction processing module and instruction conversion module, wherein:
the instruction obtaining module 502 is configured to obtain a first initialization instruction, where the first initialization instruction carries a screen display parameter.
The instruction processing module 504 is 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 a first screen.
An instruction converting module 506, configured to convert the first initialization command into a second initialization command 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.
In one embodiment, the instruction processing module is configured to match the first initialization instruction with a preset initialization instruction set of the first screen; determining that the first initialization instruction is an initialization instruction for the first screen when the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
In one embodiment, the instruction processing module is configured to perform numerical value conversion on the first initialization instruction to obtain an initial numerical value conversion result; performing numerical value conversion on each preset initialization instruction to obtain at least two preset numerical value conversion results; matching the initial numerical value conversion result with each preset numerical value conversion result; correspondingly, when the initial numerical value conversion result is the same as the numerical value of the at least one preset numerical value conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen, where the preset initialization instruction set includes at least two preset initialization instructions.
In one embodiment, the instruction processing module is configured to perform numerical value conversion on the screen display parameter carried by the first initialization instruction to obtain a screen display parameter conversion result; performing numerical value conversion on each preset screen display parameter to obtain at least two preset screen display parameter conversion results; matching the screen display parameter conversion result with each preset screen display parameter conversion result; correspondingly, when the initial value conversion result is the same as the value of the at least one preset value conversion result, and the screen display parameter conversion result is the same as the value of the at least one preset screen display parameter conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen, where the preset initialization instruction set further includes preset screen display parameters corresponding to the preset initialization instructions.
In one embodiment, the instruction processing module is configured to match the screen display parameter with screen display information of a screen driving element of the second screen, and determine whether the screen display parameter hits the screen display information of the screen driving element of the second screen, where the screen display information of the screen driving element of the second screen includes at least one of a screen resolution, a driving power supply voltage, a driving timing, and a gamma voltage parameter.
In one embodiment, the instruction conversion module is configured to determine, based on a mapping relationship between the plurality of screen identifiers and target screen display parameters, target screen display parameters of the second screen corresponding to the screen display parameters of the first initialization command; and converting the screen display parameters carried by the first initialization instruction into the target screen display parameters to obtain a second initialization instruction, wherein the preset conversion protocol is a mapping relation between a plurality of screen identifiers and the target screen display parameters, and the plurality of screen identifiers at least comprise screen identifiers of a second screen.
In one embodiment, the apparatus further comprises: an instruction shielding module;
the instruction shielding module is configured to shield the first initialization command if the screen display parameter is an unnecessary command parameter of the screen driving element of the second screen.
The respective modules in the above-mentioned processing device for displaying data may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the electronic device, or can be stored in a memory in the electronic device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an electronic device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The electronic device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of processing display data.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
In one embodiment, an electronic device is provided, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method for processing display data when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method of processing display data.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, carries out the steps of the above-described method of processing display data.
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 for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for processing display data, the method comprising:
acquiring a first initialization instruction, wherein the first initialization instruction carries screen display parameters;
if the first initialization instruction is an initialization instruction for a first screen, judging whether the screen display parameters are necessary command parameters of a screen driving element of a second screen;
if the screen display parameter is a necessary 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.
2. The method of claim 1, wherein determining whether the first initialization instruction is a manner of initialization instruction for a first screen comprises:
matching the first initialization instruction with a preset initialization instruction set of the first screen;
determining that the first initialization instruction is an initialization instruction for the first screen when the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
3. The method of claim 2, wherein the preset initialization instruction set comprises 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 value conversion on the first initialization instruction to obtain an initial numerical value conversion result;
performing numerical value conversion on each preset initialization instruction to obtain at least two preset numerical value conversion results;
matching the initial numerical value conversion result with each preset numerical value conversion result;
correspondingly, when the initial numerical value conversion result is the same as the numerical value of the at least one preset numerical value conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
4. The method according to claim 3, wherein the preset initialization instruction set further 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 value conversion on the screen display parameters carried by the first initialization instruction to obtain a screen display parameter conversion result;
performing numerical value conversion on each preset screen display parameter to obtain at least two preset screen display parameter conversion results;
matching the screen display parameter conversion result with each preset screen display parameter conversion result;
correspondingly, when the initial value conversion result is the same as the value of the at least one preset value conversion result, and the screen display parameter conversion result is the same as the value of the at least one preset screen display parameter conversion result, it is determined that the first initialization instruction hits at least one instruction in a preset initialization instruction set of the first screen.
5. The method of claim 1, wherein the determining whether the screen display parameter is a necessary command parameter for a screen driving element of a second screen comprises:
and matching the screen display parameters with screen display information of a screen driving element of the second screen, and judging 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 comprises at least one of screen resolution, driving power supply voltage, driving time sequence and gamma voltage parameters.
6. The method according to claim 1, wherein the predetermined conversion protocol is a mapping relationship between a plurality of screen identifiers and target screen display parameters, and the plurality of screen identifiers at least include a screen identifier of a second screen;
converting the first initialization command into a second initialization command corresponding to the second screen according to a preset conversion protocol, including:
determining target screen display parameters of a second screen corresponding to the screen display parameters of the first initialization command based on the mapping relation between the screen identifications and the target screen display parameters;
and converting the screen display parameters carried by the first initialization instruction into the target screen display parameters to obtain a second initialization command.
7. The method of claim 1, further comprising:
and if the screen display parameter is an unnecessary command parameter of the screen driving element of the second screen, shielding the first initialization command.
8. A processing apparatus for displaying data, the apparatus comprising:
the device comprises an instruction acquisition module, a display module and a display module, wherein the instruction acquisition module is used for acquiring a first initialization instruction, and the first initialization instruction carries screen display parameters;
the instruction processing module is used for judging whether the screen display parameters are the necessary command parameters of the screen driving element of the second screen or not if the first initialization instruction is an initialization instruction aiming at the first screen;
and the instruction conversion module is used for converting the first initialization command into a second initialization command 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.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202210438245.7A 2022-04-25 2022-04-25 Display data processing method and device, electronic equipment and storage medium Pending CN114816310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210438245.7A CN114816310A (en) 2022-04-25 2022-04-25 Display data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210438245.7A CN114816310A (en) 2022-04-25 2022-04-25 Display data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114816310A true CN114816310A (en) 2022-07-29

Family

ID=82507048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210438245.7A Pending CN114816310A (en) 2022-04-25 2022-04-25 Display data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114816310A (en)

Similar Documents

Publication Publication Date Title
US9997096B2 (en) Display apparatus, electronic device including the same, and method of operating the same
US10733017B2 (en) Task scheduling based on performance control conditions for multiple processing units
US11269488B2 (en) System for providing application list and method therefor
CN109144487B (en) Method, device, computer equipment and storage medium for developing business of parts
US9729815B2 (en) Method and electronic device for controlling content integrity using numerical data
CN114611481A (en) Template configuration method and device, computer equipment and storage medium
CN114816310A (en) Display data processing method and device, electronic equipment and storage medium
CN109887449B (en) Display and energy efficiency testing method and system thereof
CN109844688B (en) System on chip, electronic device including the same, and driving method thereof
CN108615196A (en) Declaration form certification generation method and device
CN110532031A (en) OEM display methods, electronic equipment and storage medium based on linux system
CN111694610A (en) Software implementation method and system of SOC (System on chip), electronic equipment and storage medium
CN114614992B (en) Signature value output and verification method, device, computer equipment and storage medium
CN114360426B (en) Gamma adjusting method, gamma adjusting device, computer equipment and storage medium
CN115776105B (en) Current control method, apparatus, computer device, and storage medium
CN115792582B (en) Chip testing method, device and equipment
CN115719220A (en) Fault processing method and device, computer equipment and storage medium thereof
CN117764529A (en) Target item determining method, device, computer equipment, storage medium and product
CN117075924A (en) Chip ID processing method and electronic equipment
CN117171098A (en) Document sorting method, device, computer equipment and storage medium
CN116467332A (en) White balance adjustment method, white balance adjustment device, computer equipment and storage medium
CN114911719A (en) Memory data access method and device and computer equipment
CN113407245A (en) Color calibration method and device for notebook computer and storage medium
CN116881028A (en) Application program flash back processing method, device, equipment, medium and program product
CN115756570A (en) Activity maintenance method, apparatus, computer device and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518101 District D and E, 7th Floor, Building 3, Tingwei Industrial Park, 6 Liufang Road, Xin'an Street, Baoan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Aixiesheng Technology Co.,Ltd.

Address before: 518101 District D and E, 7th Floor, Building 3, Tingwei Industrial Park, 6 Liufang Road, Xin'an Street, Baoan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN AIXIESHENG TECHNOLOGY Co.,Ltd.