Display method and device, electronic equipment and storage medium
By transferring image correction data from the first storage module to the second storage module during the novel non-volatile memory write mode, the problem of display abnormalities in the write mode is solved, achieving normal display and cost reduction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING XIAOMI MOBILE SOFTWARE CO LTD
- Filing Date
- 2025-01-27
- Publication Date
- 2026-07-28
AI Technical Summary
In existing technologies, novel non-volatile memory cannot simultaneously read data while in write mode, leading to abnormal display of electronic devices, such as black screens or incomplete display content, which affects the user experience.
By transferring image correction data from the first storage module to the second storage module when the new non-volatile memory switches to write mode, and reading image correction data from the second storage module at the same time as writing data, the electronic device can still display normally when updating the touch screen firmware.
It enables normal display during data writing to the storage module, improving the user experience, and reduces costs and power consumption without requiring additional storage resources.
Smart Images

Figure CN122470141A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of integrated circuit technology, and in particular to a display method, apparatus, electronic device and storage medium. Background Technology
[0002] With the widespread application of AMOLED (Active Matrix Organic Light Emitting Diode) displays in electronic devices, OLED TDDIIC (Organic Light-Emitting Diode Touch and Display Driver Integration Circuits) is constantly being optimized to achieve better display effects. Summary of the Invention
[0003] To overcome the problems existing in related technologies, this disclosure provides a display method, apparatus, electronic device, and storage medium.
[0004] According to a first aspect of the present disclosure, a display method is provided, comprising:
[0005] In response to the detection of an update operation to the touchscreen firmware, a first mode switching instruction is triggered; the touchscreen firmware is stored in a first storage module, and the first mode switching instruction is used to instruct the first storage module to switch from read mode to write mode. The first storage module cannot be in both read mode and write mode at the same time.
[0006] In response to the first switching command, the first preset data stored in the first storage module is transferred to the second storage module; the first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the screen of the electronic device.
[0007] While writing the second preset data to the first storage module, the first preset data is read from the second storage module; the second preset data is used to update the touch screen firmware.
[0008] The data is displayed based on the first preset data.
[0009] In some embodiments, reading the first preset data from the second storage module includes:
[0010] In response to the first operation, the image correction data stored in the second storage module is transferred to the image correction module; the first operation is the operation of the image correction module reading the image correction data from the second storage module.
[0011] In some embodiments, the method further includes:
[0012] In response to an update operation on the touchscreen firmware, a first switching instruction is triggered; the first switching instruction is used to instruct the image correction module to switch from reading data from the first storage module to reading data from the second storage module;
[0013] In response to the first switching command, the first operation is triggered.
[0014] In some embodiments, the method further includes:
[0015] In response to the detection that the touchscreen firmware update is complete, a second mode switching instruction and a second switching instruction are triggered; the second mode switching instruction is used to instruct the first storage module to switch from the write mode to the read mode, and the second switching instruction is used to instruct the image correction module to switch from reading data from the second storage module to reading data from the first storage module;
[0016] In response to the second mode switching command and the second switching command, a second operation is triggered; the second operation is the operation of the image correction module reading the image correction data from the first storage module.
[0017] In some embodiments, the first preset data further includes control data, the control data being used to configure image compensation data in the second storage module, the image compensation data being used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed; reading the first preset data from the second storage module includes:
[0018] In response to a third operation, the control data stored in the second storage module is transmitted to the display process module; the third operation is the operation by which the display process module reads the control data from the second storage module.
[0019] In some embodiments, the method further includes:
[0020] In response to an update operation on the touchscreen firmware, a third switching instruction is triggered; the third switching instruction is used to instruct the display process module to switch from reading data from the first storage module to reading data from the second storage module;
[0021] In response to the third switching instruction, the third operation is triggered.
[0022] In some embodiments, the method further includes:
[0023] In response to the detection that the touchscreen firmware update is complete, a second mode switching instruction and a fourth switching instruction are triggered; the second mode switching instruction is used to instruct the first storage module to switch from the write mode to the read mode, and the fourth switching instruction is used to instruct the display process module to switch from reading data from the second storage module to reading data from the first storage module;
[0024] In response to the second mode switching command and the fourth switching command, a fourth operation is triggered; the fourth operation is the operation of the display process module reading the control data from the first storage module.
[0025] In some embodiments, the method further includes:
[0026] Based on the second preset data, update the touchscreen firmware in the first storage module.
[0027] In some embodiments, before reading the first preset data from the second storage module, the method further includes:
[0028] Stop reading image compensation data from the second storage module; the image compensation data is used for at least one of image enhancement processing, image correction processing, and image noise reduction processing of the image to be displayed.
[0029] In some embodiments, the method further includes:
[0030] When the electronic device is first powered on, an update operation on the touchscreen firmware is triggered; or,
[0031] When a trigger operation is detected on the update control associated with the touchscreen firmware, an update operation on the touchscreen firmware is triggered.
[0032] According to a second aspect of the present disclosure, a display device is provided, comprising: a processing module, a first storage module, a second storage module, and a display module, wherein the first storage module cannot be simultaneously in the read mode and the write mode;
[0033] The processing module is used to trigger a first mode switching command in response to detecting an update operation to the touch screen firmware; the touch screen firmware is stored in a first storage module, and the first mode switching command is used to instruct the first storage module to switch from read mode to write mode;
[0034] The first storage module is used to respond to the first mode switching command by transferring the first preset data stored in the first storage module to the second storage module, so as to read the first preset data from the second storage module while writing the second preset data into the first storage module; the first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the screen of the electronic device, and the second preset data is used to update the touch screen firmware.
[0035] The display module is used to display data based on the first preset data.
[0036] In some embodiments, the display device further includes an image correction module;
[0037] The second storage module is used to transmit the image correction data stored in the second storage module to the image correction module in response to the first operation; the first operation is the operation of the image correction module reading the image correction data from the second storage module.
[0038] In some embodiments, the processing module is further configured to trigger a first switching instruction in response to an update operation of the touchscreen firmware; the first switching instruction is configured to instruct the image correction module to switch from reading data from the first storage module to reading data from the second storage module;
[0039] The image correction module is used to trigger the first operation in response to the first switching command.
[0040] In some embodiments, the processing module is further configured to trigger a second mode switching instruction and a second switching instruction in response to detecting that the touchscreen firmware update is complete; the second mode switching instruction is configured to instruct the first storage module to switch from the write mode to the read mode, and the second switching instruction is configured to instruct the image correction module to switch from reading data from the second storage module to reading data from the first storage module;
[0041] The image correction module is also configured to trigger a second operation in response to the second mode switching command and the second switching command; the second operation is the operation of the image correction module reading the image correction data from the first storage module.
[0042] In some embodiments, the display device further includes a display process module;
[0043] The second storage module is used to transmit control data stored in the second storage module to the display process module in response to the third operation; the third operation is the operation of the display process module reading the control data from the second storage module, the control data being used to configure image compensation data in the second storage module, the image compensation data being used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed.
[0044] In some embodiments, the processing module is further configured to trigger a third switching instruction in response to an update operation of the touchscreen firmware; the third switching instruction is configured to instruct the display process module to switch from reading data from the first storage module to reading data from the second storage module;
[0045] The display process module is used to trigger the third operation in response to the third switching command.
[0046] In some embodiments, the processing module is further configured to trigger a second mode switching instruction and a fourth switching instruction in response to detecting that the touchscreen firmware update is complete; the second mode switching instruction is configured to instruct the first storage module to switch from the write mode to the read mode, and the fourth switching instruction is configured to instruct the display process module to switch from reading data from the second storage module to reading data from the first storage module;
[0047] The display process module is also configured to trigger a fourth operation in response to the second mode switching instruction and the fourth switching instruction; the fourth operation is the operation of the display process module reading the control data from the first storage module.
[0048] In some embodiments, the first storage module is used to update the touchscreen firmware in the first storage module based on the second preset data.
[0049] In some embodiments, the second storage module is used to stop reading image compensation data in the second storage module; the image compensation data is used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed.
[0050] In some embodiments, the processing module is further configured to trigger an update operation on the touchscreen firmware when the electronic device is first started; or,
[0051] The processing module is also configured to trigger an update operation on the touchscreen firmware when a trigger operation on an update control associated with the touchscreen firmware is detected.
[0052] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0053] processor;
[0054] Memory used to store processor-executable instructions;
[0055] The processor is configured to perform the display method as described in the first aspect of the embodiments of this disclosure.
[0056] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the display method as described in the first aspect of the present disclosure.
[0057] The method described above, as disclosed in this invention, has the following beneficial effects:
[0058] The method provided in this disclosure addresses a first storage module that cannot simultaneously be in read and write modes. When the first storage module needs to update the touchscreen firmware (i.e., when writing is required in the first storage module), the image correction data stored in the first storage module is first transferred to a second storage module. Subsequently, while writing data for updating the touchscreen firmware into the first storage module, the image correction data can be read from the second storage module. The display is then based on the read image correction data, ensuring that image correction data can be read from the second storage module during the data writing phase in the first storage module. This allows the electronic device to display normally, avoids display abnormalities, and improves the user experience. Furthermore, the second storage module is an existing storage module in the electronic device; normal display can be ensured through optimization of the data read / write process without adding new storage resources, thus reducing costs and power consumption.
[0059] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0060] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0061] Figure 1 This is a flowchart illustrating a display method according to an exemplary embodiment.
[0062] Figure 2 This is a flowchart illustrating a data read / write process according to an exemplary embodiment.
[0063] Figure 3This is a flowchart illustrating a data read / write process according to an exemplary embodiment.
[0064] Figure 4 This is a schematic diagram illustrating a display IC architecture according to an exemplary embodiment.
[0065] Figure 5A This is a flowchart illustrating a display method in a related art according to an exemplary embodiment.
[0066] Figure 5B This is a flowchart illustrating a display method according to an exemplary embodiment.
[0067] Figure 6 This is a block diagram illustrating a display device according to an exemplary embodiment.
[0068] Figure 7 This is a block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0069] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0070] The OLED TDDIIC uses a new type of non-volatile memory. This new non-volatile memory has different I / O (Input / Output) interfaces when in write mode and read mode, and the voltage of the Word Line and Select Line are also different. That is, it cannot be in write mode and read mode at the same time. As a result, when the new non-volatile memory is in write mode, it cannot read the data stored in the non-volatile memory, which affects the user experience.
[0071] In one example, a novel non-volatile random access memory (RRAM) stores the touchscreen firmware (TP firmware) and display-related data (e.g., gamma data). When the touchscreen firmware needs to be updated, data needs to be written to this novel non-volatile memory. At this time, the I / O interface in the RRAM changes from output to input, and the power supply in the RRAM switches from read power to write power, that is, the voltage is switched to the voltage required for write mode. That is, during the touchscreen firmware update phase, data can only be written to the RRAM, and cannot be read from the RRAM. In other words, display-related data cannot be read, preventing the electronic device from displaying based on the display-related data, causing display abnormalities such as black screens or incomplete display content, resulting in a poor user experience. Moreover, if the time for writing data to the RRAM is long, the duration of display abnormalities in the electronic device will also be longer, which will seriously affect the user experience.
[0072] This disclosure provides a display method. In response to detecting an update operation on the touchscreen firmware, a first mode switching command is triggered. The touchscreen firmware is stored in a first storage module. The first mode switching command instructs the first storage module to switch from read mode to write mode. The first storage module cannot be in both read and write modes simultaneously. In response to the first switching command, a first preset data stored in the first storage module is transferred to a second storage module. The first preset data includes at least image correction data used to adjust the brightness and contrast of the electronic device's screen. Simultaneously, second preset data is written to the first storage module, and the first preset data is read from the second storage module. The second preset data is used to update the touchscreen firmware. Display is then performed based on the first preset data. This method allows image correction data to be read from the second storage module during the data writing stage, ensuring normal display of the electronic device, avoiding display abnormalities, and improving the user experience. Furthermore, since the second storage module is an existing storage module in the electronic device, normal display can be guaranteed through optimization of the data read / write process without adding new storage resources, thus reducing cost and power consumption.
[0073] The display method provided in this disclosure is executed by an electronic device, which may specifically be a mobile phone, tablet computer, laptop computer, smart robot, smart wearable device, vehicle terminal, or other device equipped with a screen. In addition, the electronic device also includes various hardware resources and an energy storage device that provides power for the operation of these hardware resources.
[0074] Figure 1 This is a flowchart illustrating a display method according to an exemplary embodiment, performed by an electronic device. See also... Figure 1The method includes the following steps:
[0075] Step S101: In response to detecting an update operation to the touch screen firmware, a first mode switching instruction is triggered; the touch screen firmware is stored in the first storage module, and the first mode switching instruction is used to instruct the first storage module to switch from read mode to write mode. The first storage module cannot be in read mode and write mode at the same time.
[0076] Touchscreen firmware is a type of embedded software responsible for handling touchscreen signals and operations. It can be updated to adapt to the touchscreen or improve the user experience. The touchscreen firmware is stored in a first storage module, which is a storage module configured within the electronic device. This first storage module cannot be in both read and write modes simultaneously; that is, data cannot be read from and written to the first storage module at the same time.
[0077] In response to the detection of an update operation for the touchscreen firmware, it indicates that the touchscreen firmware needs to be updated. When updating the touchscreen firmware, content needs to be written to the first storage module. Therefore, in response to the detection of an update operation for the touchscreen firmware, a first mode switching instruction is triggered to instruct the first storage module to switch from read mode to write mode.
[0078] In some embodiments, an update operation on the touchscreen firmware is triggered upon the first startup of the electronic device. For example, to configure the touch functionality of the electronic device upon its first startup, an update operation on the touchscreen firmware may be triggered to ensure that the user can use the electronic device normally after startup. Alternatively, an update operation on the touchscreen firmware may be triggered when a trigger operation on an update control associated with the touchscreen firmware is detected. For example, during the user's use of the electronic device, to meet more user needs or improve the user experience, the user may trigger an update control associated with the touchscreen firmware to update the touchscreen firmware. The update control associated with the touchscreen firmware may be located in the system settings interface or other interfaces of the electronic device; this disclosure does not limit this.
[0079] In some embodiments, after the touchscreen firmware update is completed, in response to detecting that the touchscreen firmware update is complete, a second mode switching instruction can be triggered to send a second mode switching instruction to the first storage module, causing the first storage module to switch from write mode to read mode, so that other modules can continue to read from the first storage module.
[0080] In step S102, in response to the first mode switching command, the first preset data stored in the first storage module is transferred to the second storage module. The first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the screen of the electronic device.
[0081] The first storage module and the second storage module are two different types of storage modules, and there is a data connection between the first storage module and the second storage module, that is, the first storage module and the second storage module can transfer data to each other. For example, the first storage module is RRAM and the second storage module is SRAM (Static Random-Access Memory).
[0082] The first storage module has the characteristic that it cannot be in both write mode and read mode at the same time. In response to the first mode switching command, it means that the first storage module needs to switch from read mode to write mode. During the first storage module is in write mode, it is no longer possible to read from the first storage module. In order to facilitate other modules to read the first preset data stored in the first storage module during the first storage module is in write mode, the first preset data stored in the first storage module is transferred to the second storage module before the first storage module switches to write mode. That is, the first preset data is stored in the second storage module.
[0083] The first preset data refers to data related to the display of the electronic device. The first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the electronic device's screen. For example, the image correction data may be gamma data. Of course, the first preset data may also include other data; this embodiment does not limit the specific content of the first preset data.
[0084] In step S103, while writing the second preset data into the first storage module, the first preset data is read from the second storage module. The second preset data is used to update the touch screen firmware.
[0085] After the first storage module switches to write mode, second preset data is written into the first storage module. The second preset data is used to update the touch screen firmware. For example, the second preset data may include data for describing new functions added to the touch screen firmware, data for modifying the touch screen firmware, data for optimizing the performance of the touch screen, etc. The specific content of the second preset data is not limited in this embodiment.
[0086] Since the first preset data has already been stored in the second storage module, reading from the second storage module is not affected when the first storage module is in write mode. Therefore, while writing the second preset data into the first storage module, the first preset data can be read from the second storage module, so that the display can be based on the first preset data, ensuring normal display while the touch screen firmware is updated.
[0087] Step S104: Display based on the first preset data.
[0088] After reading the first preset data from the second storage module, the data can be displayed based on the first preset data.
[0089] In some embodiments, the screen can be set based on first preset data, for example, based on image correction data, to adjust the screen's brightness and contrast to ensure normal screen display.
[0090] The method provided in this disclosure addresses a first storage module that cannot simultaneously be in read and write modes. When the first storage module needs to update the touchscreen firmware (i.e., when writing is required in the first storage module), the image correction data stored in the first storage module is first transferred to a second storage module. Subsequently, while writing data for updating the touchscreen firmware into the first storage module, the image correction data can be read from the second storage module. The display is then based on the read image correction data, ensuring that image correction data can be read from the second storage module during the data writing phase in the first storage module. This allows the electronic device to display normally, avoids display abnormalities, and improves the user experience. Furthermore, the second storage module is an existing storage module in the electronic device; normal display can be ensured through optimization of the data read / write process without adding new storage resources, thus reducing costs and power consumption.
[0091] In some embodiments, the first preset data may include control data in addition to image correction data. The control data is used to configure the image compensation data in the second storage module. The image compensation data is used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed. Optionally, the image compensation data may also be referred to as image compensation IP (Intellectual Property). For example, the image compensation IP kernel may include a crosstalk image compensation IP kernel or other image compensation kernels. Image correction data and control data are two different types of data and can be read from the second storage module by different modules. The following describes... Figure 2 The illustrated embodiments illustrate this.
[0092] Figure 2 This is a flowchart illustrating a data read / write process according to an exemplary embodiment, performed by an electronic device. See also... Figure 2 The method includes the following steps:
[0093] In step S201, in response to detecting an update operation to the touchscreen firmware, a first mode switching command is triggered.
[0094] In step S202, in response to the first mode switching command, the first preset data stored in the first storage module is transferred to the second storage module.
[0095] In step S203, while writing the second preset data into the first storage module, in response to the first operation, the image correction data stored in the second storage module is transferred to the image correction module.
[0096] The first operation is the operation of the image correction module reading image correction data from the second storage module. There is a data connection between the image correction module and the second storage module, that is, the image correction module and the second storage module can transfer data to each other.
[0097] In response to the first operation, the image correction data stored in the second storage module is transferred to the image correction module, that is, the image correction data is read from the second storage module through the image correction module.
[0098] In some embodiments, after storing the first preset data in the second storage module, in order for the image correction module to read the image correction data from the second storage module, a first switching instruction needs to be sent to the image correction module. The first switching instruction is used to instruct the image correction module to switch from reading data from the first storage module to reading data from the second storage module. In this case, a first operation is triggered in response to the first switching instruction to the image correction module.
[0099] The first switching command is triggered in response to an update operation on the touchscreen firmware. That is, when an update operation on the touchscreen firmware is detected, it can be determined that the first storage module needs to switch to write mode. In order for the image correction module to read image correction data during the touchscreen firmware update, the first switching command is triggered to instruct the image correction module to switch from reading data from the first storage module to reading data from the second storage module.
[0100] In step S204, while writing the second preset data into the first storage module, in response to the third operation, the control data stored in the second storage module is transmitted to the display process module.
[0101] The third operation is the operation of the display process module reading control data from the second storage module. There is a data connection between the display process module and the second storage module, that is, the display process module and the second storage module can transfer data to each other.
[0102] In response to the third operation, the control data stored in the second storage module is transmitted to the display process module, that is, the control data is read from the second storage module through the display process module.
[0103] In some embodiments, since the control data is used to configure the image compensation data in the second storage module, the image compensation data also needs to be read from the second storage module at the same time as the control data is read from the second storage module by the display process module, and the image compensation data is configured based on the control data.
[0104] In some embodiments, after storing the first preset data in the second storage module, in order for the display process module to read control data from the second storage module, a third switching instruction needs to be issued to the display process module. The third switching instruction is used to instruct the display process module to switch from reading data from the first storage module to reading data from the second storage module. In this case, a third operation is triggered in response to the third switching instruction to the display process module.
[0105] The third switching instruction is triggered in response to an update operation on the touchscreen firmware. That is, when an update operation on the touchscreen firmware is detected, it can be determined that the first storage module needs to switch to write mode. In order for the display process module to read control data during the touchscreen firmware update, the third switching instruction is triggered to instruct the display process module to switch from reading data from the first storage module to reading data from the second storage module.
[0106] It should be noted that the above implementation is only an example of executing step S203 first and then step S204. In another embodiment, steps S203 and S204 can be executed simultaneously, or step S204 can be executed first and then step S203.
[0107] Another point to note is that after the image correction data is transmitted to the image correction module, the image to be displayed can be processed based on the image correction data in the image correction module, or the image correction data can be transmitted to other modules through the image correction module. Similarly, after the control data is transmitted to the display process module, image compensation data can be configured based on the control data in the display process module, and then the image to be displayed can be processed based on the image compensation data, or the control data can be transmitted to other modules through the display process module. This embodiment of the present disclosure does not limit the display process after reading the image correction data and control data from the second storage module.
[0108] In this embodiment, a data connection is added between the image correction module and the second storage module, so that the image correction module can read image correction data from the second storage module. There is also a data connection between the display process module and the second storage module, so that the display process module can read control data from the second storage module. This allows the image correction module to perform corresponding operations based on the image correction data, and the display process module to perform corresponding operations based on the control data, ensuring the normal display of the electronic device.
[0109] Figure 3 This is a flowchart illustrating a data read / write process according to an exemplary embodiment, performed by an electronic device. See also... Figure 3 The method includes the following steps:
[0110] In step S301, in response to detecting an update operation to the touchscreen firmware, a first mode switching command is triggered.
[0111] In step S302, in response to the first mode switching command, the first preset data stored in the first storage module is transferred to the second storage module.
[0112] Step S303: Stop reading image compensation data from the second storage module.
[0113] In some embodiments, reading all image compensation data in the second storage module can be stopped, or reading only a portion of the image compensation data in the second storage module can be stopped. For example, if the second storage module stores first image compensation data and second image compensation data, where the first image compensation data is used for image enhancement processing of the image to be displayed and the second image compensation data is used for image correction processing of the image to be displayed, then reading both the first and second image compensation data can be stopped. Alternatively, reading only the first image compensation data can be stopped, or reading only the second image compensation data can be stopped.
[0114] In this embodiment of the disclosure, after the first preset data is stored in the second storage module, in order to avoid the image compensation data originally cached in the second storage module from affecting the reading of the first preset data, the reading of the image compensation data in the second storage module can be stopped, thereby reducing the use of the cache in the second storage module.
[0115] Step S304: Write the second preset image into the first storage module, and update the touch screen firmware in the first storage module based on the second preset image.
[0116] In step S305, in response to the first operation, the image correction data stored in the second storage module is transferred to the image correction module.
[0117] Step S306: In response to detecting that the touchscreen firmware update is complete, a second mode switching command and a second switching command are triggered, and in response to the second mode switching command and the second switching command, a second operation is triggered.
[0118] After the touchscreen firmware update in the first storage module is completed, a second mode switching command needs to be sent to the first storage module. The second mode switching command is used to instruct the first storage module to switch from write mode to read mode. In order for the image correction module to continue reading image correction data from the first storage module, a second switching command needs to be sent to the image correction module. The second switching command is used to instruct the image correction module to switch from reading data from the second storage module to reading data from the first storage module. In this case, in response to the second mode switching command and the second switching command, a second operation is triggered so that the image correction module reads image correction data from the first storage module.
[0119] In step S307, in response to the third operation, the control data stored in the second storage module is transferred to the display process module.
[0120] In step S308, in response to detecting that the touchscreen firmware update is complete, a second mode switching command and a fourth switching command are triggered, and in response to the second mode switching command and the fourth switching command, a fourth operation is triggered.
[0121] After the touchscreen firmware update in the first storage module is completed, a second mode switching command needs to be sent to the first storage module. The second mode switching command is used to instruct the first storage module to switch from write mode to read mode. In order for the display process module to read control data from the first storage module, a fourth switching command needs to be sent to the display process module. The fourth switching command is used to instruct the display process module to switch from reading data from the second storage module to reading data from the first storage module. In this case, in response to the second mode switching command to the first storage module and the fourth switching command to the display process module, a fourth operation is triggered so that the display process module reads control data from the first storage module.
[0122] It should be noted that steps S305-S306 and S306-S307 are two parallel methods. In another embodiment, steps S306-S307 may be omitted, or steps S305-S306 and S306-S307 may be executed simultaneously.
[0123] In this embodiment of the disclosure, by issuing corresponding switching instructions to the image correction module and the display process module, it is ensured that the image correction module and the display process module can read the corresponding data from the correct storage module. This avoids the image correction module and the display process module still reading from the first storage module when the first storage module cannot read the data, or avoids the image correction module and the display process module still reading from the second storage module when it is no longer necessary to read from the second storage module, thereby reducing unnecessary erroneous operations and improving data reading efficiency.
[0124] In one example, Figure 4 This is a schematic diagram illustrating a display IC architecture according to an exemplary embodiment. Figure 4 As can be seen, in the display IC architecture of this disclosure embodiment, there is a data connection between RRAM and SRAM (e.g., Figure 4 As shown by the dashed arrow in the middle, there is a data connection between the SRAM and the Gamma module (e.g., Figure 4 (As shown by the dashed arrow in the middle), and SRAM is an existing module in the display IC architecture; no new modules have been added. The display IC architecture includes the following modules: MIPIDSC (Mobile Industry Processor Interface Display Command Set), SPI I / O (Serial Peripheral Interface Input / Output), OSC (Oscillator), Tcon (Timing Control), Gamma module, Display Process module, Demura module, SRAM, RRAM, Powermanagement module, DSP (Digital Signal Processor), Txcontrol (Text Processing) module, Timer, S / D (Source / Drain), GOA (GateDriven on Array) module, ADC (Analog to Digital Converter), and AFE (Analog Front End). The connections between these modules are as follows: Figure 4 As shown.
[0125] In one example, Figure 5A This is a flowchart illustrating a display method in a related art according to an exemplary embodiment, from... Figure 5A As can be seen, in the relevant technology, RRAM responds to the first mode switching command and switches to write mode. At this time, RRAM updates TP firmware, but the Gamma module cannot read data from RRAM, resulting in a black screen or abnormal display.
[0126] Figure 5B This is a flowchart illustrating a display method according to an exemplary embodiment, from... Figure 5B It can be seen that, in the embodiments of this disclosure, based on the above... Figure 4 The display IC architecture shown in the diagram responds to the first mode switching command by first transferring the Gamma data and control data stored in the RRAM to the SRAM. Then, the RRAM updates the TP firmware normally, while the Gamma module can read the Gamma data from the SRAM and the Display Process module can read the control data from the SRAM, thus enabling normal display.
[0127] As can be seen from the above examples, the display method in this embodiment does not require the addition of a new storage module compared with the display methods in related technologies. Furthermore, while the RRAM (i.e., the first storage module) is updating the TP firmware normally, the Gamma module (i.e., the image correction module) and the Display Process module (i.e., the display process module) can still read the corresponding data normally from the SRAM (i.e., the second storage module). In other words, the display anomaly problem that occurs when writing data in the first storage module can be solved by utilizing the existing storage space and optimizing the data read and write process.
[0128] Figure 6 This is a block diagram of a display device according to an exemplary embodiment. The display device includes a processing module 601, a first storage module 602, a second storage module 603, and a display module 604. The first storage module 602 cannot be in read mode and write mode simultaneously.
[0129] The processing module 601 is used to trigger a first mode switching instruction in response to the detection of an update operation to the touch screen firmware; the first mode switching instruction is used to instruct the first storage module 602 to switch from read mode to write mode;
[0130] In response to a first mode switching command, the first storage module 602 transmits the first preset data stored in the first storage module 602 to the second storage module 603, so that while writing the second preset data into the first storage module 602, the first preset data is read out from the second storage module 603. The first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the screen of the electronic device. The second preset data is used to update the touch screen firmware stored in the first storage module 602.
[0131] Display module 604 is used to display data based on the first preset data.
[0132] In some embodiments, the display device further includes an image correction module;
[0133] The second storage module 603 is used to transmit the image correction data stored in the second storage module 603 to the image correction module in response to the first operation; the first operation is the operation of the image correction module reading the image correction data from the second storage module 603.
[0134] In some embodiments, the processing module 601 is further configured to trigger a first switching instruction in response to a firmware update operation; the first switching instruction is configured to instruct the image correction module to switch from reading data from the first storage module 602 to reading data from the second storage module 603;
[0135] The image correction module is used to trigger the first operation in response to the first switching command.
[0136] In some embodiments, the processing module 601 is further configured to trigger a second mode switching instruction and a second switching instruction in response to detecting that the touch screen firmware update is complete; the second mode switching instruction is configured to instruct the first storage module 602 to switch from write mode to read mode, and the second switching instruction is configured to instruct the image correction module to switch from reading data from the second storage module 603 to reading data from the first storage module 602.
[0137] The image correction module is also used to trigger a second operation in response to a second mode switching command and a second switching command; the second operation is the operation of the image correction module reading image correction data from the first storage module 602.
[0138] In some embodiments, the display device further includes a display process module;
[0139] The second storage module 603 is used to transmit the control data stored in the second storage module 603 to the display process module in response to the third operation; the third operation is the operation of the display process module reading the control data from the second storage module 603, the control data being used to configure the image compensation data in the second storage module 603, and the image compensation data being used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed.
[0140] In some embodiments, the processing module 601 is further configured to trigger a third switching instruction in response to a firmware update operation; the third switching instruction is configured to instruct the display process module to switch from reading data from the first storage module 602 to reading data from the second storage module 603.
[0141] The display process module is used to respond to a third switching command and trigger a third operation.
[0142] In some embodiments, the processing module 601 is further configured to trigger a second mode switching instruction and a fourth switching instruction in response to detecting that the touch screen firmware update is complete; the second mode switching instruction is configured to instruct the first storage module 602 to switch from write mode to read mode, and the fourth switching instruction is configured to instruct the display process module to switch from reading data from the second storage module 603 to reading data from the first storage module 602.
[0143] The display process module is also used to trigger a fourth operation in response to the second mode switching command and the fourth switching command; the fourth operation is the operation of the display process module reading control data from the first storage module 602.
[0144] In some embodiments, the first storage module 602 is used to update the touch screen firmware in the first storage module 602 based on second preset data.
[0145] In some embodiments, the second storage module 603 is used to stop reading the image compensation data in the second storage module 603; the image compensation data is used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed.
[0146] In some embodiments, the processing module 601 is further configured to trigger an update operation on the touchscreen firmware when the electronic device is first started; or,
[0147] The processing module 601 is also configured to trigger an update operation on the touch screen firmware when a trigger operation on an update control associated with the touch screen firmware is detected.
[0148] Of course, the display device may also include other modules, such as a power supply module, an input / output module, a timer, a digital signal processor, an analog-to-digital converter, etc.
[0149] This disclosure also provides an electronic device, including: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to execute the display method described in the above embodiments.
[0150] Figure 7 This is a block diagram of an electronic device 700 according to an exemplary embodiment.
[0151] Reference Figure 7 The electronic device 700 may include one or more of the following components: a processing component 702, a memory 704, a power supply component 706, a multimedia component 708, an audio component 710, an input / output (I / O) interface 712, a sensor component 714, and a communication component 716.
[0152] Processing component 702 typically controls the overall operation of electronic device 700, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
[0153] Memory 704 is configured to store various types of data to support the operation of electronic device 700. Examples of this data include instructions for any application or method operating on electronic device 700, contact data, phonebook data, messages, pictures, videos, etc. Memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0154] Power supply component 706 provides power to various components of electronic device 700. Power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 700.
[0155] Multimedia component 708 includes a screen that provides an output interface between the electronic device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 708 includes a front-facing camera and / or a rear-facing camera. When the electronic device 700 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0156] Audio component 710 is configured to output and / or input audio signals. For example, audio component 710 includes a microphone (MIC) configured to receive external audio signals when electronic device 700 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 704 or transmitted via communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
[0157] I / O interface 712 provides an interface between processing component 702 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0158] Sensor assembly 714 includes one or more sensors for providing state assessments of various aspects of electronic device 700. For example, sensor assembly 714 can detect the on / off state of electronic device 700, the relative positioning of components such as the display and keypad of electronic device 700, changes in position of electronic device 700 or a component of electronic device 700, the presence or absence of user contact with electronic device 700, orientation or acceleration / deceleration of electronic device 700, and temperature changes of electronic device 700. Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 714 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0159] Communication component 716 is configured to facilitate wired or wireless communication between electronic device 700 and other devices. Electronic device 700 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 716 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 716 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0160] In an exemplary embodiment, the electronic device 700 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0161] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of an electronic device 700 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0162] This disclosure also provides a non-transitory computer-readable storage medium, wherein when the instructions in the storage medium are executed by the processor of an electronic device, the electronic device is able to perform the display method described in the above embodiments.
[0163] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the display method described in the above embodiments.
[0164] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0165] It should be understood that the present invention is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A display method, characterized in that, include: In response to the detection of an update operation to the touchscreen firmware, a first mode switching command is triggered; The touchscreen firmware is stored in the first storage module. The first mode switching instruction is used to instruct the first storage module to switch from read mode to write mode. The first storage module cannot be in read mode and write mode at the same time. In response to the first switching command, the first preset data stored in the first storage module is transferred to the second storage module; The first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the screen of the electronic device; While writing the second preset data into the first storage module, the first preset data is read out from the second storage module; The second preset data is used to update the touchscreen firmware; The data is displayed based on the first preset data.
2. The display method according to claim 1, characterized in that, Reading the first preset data from the second storage module includes: In response to the first operation, the image correction data stored in the second storage module is transferred to the image correction module; the first operation is the operation of the image correction module reading the image correction data from the second storage module.
3. The display method according to claim 2, characterized in that, The method further includes: In response to an update operation on the touchscreen firmware, a first switching instruction is triggered; the first switching instruction is used to instruct the image correction module to switch from reading data from the first storage module to reading data from the second storage module; In response to the first switching command, the first operation is triggered.
4. The display method according to claim 3, characterized in that, The method further includes: In response to the detection that the touchscreen firmware update is complete, a second mode switching instruction and a second switching instruction are triggered; the second mode switching instruction is used to instruct the first storage module to switch from the write mode to the read mode, and the second switching instruction is used to instruct the image correction module to switch from reading data from the second storage module to reading data from the first storage module; In response to the second mode switching command and the second switching command, a second operation is triggered; the second operation is the operation of the image correction module reading the image correction data from the first storage module.
5. The display method according to claim 1, characterized in that, The first preset data also includes control data, which is used to configure the image compensation data in the second storage module. The image compensation data is used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed. Reading the first preset data from the second storage module includes: In response to the third operation, the control data stored in the second storage module is transmitted to the display process module; The third operation is the operation of the display process module reading the control data from the second storage module.
6. The display method according to claim 5, characterized in that, The method further includes: In response to an update operation on the touchscreen firmware, a third switching instruction is triggered; the third switching instruction is used to instruct the display process module to switch from reading data from the first storage module to reading data from the second storage module; In response to the third switching instruction, the third operation is triggered.
7. The display method according to claim 6, characterized in that, The method further includes: In response to the detection that the touchscreen firmware update is complete, a second mode switching instruction and a fourth switching instruction are triggered; the second mode switching instruction is used to instruct the first storage module to switch from the write mode to the read mode, and the fourth switching instruction is used to instruct the display process module to switch from reading data from the second storage module to reading data from the first storage module; In response to the second mode switching command and the fourth switching command, a fourth operation is triggered; the fourth operation is the operation of the display process module reading the control data from the first storage module.
8. The display method according to claim 1, characterized in that, The method further includes: Based on the second preset data, update the touchscreen firmware in the first storage module.
9. The display method according to claim 1, characterized in that, Before reading the first preset data from the second storage module, the method further includes: Stop reading image compensation data from the second storage module; the image compensation data is used for at least one of image enhancement processing, image correction processing, and image noise reduction processing of the image to be displayed.
10. The display method according to any one of claims 1 to 9, characterized in that, The method further includes: When the electronic device is first powered on, an update operation on the touchscreen firmware is triggered; or, When a trigger operation is detected on the update control associated with the touchscreen firmware, an update operation on the touchscreen firmware is triggered.
11. A display device, characterized in that, include: The system comprises a processing module, a first storage module, a second storage module, and a display module, wherein the first storage module cannot be in both the read mode and the write mode simultaneously. The processing module is used to trigger a first mode switching command in response to detecting an update operation to the touch screen firmware; the touch screen firmware is stored in the first storage module, and the first mode switching command is used to instruct the first storage module to switch from read mode to write mode; The first storage module is used to respond to the first mode switching instruction to transfer the first preset data stored in the first storage module to the second storage module, so as to read the first preset data from the second storage module at the same time as writing the second preset data into the first storage module; The first preset data includes at least image correction data, which is used to adjust the brightness and contrast of the screen of the electronic device; the second preset data is used to update the touch screen firmware. The display module is used to display data based on the first preset data.
12. The display device according to claim 11, characterized in that, The display device also includes an image correction module; The second storage module is used to transmit the image correction data stored in the second storage module to the image correction module in response to the first operation; the first operation is the operation of the image correction module reading the image correction data from the second storage module.
13. The display device according to claim 12, characterized in that, The processing module is further configured to trigger a first switching instruction in response to an update operation of the touchscreen firmware; the first switching instruction is configured to instruct the image correction module to switch from reading data from the first storage module to reading data from the second storage module; The image correction module is used to trigger the first operation in response to the first switching command.
14. The display device according to claim 13, characterized in that, The processing module is further configured to trigger a second mode switching instruction and a second switching instruction in response to detecting that the touch screen firmware update is complete; the second mode switching instruction is configured to instruct the first storage module to switch from the write mode to the read mode, and the second switching instruction is configured to instruct the image correction module to switch from reading data from the second storage module to reading data from the first storage module; The image correction module is also configured to trigger a second operation in response to the second mode switching command and the second switching command; the second operation is the operation of the image correction module reading the image correction data from the first storage module.
15. The display device according to claim 11, characterized in that, The display device further includes a display process module; The second storage module is used to transmit control data stored in the second storage module to the display process module in response to the third operation; the third operation is the operation of the display process module reading the control data from the second storage module, the control data being used to configure image compensation data in the second storage module, the image compensation data being used to perform at least one of image enhancement processing, image correction processing, and image noise reduction processing on the image to be displayed.
16. The display device according to claim 15, characterized in that, The processing module is further configured to trigger a third switching instruction in response to an update operation of the touchscreen firmware; the third switching instruction is configured to instruct the display process module to switch from reading data from the first storage module to reading data from the second storage module; The display process module is used to trigger the third operation in response to the third switching command.
17. The display device according to claim 16, characterized in that, The processing module is further configured to trigger a second mode switching instruction and a fourth switching instruction in response to detecting that the touchscreen firmware update is complete; the second mode switching instruction is configured to instruct the first storage module to switch from the write mode to the read mode, and the fourth switching instruction is configured to instruct the display process module to switch from reading data from the second storage module to reading data from the first storage module; The display process module is also configured to trigger a fourth operation in response to the second mode switching instruction and the fourth switching instruction; the fourth operation is the operation of the display process module reading the control data from the first storage module.
18. The display device according to claim 11, characterized in that, The first storage module is used to update the touch screen firmware in the first storage module based on the second preset data.
19. The display device according to claim 11, characterized in that, The second storage module is used to stop reading the image compensation data in the second storage module; the image compensation data is used to perform at least one of the following on the image to be displayed: image enhancement processing, image correction processing, and image noise reduction processing.
20. The display device according to any one of claims 11 to 19, characterized in that, The processing module is also configured to trigger an update operation on the touchscreen firmware when the electronic device is first started; or, The processing module is also configured to trigger an update operation on the touchscreen firmware when a trigger operation on an update control associated with the touchscreen firmware is detected.
21. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the display method as described in any one of claims 1-10.
22. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the display method as described in any one of claims 1-10.