A method and apparatus for firmware upgrade of a capacitive screen of a mobile terminal
Patent Information
- Application Number
- CN202211277994.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-19
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2042-10-19
AI Technical Summary
[0003]本申请实施例的目的在于提供一种移动终端的电容屏固件升级的方法和装置,旨在解决如何避免出现升级固件程序的电容屏量产信息与实际电容屏的量产信息不对应的现象的技术问题
[0037]本申请实施例通过获取电容屏项目名称;在所述多个升级固件程序中搜索与所述电容屏项目名称匹配的升级固件程序,得到目标升级固件程序;利用驱动程序将eeprom设置为可读写模式,读取所述电容屏的IC芯片的量产信息,将所述量产信息写入所述目标升级固件程序,由此可以确保量产信息写入的准确性;接着,擦除所述eeprom的原始固件程序,并将所述目标升级固件程序写入所述eeprom,从而实现移动终端的电容屏的固件升级。与现有技术相比,本申请实施例通过驱动程序代替开发人员人工操作,实现量产信息准确的添加至对应的升级固件程序。因此,本申请提供的移动终端的电容屏固件升级的方法可以有效地避免出现升级固件程序的电容屏量产信息与实际电容屏的量产信息不对应的现象。
Smart Images

Figure CN115629786B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mobile terminal technology, specifically to a method and apparatus for upgrading the firmware of a capacitive screen on a mobile terminal. Background Technology
[0002] Traditional methods for upgrading capacitive touchscreen firmware involve erasing the original firmware from memory and directly writing the upgrade firmware into memory. Furthermore, the upgrade firmware cannot be modified during the entire upgrade process. Therefore, when developers improve the functionality and performance of the original firmware, they typically need to include the corresponding mass production information (i.e., factory information) of the capacitive touchscreen in the upgrade firmware to ensure better compatibility. However, due to the numerous tasks of developers and the diversity of capacitive touchscreen types, this method of adding mass production information to the upgrade firmware by developers can easily lead to discrepancies between the mass production information in the upgrade firmware and the actual mass production information of the capacitive touchscreen, resulting in firmware upgrade failure. Summary of the Invention
[0003] The purpose of this application is to provide a method and apparatus for upgrading the firmware of a capacitive screen in a mobile terminal, aiming to solve the technical problem of how to avoid the phenomenon that the mass production information of the capacitive screen in the firmware upgrade program does not correspond to the actual mass production information of the capacitive screen.
[0004] The technical solutions provided in this application are as follows:
[0005] The first aspect of this application provides a method for upgrading the firmware of a capacitive touchscreen on a mobile terminal, including:
[0006] S1: Obtain drivers and multiple firmware upgrade programs;
[0007] S2: Run the driver;
[0008] S3: Get the name of the capacitive touchscreen project;
[0009] S4: Search among the multiple upgrade firmware programs for an upgrade firmware program that matches the name of the capacitive screen project to obtain the target upgrade firmware program;
[0010] S5: Set the EEPROM (Electrically Erasable Programmable Read-Only Memory) to read / write mode, read the mass production information of the IC chip of the capacitive touchscreen, and write the mass production information into the target upgrade firmware program;
[0011] S6: Erase the original firmware of the EEPROM and write the target upgrade firmware into the EEPROM.
[0012] In some technical solutions, after the steps of erasing the original firmware of the EEPROM and writing the target upgrade firmware into the EEPROM, the method for upgrading the capacitive screen firmware of the mobile terminal further includes:
[0013] The program to be verified is read from the EEPROM, and the program to be verified is the upgrade firmware program stored in the EEPROM;
[0014] Verify the target upgrade firmware program against the program to be verified. If the target upgrade firmware program is the same as the program to be verified, the upgrade is considered successful, and the EEPROM is set to normal mode.
[0015] In some technical solutions, after the step of searching for an upgrade firmware program matching the capacitive screen project name among the multiple upgrade firmware programs to obtain the target upgrade firmware program, the method for upgrading the capacitive screen firmware of the mobile terminal further includes:
[0016] Get the capacitive touchscreen model;
[0017] Check whether the TP (Touch Plane) model in the target upgrade firmware program is the same as the capacitive screen model. If they are the same, execute S5; if they are different, execute S4.
[0018] In some technical solutions, before the steps of setting the EEPROM to read / write mode, reading the mass production information of the capacitive touchscreen's IC chip, and writing the mass production information into the target upgrade firmware program, the method for upgrading the capacitive touchscreen firmware of the mobile terminal further includes:
[0019] Obtain the original firmware version number of the original firmware program;
[0020] The original firmware version number is compared with the target firmware version number of the target upgrade firmware program. If the target firmware version number is greater than the original firmware version number, then S5 is executed; if the target firmware version number is equal to or less than the original firmware version number, then no upgrade is required.
[0021] In some technical solutions, the steps of obtaining the driver and multiple upgrade firmware programs include:
[0022] Obtain the upgrade installation package;
[0023] Unzip the upgrade installation package to obtain the driver and the multiple upgrade firmware programs.
[0024] In some technical solutions, the method of obtaining the driver and multiple upgrade firmware programs is through OTA (Over-the-Air Technology).
[0025] In some technical solutions, the mass production information includes mass production time, manufacturer information, and production batch number information.
[0026] In some technical solutions, before the step of erasing the original firmware program of the EEPROM and writing the target upgrade firmware program into the EEPROM, the method for upgrading the capacitive screen firmware of the mobile terminal further includes:
[0027] Obtain the system time of the IC chip;
[0028] Write the system time into the target upgrade firmware program.
[0029] A second aspect of this application provides an apparatus for upgrading the firmware of a capacitive touchscreen of a mobile terminal, comprising:
[0030] The first acquisition module is used to acquire drivers and multiple upgrade firmware programs;
[0031] The runtime module is used to run the driver.
[0032] The second acquisition module is used to obtain the name of the capacitive touch screen project.
[0033] The search module is used to search for an upgrade firmware program that matches the name of the capacitive screen project among the multiple upgrade firmware programs, and obtain the target upgrade firmware program.
[0034] The setting module is used to set the EEPROM to read / write mode, read the mass production information of the IC chip of the capacitive touch screen, and write the mass production information into the target upgrade firmware program.
[0035] The writing module is used to erase the original firmware program of the EEPROM and write the target upgrade firmware program into the EEPROM.
[0036] The embodiments of this application include the following beneficial effects:
[0037] This application embodiment obtains the capacitive screen project name; searches among multiple upgrade firmware programs for an upgrade firmware program matching the capacitive screen project name to obtain the target upgrade firmware program; uses a driver to set the EEPROM to read / write mode, reads the mass production information of the capacitive screen's IC chip, and writes the mass production information into the target upgrade firmware program, thereby ensuring the accuracy of the mass production information writing; then, erases the original firmware program of the EEPROM and writes the target upgrade firmware program into the EEPROM, thereby realizing the firmware upgrade of the mobile terminal's capacitive screen. Compared with the prior art, this application embodiment uses a driver program to replace manual operation by developers, realizing the accurate addition of mass production information to the corresponding upgrade firmware program. Therefore, the method for upgrading the capacitive screen firmware of a mobile terminal provided by this application can effectively avoid the phenomenon that the capacitive screen mass production information in the upgrade firmware program does not correspond to the actual capacitive screen mass production information.
[0038] This application integrates multiple upgrade firmware programs into one upgrade installation package, which greatly improves the compatibility and convenience of the upgrade installation package.
[0039] Other advantages, objectives, and features of the embodiments of this application will be apparent in part from the following description, and in part will be understood by those skilled in the art through study and practice of the embodiments of this application. Attached Figure Description
[0040] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0041] Figure 1 Flowcharts of some embodiments of the method for upgrading the capacitive screen firmware of a mobile terminal according to this application;
[0042] Figure 2 A flowchart of a method for upgrading the capacitive touchscreen firmware of a mobile terminal according to an embodiment of this application, as shown in some other embodiments;
[0043] Figure 3 A flowchart of a method for upgrading the capacitive touchscreen firmware of a mobile terminal according to an embodiment of this application, in some other embodiments;
[0044] Figure 4 A flowchart of a method for upgrading the capacitive touchscreen firmware of a mobile terminal according to an embodiment of this application, in some other embodiments;
[0045] Figure 5A flowchart of a method for upgrading the capacitive touchscreen firmware of a mobile terminal according to an embodiment of this application, in some other embodiments;
[0046] Figure 6 A flowchart of a method for upgrading the capacitive touchscreen firmware of a mobile terminal according to an embodiment of this application, in some other embodiments;
[0047] Figure 7 Block diagrams of an apparatus for upgrading the capacitive screen firmware of a mobile terminal according to embodiments of this application in some embodiments. Detailed Implementation
[0048] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0049] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0050] It should be noted that, in this document, the terms “comprising,” “including,” or any other variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or device.
[0051] The specific implementation methods of the embodiments of this application are described in detail below.
[0052] <Methods for Upgrading the Firmware of Capacitive Screens on Mobile Devices>
[0053] like Figure 1 The image shows a method for upgrading the capacitive touchscreen firmware of a mobile terminal according to an embodiment of this application. Figure 1 The method for upgrading the capacitive touchscreen firmware of the mobile terminal includes:
[0054] S1: Obtain drivers and multiple firmware upgrade programs.
[0055] Step S1 involves the mobile terminal requesting the server to download the data via OTA.
[0056] The mobile terminal can be a portable terminal with communication functions, such as a mobile phone, tablet computer, or PDA.
[0057] S2: Run the driver.
[0058] In this embodiment, the mobile terminal runs the driver program.
[0059] S3: Get the name of the capacitive touchscreen project.
[0060] The capacitive screen project name is the name of the corresponding mobile terminal to which the capacitive screen is applied, for example, such as Xiaomi K40.
[0061] In this embodiment, the driver obtains the capacitive screen project name.
[0062] S4: Search among the multiple upgrade firmware programs for an upgrade firmware program that matches the name of the capacitive screen project to obtain the target upgrade firmware program.
[0063] It should be understood that each of the aforementioned firmware upgrade programs contains a corresponding project name. In this embodiment, the project name of the capacitive screen is compared with the project name of each of the aforementioned firmware upgrade programs. If the two are the same, the corresponding firmware upgrade program is selected as the target firmware upgrade program.
[0064] S5: Set the EEPROM to read / write mode, read the mass production information of the IC chip of the capacitive touchscreen, and write the mass production information into the target upgrade firmware program.
[0065] The mass production information includes mass production time, manufacturer information, and production batch number information.
[0066] S6: Erase the original firmware of the EEPROM and write the target upgrade firmware into the EEPROM.
[0067] In some implementations, such as Figure 2 As shown, after step S6, the method for upgrading the capacitive screen firmware of the mobile terminal further includes:
[0068] S7: Read the program to be verified from the EEPROM, the program to be verified being the upgrade firmware program stored in the EEPROM.
[0069] It should be noted that the upgrade firmware program stored in the EEPROM is the target upgrade firmware program written in step S6.
[0070] S8: Verify the target upgrade firmware program and the program to be verified. If the target upgrade firmware program and the program to be verified are the same, the upgrade is determined to be successful, and the EEPROM is set to normal mode.
[0071] The normal mode is a read-only mode.
[0072] This application embodiment obtains the capacitive screen project name; searches among multiple upgrade firmware programs for an upgrade firmware program matching the capacitive screen project name to obtain the target upgrade firmware program; uses a driver to set the EEPROM to read / write mode, reads the mass production information of the capacitive screen's IC chip, and writes the mass production information into the target upgrade firmware program, thereby ensuring the accuracy of the mass production information writing; then, erases the original firmware program of the EEPROM and writes the target upgrade firmware program into the EEPROM, thereby realizing the firmware upgrade of the mobile terminal's capacitive screen. Compared with the prior art, this application embodiment uses a driver program to replace manual operation by developers, realizing the accurate addition of mass production information to the corresponding upgrade firmware program. Therefore, the method for upgrading the capacitive screen firmware of a mobile terminal provided by this application can effectively avoid the phenomenon that the capacitive screen mass production information in the upgrade firmware program does not correspond to the actual capacitive screen mass production information.
[0073] In some implementations, such as Figure 3 As shown, after step S4, the method for upgrading the capacitive screen firmware of the mobile terminal further includes:
[0074] S11: Get the capacitive touchscreen model.
[0075] The capacitive touchscreen model number is stored in the IC chip. In this embodiment, the driver program obtains the capacitive touchscreen model number from the IC chip.
[0076] The capacitive touchscreen model can be DMT64480T056.
[0077] S12: Detect whether the TP (Touch Plane) model in the target upgrade firmware program is the same as the capacitive screen model. If they are the same, execute S5; if they are different, execute S4.
[0078] In some implementations, such as Figure 4 As shown, prior to step S5, the method for upgrading the capacitive touchscreen firmware of the mobile terminal further includes:
[0079] S21: Obtain the original firmware version number of the original firmware program.
[0080] For example, the original firmware version number may be V1.0.
[0081] S22: Compare the original firmware version number with the target firmware version number of the target upgrade firmware program. If the target firmware version number is greater than the original firmware version number, then execute S5; if the target firmware version number is equal to or less than the original firmware version number, then no upgrade is needed.
[0082] For example, the target firmware version number could be V2.0.
[0083] In other implementations, such as Figure 5 As shown, the method for upgrading the capacitive screen firmware of the mobile terminal can also be implemented according to the following steps:
[0084] 1. After step S3, determine whether the capacitive screen project name exists;
[0085] 2. If the capacitive touchscreen project name exists, then execute steps S4 and S11, and then determine whether the capacitive touchscreen model exists;
[0086] 3. If the capacitive screen model exists, execute S12 and S21, and determine whether the target firmware version number is greater than the original firmware version number. If so, execute S6, and then determine whether the upgrade is successful. If the upgrade is successful, the task is completed (i.e., it ends). If the upgrade is unsuccessful, execute S6 again. If the number of times S6 is executed again exceeds 3, the upgrade operation ends.
[0087] 4. If the capacitive touchscreen model does not exist, or the capacitive touchscreen model is different from the TP model, then write the capacitive touchscreen model into the IC chip, and then execute step S6.
[0088] 5. If the capacitive screen project name does not exist, proceed to step S11, then determine if the capacitive screen model exists. If it exists, proceed to step S6; if it does not exist, write the default capacitive screen model into the IC chip, then proceed to step S6.
[0089] In some implementations, such as Figure 6 As shown, the steps of obtaining the driver and multiple firmware upgrade programs include:
[0090] S31: Obtain the upgrade installation package.
[0091] The upgrade installation package is received by the mobile terminal from the server.
[0092] It should be understood that the upgrade installation package is directly generated by packaging the driver and the multiple upgrade firmware programs, and each upgrade firmware program does not contain an index or other data that occupies physical space.
[0093] This application integrates multiple upgrade firmware programs into a single upgrade installation package, which greatly improves the compatibility and convenience of the upgrade installation package.
[0094] S32: Unzip the upgrade installation package to obtain the driver and the multiple upgrade firmware programs.
[0095] In some embodiments, prior to step S6, the method for upgrading the capacitive touchscreen firmware of the mobile terminal further includes:
[0096] Obtain the system time of the IC chip;
[0097] Write the system time into the target upgrade firmware program.
[0098] Device for upgrading capacitive touchscreen firmware on mobile terminals
[0099] like Figure 7 As shown, a second aspect of this application provides an apparatus for upgrading the capacitive screen firmware of a mobile terminal. The apparatus 100 for upgrading the capacitive screen firmware of the mobile terminal includes:
[0100] The first acquisition module 101 is used to acquire drivers and multiple upgrade firmware programs;
[0101] Module 102 is used to run the driver program;
[0102] The second acquisition module 103 is used to acquire the name of the capacitive screen project.
[0103] The search module 104 is used to search for an upgrade firmware program that matches the name of the capacitive screen project among the plurality of upgrade firmware programs, and obtain the target upgrade firmware program.
[0104] Setting module 105 is used to set EEPROM to read / write mode, read the mass production information of the IC chip of the capacitive touch screen, and write the mass production information into the target upgrade firmware program.
[0105] The writing module 106 is used to erase the original firmware program of the EEPROM and write the target upgrade firmware program into the EEPROM.
[0106] In some embodiments, the apparatus 100 for upgrading the capacitive touchscreen firmware of the mobile terminal further includes:
[0107] The program to be verified reading module is used to read the program to be verified from the EEPROM, wherein the program to be verified is an upgrade firmware program stored in the EEPROM;
[0108] The verification module is used to verify the target upgrade firmware program and the program to be verified. If the target upgrade firmware program and the program to be verified are the same, the upgrade is determined to be successful, and the EEPROM is set to normal mode.
[0109] In some embodiments, the apparatus 100 for upgrading the capacitive touchscreen firmware of the mobile terminal further includes:
[0110] The third acquisition module is used to acquire the capacitive touchscreen model.
[0111] The detection module is used to detect whether the TP model in the target upgrade firmware program is the same as the capacitive screen model. If they are the same, S5 is executed; if they are different, S4 is executed.
[0112] In some embodiments, the apparatus 100 for upgrading the capacitive touchscreen firmware of the mobile terminal further includes:
[0113] The fourth acquisition module is used to acquire the original firmware version number of the original firmware program;
[0114] The comparison module is used to compare the original firmware version number with the target firmware version number of the target upgrade firmware program. If the target firmware version number is greater than the original firmware version number, then S5 is executed; if the target firmware version number is equal to or less than the original firmware version number, then no upgrade is required.
[0115] In some embodiments, the first acquisition module 101 includes:
[0116] The acquisition unit is used to acquire the upgrade installation package;
[0117] The decompression unit is used to decompress the upgrade installation package to obtain the driver and the multiple upgrade firmware programs.
[0118] Although the embodiments of this application have been disclosed above, they are not limited to the applications listed in the specification and implementation methods. They can be applied to various fields suitable for the embodiments of this application. For those skilled in the art, other modifications can be easily made. Therefore, without departing from the general concept defined by the claims and their equivalents, the embodiments of this application are not limited to the specific details and the illustrations shown and described herein.
Claims
1. A method for upgrading the firmware of a capacitive touchscreen in a mobile terminal, characterized in that, include: S1: Obtain drivers and multiple firmware upgrade programs; S2: Run the driver; S3: Get the name of the capacitive touchscreen project; S4: Search among the multiple upgrade firmware programs for an upgrade firmware program that matches the name of the capacitive screen project to obtain the target upgrade firmware program; S5: Set the EEPROM to read / write mode, read the mass production information of the IC chip of the capacitive touchscreen, and write the mass production information into the target upgrade firmware program; S6: Erase the original firmware program of the EEPROM and write the target upgrade firmware program into the EEPROM, wherein each upgrade firmware program does not contain an index or other data that occupies physical space; After the steps of erasing the original firmware of the EEPROM and writing the target upgrade firmware into the EEPROM, the method for upgrading the capacitive touchscreen firmware of the mobile terminal further includes: The program to be verified is read from the EEPROM, and the program to be verified is the upgrade firmware program stored in the EEPROM; The target upgrade firmware program is verified against the program to be verified. If the target upgrade firmware program is the same as the program to be verified, the upgrade is considered successful, and the EEPROM is set to normal mode, which is read-only mode. If the target upgrade firmware program is different from the program to be verified, step S6 is executed again, and the number of times step S6 is executed again shall not exceed 3. After the step of searching for an upgrade firmware program matching the capacitive screen project name among the multiple upgrade firmware programs to obtain the target upgrade firmware program, the method for upgrading the capacitive screen firmware of the mobile terminal further includes: Get the capacitive touchscreen model; Check whether the TP model in the target upgrade firmware program is the same as the capacitive screen model. If they are the same, execute S5; if they are different, execute S4.
2. The method for upgrading the capacitive touchscreen firmware of a mobile terminal according to claim 1, characterized in that, Before the steps of setting the EEPROM to read / write mode, reading the mass production information of the capacitive touchscreen's IC chip, and writing the mass production information into the target upgrade firmware program, the method for upgrading the capacitive touchscreen firmware of the mobile terminal further includes: Obtain the original firmware version number of the original firmware program; The original firmware version number is compared with the target firmware version number of the target upgrade firmware program. If the target firmware version number is greater than the original firmware version number, then S5 is executed; if the target firmware version number is equal to or less than the original firmware version number, then no upgrade is required.
3. The method for upgrading the capacitive screen firmware of a mobile terminal according to claim 2, characterized in that, The steps of obtaining the driver and multiple firmware upgrade programs include: Obtain the upgrade installation package; Unzip the upgrade installation package to obtain the driver and the multiple upgrade firmware programs.
4. The method for upgrading the capacitive screen firmware of a mobile terminal according to claim 3, characterized in that, The method for obtaining the driver and multiple firmware upgrade programs is through OTA (Over-The-Air).
5. The method for upgrading the capacitive touchscreen firmware of a mobile terminal according to claim 4, characterized in that, The mass production information includes mass production time, manufacturer information, and production batch number information.
6. The method for upgrading the capacitive touchscreen firmware of a mobile terminal according to claim 5, characterized in that, Before the steps of erasing the original firmware of the EEPROM and writing the target upgrade firmware into the EEPROM, the method for upgrading the capacitive touchscreen firmware of the mobile terminal further includes: Obtain the system time of the IC chip; Write the system time into the target upgrade firmware program.
7. A device for upgrading the firmware of a capacitive touchscreen in a mobile terminal, characterized in that, The method of claim 1 includes: The first acquisition module is used to acquire drivers and multiple upgrade firmware programs; The runtime module is used to run the driver. The second acquisition module is used to obtain the name of the capacitive touch screen project. The search module is used to search for an upgrade firmware program that matches the name of the capacitive screen project among the multiple upgrade firmware programs, and obtain the target upgrade firmware program. The setting module is used to set the EEPROM to read / write mode, read the mass production information of the IC chip of the capacitive touch screen, and write the mass production information into the target upgrade firmware program. The writing module is used to erase the original firmware program of the EEPROM and write the target upgrade firmware program into the EEPROM.
Citation Information
Patent Citations
Method for upgrading touch screen firmware of intelligent terminal
CN103577213A
Firmware upgrading method and device
CN112148323A