WO2012079301A1 - Method and device for upgrading touch screen firmware of mobile terminal - Google Patents

Method and device for upgrading touch screen firmware of mobile terminal Download PDF

Info

Publication number
WO2012079301A1
WO2012079301A1 PCT/CN2011/070973 CN2011070973W WO2012079301A1 WO 2012079301 A1 WO2012079301 A1 WO 2012079301A1 CN 2011070973 W CN2011070973 W CN 2011070973W WO 2012079301 A1 WO2012079301 A1 WO 2012079301A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
upgrade
firmware
version information
firmware version
Prior art date
Application number
PCT/CN2011/070973
Other languages
French (fr)
Chinese (zh)
Inventor
魏兰英
徐可
杨新力
李伟
潘英
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012079301A1 publication Critical patent/WO2012079301A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Definitions

  • the present invention relates to the field of communications, and in particular to a touch extension firmware upgrade method and apparatus for a mobile terminal.
  • touch screens play an increasingly important role, especially capacitive touch screens, which will lead the main touch screen market in the future due to their long life, finger touch, and ease of use. And it is possible to completely replace the resistive touch screen.
  • the capacitive touch screen is a new thing, the technology is not perfect, the firmware version is often updated, sometimes it needs to solve some bugs (such as linear drift, random data, local failure, etc.), compatibility issues, or need manufacturers to provide more Updated features, which all require upgrading the firmware of the touch screen.
  • the prior art is to upgrade the touch screen firmware by using a special tool.
  • the upgrade method has the following problems: If the touch screen of the mobile terminal needs to be upgraded after being mass-produced, the touch screen needs to be removed, and a special tool is used. Upgrade, in this case, it will be very laborious and easy to damage the touch screen. SUMMARY OF THE INVENTION
  • a primary object of the present invention is to provide a method and apparatus for upgrading a touch screen firmware of a mobile terminal, so as to at least solve the problem that the touch screen firmware upgrade workload is large and the touch screen is easily damaged.
  • a method for upgrading a touch screen firmware of a mobile terminal including: reading firmware version information of a touch screen stored in a user space of the system into a kernel space of the system; Firmware version information, through the touch screen GPIO (General Purpose I/O) port to simulate the upgrade protocol for touch screen firmware upgrade.
  • the firmware version information of the touch screen stored in the user space of the system is read into the kernel space of the system, including: reading the firmware version information stored in the file system of the user space into the proc interface in the kernel driver. In the cache of kernel space.
  • the GPIO port is a clock pin SCL (I2C Serial Clock) for I2C (Inter Integrated Circuit) communication and a data pin SDA (I2C Serial Data, string) on the hardware connector of the touch screen. Line data).
  • the method includes: turning off the touch screen for interrupt of I2C communication, and connecting the SCL and SDA pins Configured as a normal GPIO pin.
  • the upgrade protocol is simulated by the universal input/output port GPIO of the touch screen, and the touch display firmware is upgraded, including: the touch screen chip that needs to be upgraded is in the upgrade mode, and the touch screen chip ID is checked whether the ID is satisfied. Upgrade requirement; if yes, erase the original firmware version information in the touch screen chip; burn the firmware version information read into the kernel space into the touch screen chip.
  • the method further includes: verifying whether the checksum of the firmware version information burned into the touch screen chip is correct, and if yes, setting an upgrade success flag.
  • the upgrade module includes: a check submodule, configured to enable the touch screen chip to be upgraded to be in an upgrade mode, and check whether the touch screen chip ID meets an upgrade requirement; the erase submodule is set to wipe the original firmware version information in the touch screen chip In addition, the sub-module is programmed to burn firmware version information read into the kernel space into the touch screen chip.
  • the upgrade module further includes: a verification submodule, configured to verify whether the checksum of the firmware version information burned into the touch screen chip is correct, and if yes, setting an upgrade success flag.
  • the upgrade protocol is simulated by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA, so that the automatic upgrade of the touch screen firmware can be implemented on the mobile terminal, thereby reducing the upgrade workload.
  • the upgrade is fast and easy to use.
  • FIG. 2 is a block diagram of a touch screen firmware upgrade apparatus according to an embodiment of the present invention
  • FIG. 3 is a touch screen firmware upgrade apparatus module according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of firmware upgrade of a touch screen according to an embodiment of the present invention
  • FIG. 5 is a flowchart of firmware upgrade of a touch screen according to an embodiment of the present invention.
  • the method includes the following steps: Step S102: reading firmware version information of a touch screen stored in a user space of the system into the system. Kernel space; Step S104, emulating the upgrade protocol by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA according to the firmware version information read in.
  • the upgrade protocol is simulated by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA, so that the automatic upgrade of the touch screen firmware can be implemented on the mobile terminal, thereby reducing the upgrade workload.
  • the upgrade speed is fast and easy to use.
  • step S102 the firmware version of the touch screen is placed in the file system of the user space, and the firmware version information is read into the kernel space through the proc interface. If the touch screen firmware is not required to be used after the touch screen firmware upgrade is completed, the touch screen driver cannot be uninstalled during the upgrade.
  • the upgrade is implemented by using the proc interface in the kernel, and the proc interface is placed in the driver of the touch screen, that is, the firmware of the touch screen is upgraded in the kernel driver, so that the touch screen can be used normally without restarting the switch after the upgrade is completed.
  • the general capacitive touch screen is I2C communication.
  • the interface of the touch screen hardware connector generally has five GPIO pins, which are: GND (ground;), SCL (clock), SDA (data), VDD (supply voltage), and INT (interrupt) pin.
  • the firmware upgrade in step S104 is mainly implemented by simulating the upgrade protocol through two gpio ports of SCL and SDA.
  • the data pin SDA and the clock pin SCL require a pull-up resistor during I2C communication on the hardware, and the two pins require a pull-down resistor when the touch screen is in the firmware upgrade mode.
  • the following method can be implemented:
  • the clock pin changes from a high level to a level to achieve a data pin, and the data pin is changed from an input mode to an output low mode, and is delayed.
  • step S104 before using the two gpio ports SCL and SDA to simulate the upgrade protocol, the touch screen interrupt should be turned off to ensure that the interrupt of the touch screen does not work temporarily. If the touch screen interrupt is active, I2C communication will be performed, and the I2C communication will be used.
  • the upgrade process of step S104 mainly includes: locking protection to ensure that the upgrade process is not interrupted, and the lock mechanism is used to solve the synchronization problem faced when multiple processes concurrently access the same file.
  • Wipe flash flash to erase the original touch screen firmware version. Write flash to burn the new firmware version read from user space into flash.
  • FIG. 2 is a block diagram of a touch screen firmware upgrading apparatus according to an embodiment of the present invention.
  • the reading module 10 and the upgrading module 20 are included.
  • the read-in module 10 is configured to read the firmware version information of the touch screen stored in the user space of the system into the kernel space of the system; and the upgrade module 20 is configured to use the universal version of the touch screen according to the firmware version information read in.
  • the input/output port GPIO is used to simulate the upgrade protocol for touch screen firmware upgrades.
  • the upgrade protocol is simulated by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA, so that the automatic upgrade of the touch extension firmware can be implemented on the mobile terminal, thereby reducing the upgrade work. Quantity, upgrade speed, easy to use.
  • the upgrade module 20 includes an inspection sub-module 202, an erase sub-module 204 burn-in sub-module 206, and a school-risk sub-module 208.
  • the check sub-module 202 is configured to enable the touch screen chip that needs to be upgraded to be in an upgrade mode, and check whether the touch screen chip ID meets the upgrade requirement.
  • the erasing sub-module 204 is configured to erase the original firmware version information in the touch screen chip.
  • the burning sub-module 206 is configured to burn firmware version information read into the kernel space into the touch screen chip.
  • the verification sub-module 208 is configured to verify whether the checksum of the firmware version information burned into the touch screen chip is correct, and if yes, set an upgrade success flag.
  • FIG. 4 is a schematic diagram of the firmware upgrade of the touch screen according to the embodiment of the present invention. As shown in FIG. 4, the Linux system is divided into two parts: user space and kernel space. The core software of the kernel space is independent of the common application and runs at a higher level.
  • the privilege level At the privilege level, they reside on the protected memory space and have all the permissions to access the hardware device; in contrast, the application runs in user space, and applications running in user space can only see what they are allowed to use. Part of the system resources, and can not use certain system functions, nor directly access kernel space and hardware devices, and other specific usage restrictions.
  • Putting user space and kernel space under this asymmetric access mechanism has good security, can effectively resist the snooping of malicious users, and can also prevent the infringement of poor quality user programs, thus making the system run more stable and reliable.
  • the touch screen firmware version is placed in the file system of the user space, and the upgrade program is placed in the touch display driver of the kernel space, and the interaction between the user space and the kernel space is performed through the proc interface.
  • the user module is used to save the new touch screen firmware, send an upgrade command, check whether the upgrade is successful, and resend the upgrade command if it fails.
  • the upgrade module is mainly implemented according to the upgrade protocol. It mainly implements the following functions: (1) Check the firmware, make the touch screen chip in upgrade mode, check whether the chip ID that needs to be upgraded meets the requirements, and meet the requirements to upgrade. (2) Wipe the flash and erase the original touch screen firmware version.
  • the kernel driver module is mainly the driver of the touch screen.
  • the proc interface is added in the driver, and the touch screen is upgraded in the proc interface.
  • the Proc interface is mainly to ensure three aspects of work:
  • FIG. 5 is a flowchart of upgrading a touch screen firmware according to an embodiment of the present invention.
  • the method includes the following steps: Step 4: S502, the user sends an upgrade command, and the upgrade starts. Step S504, so some preparatory work for the upgrade, the interrupt is turned off, and the SCL and SDA pins of the I2C are multiplexed to simulate the upgrade protocol. Step S506, initializing a new lock, and unlocking the lock to ensure that the upgrade process is not interrupted. Step S508, reading the latest touch display firmware version of the user space into the kernel space through the proc interface, and storing it in the local buff (cache) for upgrading. In step S510, the hardware information is checked, the touch screen chip is in the upgrade mode, and the chip ID is checked whether the upgrade requirement is met.
  • Step S512 wiping the flash, erasing the original firmware; step S514, programming the flash, writing the latest firmware stored in the local buf to the flash; step S516, verifying, calculating the information of the information read from the flash Check and compare the checksum of the firmware information stored in the buff. If the upgrade is successful, set the upgrade success flag. If it fails, set the upgrade failure flag, the user resends the upgrade command, and the upgrade restarts. Step S518, the lock protection is turned off, and the lock is cancelled.
  • Step S520 the touch screen is powered off, not the power-off of the mobile terminal, restoring the SCL and SDA gpio port configuration of the I2C, enabling the I2C communication, opening the interrupt, and ensuring that the touch display can be used normally.
  • the firmware of the touch screen firmware can be upgraded to the latest version at any time by the automatic upgrade of the capacitive touch screen firmware of the mobile terminal, thereby solving the problems of bugs, compatibility, incomplete functions and the like of the original firmware version, and the upgrade process is not Depending on the special upgrade tool, the upgrade process is fast, reliable and easy to use.
  • the touch screen firmware version is placed in the software version of the mobile terminal, and the version can be updated along with the update of the mobile terminal software version; if the upgrade fails, It can be upgraded cyclically to better ensure the success of the capacitive touch screen upgrade firmware.
  • the various modules or steps of the present invention described above can be implemented with a general purpose computing device, which can be centralized on a single computing device, or distributed.
  • the computing devices may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, The steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Abstract

A method and device for upgrading the touch screen firmware of a mobile terminal are provided. The method includes: reading the touch screen firmware version information which is stored in the user space of the system into the kernel space of the system; according to the read firmware version information, upgrading the touch screen firmware by simulating an upgrade protocol through the General Purpose I/O (GPIO) ports of the touch screen. The present invention, simulates the upgrade protocol through multiplexing the GPIO ports of the clock pin (SCL) and the data pin (SDA) which are used for the I2C communication and on the hardware connector of the touch screen, thus implementing the automatic upgrade of the touch screen firmware on the mobile terminal, reducing the workload of upgrade, raising the upgrade speed, and facilitating the use.

Description

移动终端的触摸屏固件升级方法 ^置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种移动终端的触摸展固件升级 方法及装置。 背景技术 随着智能手机的普遍应用, 触摸屏起着越来越至关重要的作用, 尤其是 电容触摸屏, 因其寿命长、 可以手指肚触摸、 使用方便等优点, 在未来将引 领主要的触摸屏市场, 并有可能完全替代电阻触摸屏。 但是电容触摸屏作为 一种新生事物, 技术还不够完善, 固件版本经常会更新, 有时候需要解决一 些 bug (如线性漂移、 乱报数据、 局部失灵等)、 兼容性问题, 或者需要厂商 提供更多更新的功能, 这都需要升级触摸屏的固件。 现有技术是通过釆用专门的工具对触摸屏固件进行升级, 这种升级方式 存在以下问题: 如果移动终端的触摸屏在已经批量生产后, 需要固件升级, 则需要拆掉触摸屏, 用专门的工具来进行升级, 这样的话, 就会工作量极大 并且容易将触摸屏损坏。 发明内容 本发明的主要目的在于提供一种移动终端的触摸屏固件升级方法及装 置,以至少解决上述触摸屏固件升级工作量大并且容易将触摸屏损坏的问题。 才艮据本发明的一个方面, 提供了一种移动终端的触摸屏固件升级方法, 包括: 将保存在系统的用户空间中的触摸屏的固件版本信息读入到系统的内 核空间; 根据所读入的固件版本信息, 通过触摸屏的 GPIO ( General Purpose I/O, 通用输入 /输出)端口来模拟升级协议进行触摸屏固件升级。 优选的, 将保存在系统的用户空间中的触摸屏的固件版本信息读入到系 统的内核空间, 包括: 通过内核驱动中的 proc接口将保存在用户空间的文件 系统中的固件版本信息读入到内核空间的緩存中。 优选的, GPIO端口为触摸屏的硬件连接器上用于 I2C ( Inter Integrated Circuit, 内部集成电路 )通信的时钟管脚 SCL ( I2C Serial Clock, 串行时钟) 和数据管脚 SDA ( I2C Serial Data, 串行数据)。 优选的, 根据所读入的固件版本信息, 通过触摸屏的通用输入 /输出端口 GPIO 来模拟升级协议进行触摸展固件升级之前, 包括: 关闭触摸屏用于 I2C通信的 中断, 并将 SCL和 SDA管脚配置成普通 GPIO管脚。 优选的, 根据所读入的固件版本信息, 通过触摸屏的通用输入 /输出端口 GPIO 来模拟升级协议进行触摸展固件升级, 包括: 使需要升级的触摸屏芯片处于升 级模式, 并检查触摸屏芯片 ID是否满足升级要求; 如果是, 则将触摸屏芯 片中原有的固件版本信息擦除; 将读入内核空间中的固件版本信息烧入触摸 屏芯片中。 优选的, 将读入内核空间中的固件版本信息烧入触摸屏芯片中之后, 还 包括: 校验烧入触摸屏芯片中的固件版本信息的校验和是否正确, 如果是, 则设置升级成功标志。 优选的, 使需要升级的触摸屏芯片处于升级模式, 并检查触摸屏芯片 ID 是否满足升级要求之前, 包括: 初始化一个用于保证升级过程不被中断的锁 , 并开启锁保护。 根据本发明的另一方面, 提供了一种移动终端的触摸屏固件升级装置, 包括: 读入模块, 设置为将保存在系统的用户空间中的触摸屏的固件版本信 息读入到系统的内核空间; 升级模块, 设置为根据所读入的固件版本信息, 通 过触摸屏的通用输入 /输出端口 GPIO来模拟升级协议进行触摸屏固件升级。 优选的, 升级模块包括: 检查子模块, 设置为使需要升级的触摸屏芯片 处于升级模式, 并检查触摸屏芯片 ID是否满足升级要求; 擦除子模块, 设 置为将触摸屏芯片中原有的固件版本信息擦除; 烧入子模块, 设置为将读入 内核空间中的固件版本信息烧入触摸屏芯片中。 优选的, 升级模块还包括: 校验子模块, 设置为校验烧入触摸屏芯片中 的固件版本信息的校验和是否正确, 如果是, 则设置升级成功标志。 在本发明中,通过复用触摸屏的硬件连接器的时钟管脚 SCL和数据管脚 SDA的 GPIO端口来模拟升级协议, 使得可以在移动终端上实现触摸屏固件 的自动升级, 从而减少升级工作量, 升级速度快, 使用方便。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据本发明实施例的触摸屏固件升级方法流程图; 图 2是根据本发明实施例的触摸屏固件升级装置框图; 图 3是根据本发明实施例的触摸屏固件升级装置模块结构图; 图 4是根据本发明实施例的触摸屏固件升级示意图; 以及 图 5是根据本发明实施例的触摸屏固件升级流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1是根据本发明实施例的触摸屏固件升级方法流程图, 如图 1所示, 包括以下步 4聚: 步骤 S 102,将保存在系统的用户空间中的触摸屏的固件版本信息读入到 系统的内核空间; 步骤 S 104, 根据所读入的固件版本信息, 通过复用触摸屏的硬件连接器的 时钟管脚 SCL和数据管脚 SDA的 GPIO端口来模拟升级协议。 在本实施例中,通过复用触摸屏的硬件连接器的时钟管脚 SCL和数据管 脚 SDA的 GPIO口来模拟升级协议,使得可以在移动终端上实现触摸屏固件 的自动升级, 从而减少升级工作量, 升级速度快, 使用方便。 其中, 在步骤 S 102中, 触摸屏的固件版本放在用户空间的文件系统中, 是通过 proc接口把固件版本信息读入到内核空间中。如果要使触摸屏固件升 级完成后不需要开关机触摸屏就能正常使用, 则升级时触摸屏的驱动就不能 卸载。 在上述方法中, 通过釆用内核中的 proc接口来实现升级, proc接口放 在触摸屏的驱动中, 即在内核驱动中实现触摸屏固件的升级, 这样升级完成 后就不用重新开关机触摸屏能正常使用。 一般的电容触摸屏都是 I2C通信的, 触摸屏的硬件连接器的接口一般有 五个 GPIO管脚, 分别为: GND (接地;)、 SCL (时钟)、 SDA (数据)、 VDD (供应电压)和 INT (中断)管脚。 步骤 S 104中的固件升级主要是通过 SCL 和 SDA两个 gpio口来模拟升级协议实现的。 在硬件上 I2C通信时数据管脚 SDA和时钟管脚 SCL需要上拉电阻, 而 触摸屏处于固件升级模式时, 这两个管脚需要下拉电阻。 在本实施例中可通 过如下办法来实现: 时钟管脚从高电平变为氏电平实现一次对数据管脚的釆 样, 把数据管脚由输入模式改为输出低模式, 并延时一段时间, 当检测到数 据管脚为低时, 触摸屏芯片进入升级模式, 再把数据管脚由输出低模式改为 输入模式, 从而解决需要下拉电阻的问题。 其中, 在步骤 S 104釆用 SCL和 SDA两个 gpio口来模拟升级协议前, 应先关闭触摸屏中断, 保证触摸屏的中断暂时不起作用, 如果触摸屏中断起 作用, 会进行 I2C通讯, 就会使用到 SCL和 SDA两个 gpio管脚, 从而影响 升级的进行; 然后复用 I2C通信的两个 gpio口, 配置成普通的两个 gpio引 脚, 这样这两个管脚暂时就不会进行 I2C通讯了。 其中, 步骤 S 104的升级过程主要包括: 加锁保护, 保证升级过程不被中断, 锁机制是用来解决多个进程并发访 问同一个文件时所面临的同步问题。 检查固件 ,使触摸屏芯片处于升级模式 ,检查需要升级的芯片 ID (标识) 是否满足要求, 满足要求才能进行升级。 擦 flash (闪存), 把原来的触摸屏固件版本擦除。 烧写 flash, 把从用户空间读入的新的固件版本烧写进 flash。 校验,校验新烧写的固件版本的校验和是否正确, 正确则表示升级成功。 设置升级成功标志, 否者设置升级失败标志。 如果升级失败, 升级会重新进 行, 如此反复三次。 在升级成功后解开锁保护。 图 2是根据本发明实施例的触摸屏固件升级装置框图, 如图 2所示, 包 括读入模块 10和升级模块 20。 其中, 读入模块 10, 用于将保存在系统的用 户空间中的触摸屏的固件版本信息读入到系统的内核空间; 升级模块 20 , 用 于根据所读入的固件版本信息, 通过触摸屏的通用输入 /输出端口 GPIO来模拟升级 协议进行触摸屏固件升级。 在本实施例中,通过复用触摸屏的硬件连接器的时钟管脚 SCL和数据管 脚 SDA的 GPIO端口来模拟升级协议,使得可以在移动终端上实现触摸展固 件的自动升级, 从而减少升级工作量, 升级速度快, 使用方便。 在上述装置中, 如图 3所示, 升级模块 20包括检查子模块 202、 擦除子 模块 204烧入子模块 206和校-险子模块 208。 其中, 检查子模块 202 , 用于 使需要升级的触摸屏芯片处于升级模式, 并检查触摸屏芯片 ID是否满足升 级要求。 擦除子模块 204 , 用于将触摸屏芯片中原有的固件版本信息擦除。 烧入子模块 206 , 用于将读入内核空间中的固件版本信息烧入触摸屏芯片中。 校验子模块 208 , 用于校验烧入触摸屏芯片中的固件版本信息的校验和是否 正确, 如果是, 则设置升级成功标志。 图 4是才艮据本发明实施例的触摸屏固件升级示意图, 如图 4所示, Linux 系统分为用户空间和内核空间两部分, 内核空间的核心软件独立于普通应用 程序, 运行在较高的特权级别上, 它们驻留在被保护的内存空间上, 拥有访 问硬件设备的所有的权限; 相对的, 应用程序则运行在用户空间, 运行在用 户空间的应用程序只能看到允许它们使用的部分系统资源, 并且不能使用某 些特定的系统功能, 也不能直接访问内核空间和硬件设备, 以及其他一些具 体的使用限制。 将用户空间和内核空间置于这种非对称访问机制下有很好的 安全性, 能有效抵御恶意用户的窥探,也能防止质量低劣的用户程序的侵害, 从而使系统运行得更稳定可靠。 在本实施例中, 把触摸屏固件版本放在用户空间的文件系统中, 升级程 序放在内核空间的触摸展驱动程序中, 用户空间和内核空间的交互通过 proc 接口进行。 把触摸屏的固件版本放在用户空间的文件系统中,通过 proc接口把固件 版本信息读入到内核空间中,用户空间发升级命令, proc接口收到升级命令, 升级开始。 在本实施例中, 主要包括用户模块、 内核驱动模块和升级模块。 用户模块用来保存新的触摸屏固件,发送升级命令,检查升级是否成功, 如果失败重新发送升级命令。 升级模块, 主要是按照升级协议执行的模块, 主要实现以下功能: ( 1 ) 检查固件, 使触摸屏芯片处于升级模式, 检查需要升级的芯片 ID是否满足 要求, 满足要求才能进行升级。 (2 )擦 flash, 把原来的触摸屏固件版本擦除。 ( 3 )烧写 flash, 把从用户空间读入的新的固件版本烧写进 flash。 ( 4 )校验, 校验新烧写的固件版本的校验和是否正确, 正确则表示升级成功。 设置升级 成功标志, 否者设置升级失败标志。 如果升级失败, 升级会重新进行, 如此 反复三次。 内核驱动模块, 主要是触摸屏的驱动, 在驱动里面添加 proc接口, 在 proc接口里面实现触摸屏的升级工作。 Proc接口主要是保证三个方面的工作: The present invention relates to the field of communications, and in particular to a touch extension firmware upgrade method and apparatus for a mobile terminal. BACKGROUND With the universal application of smart phones, touch screens play an increasingly important role, especially capacitive touch screens, which will lead the main touch screen market in the future due to their long life, finger touch, and ease of use. And it is possible to completely replace the resistive touch screen. However, the capacitive touch screen is a new thing, the technology is not perfect, the firmware version is often updated, sometimes it needs to solve some bugs (such as linear drift, random data, local failure, etc.), compatibility issues, or need manufacturers to provide more Updated features, which all require upgrading the firmware of the touch screen. The prior art is to upgrade the touch screen firmware by using a special tool. The upgrade method has the following problems: If the touch screen of the mobile terminal needs to be upgraded after being mass-produced, the touch screen needs to be removed, and a special tool is used. Upgrade, in this case, it will be very laborious and easy to damage the touch screen. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a method and apparatus for upgrading a touch screen firmware of a mobile terminal, so as to at least solve the problem that the touch screen firmware upgrade workload is large and the touch screen is easily damaged. According to an aspect of the present invention, a method for upgrading a touch screen firmware of a mobile terminal is provided, including: reading firmware version information of a touch screen stored in a user space of the system into a kernel space of the system; Firmware version information, through the touch screen GPIO (General Purpose I/O) port to simulate the upgrade protocol for touch screen firmware upgrade. Preferably, the firmware version information of the touch screen stored in the user space of the system is read into the kernel space of the system, including: reading the firmware version information stored in the file system of the user space into the proc interface in the kernel driver. In the cache of kernel space. Preferably, the GPIO port is a clock pin SCL (I2C Serial Clock) for I2C (Inter Integrated Circuit) communication and a data pin SDA (I2C Serial Data, string) on the hardware connector of the touch screen. Line data). Preferably, according to the firmware version information read in, before the touch extension firmware upgrade is simulated by the universal input/output port GPIO of the touch screen, the method includes: turning off the touch screen for interrupt of I2C communication, and connecting the SCL and SDA pins Configured as a normal GPIO pin. Preferably, according to the firmware version information read in, the upgrade protocol is simulated by the universal input/output port GPIO of the touch screen, and the touch display firmware is upgraded, including: the touch screen chip that needs to be upgraded is in the upgrade mode, and the touch screen chip ID is checked whether the ID is satisfied. Upgrade requirement; if yes, erase the original firmware version information in the touch screen chip; burn the firmware version information read into the kernel space into the touch screen chip. Preferably, after the firmware version information read into the kernel space is burned into the touch screen chip, the method further includes: verifying whether the checksum of the firmware version information burned into the touch screen chip is correct, and if yes, setting an upgrade success flag. Preferably, before the touch screen chip that needs to be upgraded is in the upgrade mode, and the touch screen chip ID is checked to meet the upgrade requirement, the method includes: initializing a lock for ensuring that the upgrade process is not interrupted, and opening the lock protection. According to another aspect of the present invention, a touch screen firmware upgrading apparatus for a mobile terminal is provided, comprising: a reading module configured to read firmware version information of a touch screen stored in a user space of the system into a kernel space of the system; The upgrade module is set to simulate the upgrade protocol for the touch screen firmware upgrade through the touch screen's universal input/output port GPIO according to the firmware version information read. Preferably, the upgrade module includes: a check submodule, configured to enable the touch screen chip to be upgraded to be in an upgrade mode, and check whether the touch screen chip ID meets an upgrade requirement; the erase submodule is set to wipe the original firmware version information in the touch screen chip In addition, the sub-module is programmed to burn firmware version information read into the kernel space into the touch screen chip. Preferably, the upgrade module further includes: a verification submodule, configured to verify whether the checksum of the firmware version information burned into the touch screen chip is correct, and if yes, setting an upgrade success flag. In the present invention, the upgrade protocol is simulated by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA, so that the automatic upgrade of the touch screen firmware can be implemented on the mobile terminal, thereby reducing the upgrade workload. The upgrade is fast and easy to use. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a flow chart of a touch screen firmware upgrade method according to an embodiment of the present invention; FIG. 2 is a block diagram of a touch screen firmware upgrade apparatus according to an embodiment of the present invention; FIG. 3 is a touch screen firmware upgrade apparatus module according to an embodiment of the present invention; FIG. 4 is a schematic diagram of firmware upgrade of a touch screen according to an embodiment of the present invention; and FIG. 5 is a flowchart of firmware upgrade of a touch screen according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. 1 is a flowchart of a method for upgrading a touch screen firmware according to an embodiment of the present invention. As shown in FIG. 1, the method includes the following steps: Step S102: reading firmware version information of a touch screen stored in a user space of the system into the system. Kernel space; Step S104, emulating the upgrade protocol by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA according to the firmware version information read in. In this embodiment, the upgrade protocol is simulated by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA, so that the automatic upgrade of the touch screen firmware can be implemented on the mobile terminal, thereby reducing the upgrade workload. , the upgrade speed is fast and easy to use. Wherein, in step S102, the firmware version of the touch screen is placed in the file system of the user space, and the firmware version information is read into the kernel space through the proc interface. If the touch screen firmware is not required to be used after the touch screen firmware upgrade is completed, the touch screen driver cannot be uninstalled during the upgrade. In the above method, the upgrade is implemented by using the proc interface in the kernel, and the proc interface is placed in the driver of the touch screen, that is, the firmware of the touch screen is upgraded in the kernel driver, so that the touch screen can be used normally without restarting the switch after the upgrade is completed. . The general capacitive touch screen is I2C communication. The interface of the touch screen hardware connector generally has five GPIO pins, which are: GND (ground;), SCL (clock), SDA (data), VDD (supply voltage), and INT (interrupt) pin. The firmware upgrade in step S104 is mainly implemented by simulating the upgrade protocol through two gpio ports of SCL and SDA. The data pin SDA and the clock pin SCL require a pull-up resistor during I2C communication on the hardware, and the two pins require a pull-down resistor when the touch screen is in the firmware upgrade mode. In this embodiment, the following method can be implemented: The clock pin changes from a high level to a level to achieve a data pin, and the data pin is changed from an input mode to an output low mode, and is delayed. For a period of time, when the data pin is detected to be low, the touch screen chip enters the upgrade mode, and then the data pin is changed from the output low mode to the input mode, thereby solving the problem that the pull-down resistor is required. In step S104, before using the two gpio ports SCL and SDA to simulate the upgrade protocol, the touch screen interrupt should be turned off to ensure that the interrupt of the touch screen does not work temporarily. If the touch screen interrupt is active, I2C communication will be performed, and the I2C communication will be used. Go to the two gpio pins of SCL and SDA to affect the upgrade; then multiplex the two gpio ports of I2C communication and configure them into two common gpio pins, so that these two pins will not perform I2C communication temporarily. It is. The upgrade process of step S104 mainly includes: locking protection to ensure that the upgrade process is not interrupted, and the lock mechanism is used to solve the synchronization problem faced when multiple processes concurrently access the same file. Check the firmware so that the touch screen chip is in upgrade mode, check whether the chip ID (identification) that needs to be upgraded meets the requirements, and meet the requirements to upgrade. Wipe flash (flash) to erase the original touch screen firmware version. Write flash to burn the new firmware version read from user space into flash. Verify that the checksum of the newly programmed firmware version is correct. If it is correct, the upgrade is successful. Set the upgrade success flag, otherwise set the upgrade failure flag. If the upgrade fails, the upgrade will be repeated, so iterate three times. Unlock the lock after the upgrade is successful. 2 is a block diagram of a touch screen firmware upgrading apparatus according to an embodiment of the present invention. As shown in FIG. 2, the reading module 10 and the upgrading module 20 are included. The read-in module 10 is configured to read the firmware version information of the touch screen stored in the user space of the system into the kernel space of the system; and the upgrade module 20 is configured to use the universal version of the touch screen according to the firmware version information read in. The input/output port GPIO is used to simulate the upgrade protocol for touch screen firmware upgrades. In this embodiment, the upgrade protocol is simulated by multiplexing the clock pin SCL of the hardware connector of the touch screen and the GPIO port of the data pin SDA, so that the automatic upgrade of the touch extension firmware can be implemented on the mobile terminal, thereby reducing the upgrade work. Quantity, upgrade speed, easy to use. In the above apparatus, as shown in FIG. 3, the upgrade module 20 includes an inspection sub-module 202, an erase sub-module 204 burn-in sub-module 206, and a school-risk sub-module 208. The check sub-module 202 is configured to enable the touch screen chip that needs to be upgraded to be in an upgrade mode, and check whether the touch screen chip ID meets the upgrade requirement. The erasing sub-module 204 is configured to erase the original firmware version information in the touch screen chip. The burning sub-module 206 is configured to burn firmware version information read into the kernel space into the touch screen chip. The verification sub-module 208 is configured to verify whether the checksum of the firmware version information burned into the touch screen chip is correct, and if yes, set an upgrade success flag. FIG. 4 is a schematic diagram of the firmware upgrade of the touch screen according to the embodiment of the present invention. As shown in FIG. 4, the Linux system is divided into two parts: user space and kernel space. The core software of the kernel space is independent of the common application and runs at a higher level. At the privilege level, they reside on the protected memory space and have all the permissions to access the hardware device; in contrast, the application runs in user space, and applications running in user space can only see what they are allowed to use. Part of the system resources, and can not use certain system functions, nor directly access kernel space and hardware devices, and other specific usage restrictions. Putting user space and kernel space under this asymmetric access mechanism has good security, can effectively resist the snooping of malicious users, and can also prevent the infringement of poor quality user programs, thus making the system run more stable and reliable. In this embodiment, the touch screen firmware version is placed in the file system of the user space, and the upgrade program is placed in the touch display driver of the kernel space, and the interaction between the user space and the kernel space is performed through the proc interface. Put the firmware version of the touch screen in the file system of the user space, read the firmware version information into the kernel space through the proc interface, send the upgrade command in the user space, and the proc interface receives the upgrade command, and the upgrade starts. In this embodiment, the user module, the kernel driver module, and the upgrade module are mainly included. The user module is used to save the new touch screen firmware, send an upgrade command, check whether the upgrade is successful, and resend the upgrade command if it fails. The upgrade module is mainly implemented according to the upgrade protocol. It mainly implements the following functions: (1) Check the firmware, make the touch screen chip in upgrade mode, check whether the chip ID that needs to be upgraded meets the requirements, and meet the requirements to upgrade. (2) Wipe the flash and erase the original touch screen firmware version. (3) Flashing the flash and burning the new firmware version read from the user space into the flash. (4) Verify that the checksum of the newly programmed firmware version is correct. If it is correct, the upgrade is successful. Set the upgrade success flag, otherwise set the upgrade failure flag. If the upgrade fails, the upgrade will be repeated, so iterate three times. The kernel driver module is mainly the driver of the touch screen. The proc interface is added in the driver, and the touch screen is upgraded in the proc interface. The Proc interface is mainly to ensure three aspects of work:
( 1 ) 复用触摸屏连接器的 SCL和 SDA两个 gpio口, 使其暂停 I2C通 信的工作, 按照普通的 gpio模拟触摸屏固件的升级协议工作。 (1) Reuse the two gpio ports of the SCL and SDA of the touch screen connector to suspend the I2C communication, and work according to the normal gpio analog touch screen firmware upgrade protocol.
( 2 ) 升级模块, 按照触摸屏固件升级协议进行升级。 (2) Upgrade the module and upgrade according to the touch screen firmware upgrade protocol.
( 3 ) 触摸屏固件升级完成后不需要开关机触摸屏能正常使用。 升级前 关触摸屏中断, 暂停 I2C的通信工作, 升级后恢复 I2C通信, 开中断, 触摸 屏正常使用。 用户模块和内核驱动模块是两大模块, proc接口放在内核驱动模块中, 是联系用户模块和内核驱动模块的通道, proc接口实现用户模块和内核驱动 模块之间的通讯。 同时, 升级模块位于 proc接口内部, 当 proc接口收到用 户模块发送的升级命令时, 就让升级模块开始真正的固件升级。 图 5是根据本发明实施例的触摸屏固件升级流程图, 如图 5所示, 包括 以下步 4聚: 步 4聚 S502, 用户发送升级命令, 升级开始。 步骤 S504, 故升级的一些准备工作, 关中断, 复用 I2C的 SCL和 SDA 管脚来模拟升级协议。 步骤 S506, 初始化一个新的锁, 开启锁保护, 保证升级过程不被中断。 步骤 S508 , 通过 proc接口把用户空间的最新的触摸展固件版本读入到 内核空间, 存储在本地 buff (緩存) 中, 用于升级使用。 步骤 S510, 检查硬件信息, 使触摸屏芯片处于升级模式, 并检查芯片 ID 是否满足升级要求。 步骤 S512, 擦 flash, 把原来的固件擦除掉; 步骤 S514 , 烧写 flash, 把存储在本地 buf 中的最新的固件写入 flash; 步骤 S516, 校验, 计算从 flash读取的信息的校验和跟保存在 buff中的 固件信息的校验和比较, 如果一样则升级成功, 设置升级成功标志; 如果失 败, 设置升级失败标志, 用户重新发送升级命令, 升级重新开始。 步骤 S518, 关闭锁保护, 注销锁。 步骤 S520, 触摸屏掉电上电, 不是移动终端的掉电上电, 恢复 I2C的 SCL和 SDA的 gpio口配置, 使能 I2C通讯, 开中断, 保证触摸展能正常使 用。 至此, 整个升级过程就完成了。 在本发明的上述实施例中, 通过移动终端电容触摸屏固件自动升级可以 随时把触摸屏的固件升级到最新的版本, 从而解决原有固件版本的 bug、 兼 容性、 功能不全等问题, 并且升级过程不依赖于专门的升级工具, 升级过程 速度快, 可靠性强, 方便使用; 另外, 触摸屏固件版本放在移动终端的软件 版本中, 可以伴随着移动终端软件版本的更新而更新版本; 如果升级失败, 可循环升级, 从而更好的保证电容触摸屏升级固件成功。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 (3) After the touch screen firmware upgrade is completed, the touch screen of the switch is not required to be used normally. Turn off the touch screen interrupt before the upgrade, suspend the I2C communication work, restore the I2C communication after the upgrade, open the interrupt, and the touch screen is normally used. The user module and the kernel driver module are two modules. The proc interface is placed in the kernel driver module, which is a channel for contacting the user module and the kernel driver module. The proc interface implements communication between the user module and the kernel driver module. At the same time, the upgrade module is located inside the proc interface. When the proc interface receives the upgrade command sent by the user module, the upgrade module starts the real firmware upgrade. FIG. 5 is a flowchart of upgrading a touch screen firmware according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps: Step 4: S502, the user sends an upgrade command, and the upgrade starts. Step S504, so some preparatory work for the upgrade, the interrupt is turned off, and the SCL and SDA pins of the I2C are multiplexed to simulate the upgrade protocol. Step S506, initializing a new lock, and unlocking the lock to ensure that the upgrade process is not interrupted. Step S508, reading the latest touch display firmware version of the user space into the kernel space through the proc interface, and storing it in the local buff (cache) for upgrading. In step S510, the hardware information is checked, the touch screen chip is in the upgrade mode, and the chip ID is checked whether the upgrade requirement is met. Step S512, wiping the flash, erasing the original firmware; step S514, programming the flash, writing the latest firmware stored in the local buf to the flash; step S516, verifying, calculating the information of the information read from the flash Check and compare the checksum of the firmware information stored in the buff. If the upgrade is successful, set the upgrade success flag. If it fails, set the upgrade failure flag, the user resends the upgrade command, and the upgrade restarts. Step S518, the lock protection is turned off, and the lock is cancelled. Step S520, the touch screen is powered off, not the power-off of the mobile terminal, restoring the SCL and SDA gpio port configuration of the I2C, enabling the I2C communication, opening the interrupt, and ensuring that the touch display can be used normally. At this point, the entire upgrade process is complete. In the above embodiment of the present invention, the firmware of the touch screen firmware can be upgraded to the latest version at any time by the automatic upgrade of the capacitive touch screen firmware of the mobile terminal, thereby solving the problems of bugs, compatibility, incomplete functions and the like of the original firmware version, and the upgrade process is not Depending on the special upgrade tool, the upgrade process is fast, reliable and easy to use. In addition, the touch screen firmware version is placed in the software version of the mobile terminal, and the version can be updated along with the update of the mobile terminal software version; if the upgrade fails, It can be upgraded cyclically to better ensure the success of the capacitive touch screen upgrade firmware. Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented with a general purpose computing device, which can be centralized on a single computing device, or distributed. Alternatively, on a network of computing devices, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, The steps shown or described may be performed in an order different than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种移动终端的触摸屏固件升级方法, 包括: A method for upgrading a touch screen firmware of a mobile terminal, comprising:
将保存在系统的用户空间中的触摸屏固件版本信息读入到所述系 统的内核空间;  Reading the touch screen firmware version information stored in the user space of the system into the kernel space of the system;
根据所读入的固件版本信息, 通过触摸屏的通用输入 /输出端口 According to the firmware version information read in, through the universal input / output port of the touch screen
GPIO来模拟升级协议进行触摸屏固件升级。 GPIO to simulate the upgrade protocol for touch screen firmware upgrades.
2. 根据权利要求 1所述的方法, 其中, 将保存在系统的用户空间中的触 摸屏固件版本信息读入到所述系统的内核空间, 包括: 2. The method according to claim 1, wherein the touch screen firmware version information stored in the user space of the system is read into the kernel space of the system, including:
通过内核驱动中的 proc接口将保存在用户空间的文件系统中的所 述固件版本信息读入到内核空间的緩存中。  The firmware version information stored in the file system of the user space is read into the cache of the kernel space by the proc interface in the kernel driver.
3. 根据权利要求 1所述的方法, 其中, 所述 GPIO端口为触摸屏的硬件 连接器上用于内部集成电路 I2C通信的时钟管脚 SCL和数据管脚 SDA。 3. The method according to claim 1, wherein the GPIO port is a clock pin SCL and a data pin SDA for internal integrated circuit I2C communication on a hardware connector of the touch screen.
4. 根据权利要求 3所述的方法, 其中, 根据所读入的固件版本信息, 通 过触摸屏的通用输入 /输出端口 GPIO来模拟升级协议进行触摸屏固件 升级之前, 包括: 4. The method according to claim 3, wherein, before the touch screen firmware upgrade is simulated by the universal input/output port GPIO of the touch screen according to the read firmware version information, the method comprises:
关闭所述触摸屏用于 I2C通信的中断, 并将所述 SCL和 SDA管 配置成普通 GPIO管 *p。  The touch screen is turned off for interrupting I2C communication, and the SCL and SDA pipes are configured as ordinary GPIO pipes *p.
5. 根据权利要求 1所述的方法, 其中, 根据所读入的固件版本信息, 通 过触摸屏的通用输入 /输出端口 GPIO来模拟升级协议进行触摸屏固件 升级, 包括: The method according to claim 1, wherein the upgrade protocol is simulated by the universal input/output port GPIO of the touch screen according to the read firmware version information, including:
使需要升级的触摸屏芯片处于升级模式, 并检查所述触摸屏芯片 ID是否满足升级要求;  The touch screen chip that needs to be upgraded is in an upgrade mode, and it is checked whether the touch screen chip ID meets an upgrade requirement;
如果是, 则将所述触摸屏芯片中原有的固件版本信息擦除; 将读入内核空间中的所述固件版本信息烧入所述触摸屏芯片中。  If yes, erasing the original firmware version information in the touch screen chip; burning the firmware version information read into the kernel space into the touch screen chip.
6. 根据权利要求 5所述的方法, 其中, 将读入内核空间中的所述固件版 本信息烧入所述触摸屏芯片中之后, 还包括: 校验烧入所述触摸屏芯片中的固件版本信息的校验和是否正确, 如果是, 则设置升级成功标志。 The method of claim 5, wherein after the firmware version information read into the kernel space is burned into the touch screen chip, the method further includes: Verify that the checksum of the firmware version information burned into the touch screen chip is correct, and if so, set the upgrade success flag.
7. 根据权利要求 6所述的方法, 其中, 使需要升级的触摸屏芯片处于升 级模式, 并检查所述触摸屏芯片 ID是否满足升级要求之前, 包括: 初始化一个用于保证升级过程不被中断的锁, 并开启锁保护。 The method according to claim 6, wherein, before the touch screen chip that needs to be upgraded is in an upgrade mode, and checking whether the touch screen chip ID meets the upgrade requirement, the method includes: initializing a lock for ensuring that the upgrade process is not interrupted And turn on lock protection.
8. —种移动终端的触摸屏固件升级装置, 包括: 8. A touch screen firmware upgrade device for a mobile terminal, comprising:
读入模块, 设置为将保存在系统的用户空间中的触摸屏固件版本 信息读入到所述系统的内核空间;  a read-in module configured to read touch screen firmware version information stored in a user space of the system into a kernel space of the system;
升级模块, 设置为根据所读入的固件版本信息, 通过触摸屏的通 用输入 /输出端口 GPIO来模拟升级协议进行触摸屏固件升级。  The upgrade module is set to simulate the upgrade protocol for the touch screen firmware upgrade through the touch screen's universal input/output port GPIO based on the firmware version information read.
9. 根据权利要求 8所述的装置, 其中, 所述升级模块包括: 9. The device according to claim 8, wherein the upgrade module comprises:
检查子模块, 设置为使需要升级的触摸屏芯片处于升级模式, 并 检查所述触摸屏芯片 ID是否满足升级要求;  The check submodule is set to enable the touch screen chip to be upgraded to be in the upgrade mode, and check whether the touch screen chip ID meets the upgrade requirement;
擦除子模块, 设置为将所述触摸屏芯片中原有的固件版本信息擦 除;  The erase submodule is configured to erase the original firmware version information in the touch screen chip;
烧入子模块, 设置为将读入内核空间中的所述固件版本信息烧入 所述触摸屏芯片中。  The burn-in sub-module is configured to burn the firmware version information read into the kernel space into the touch screen chip.
10. 根据权利要求 9所述的装置, 其中, 所述升级模块还包括: The device of claim 9, wherein the upgrading module further comprises:
校验子模块, 设置为校验烧入所述触摸屏芯片中的固件版本信息 的校-险和是否正确, 如果是, 则设置升级成功标志。  The verification sub-module is set to verify that the firmware-insurance of the firmware version information burned into the touch screen chip is correct, and if so, the upgrade success flag is set.
PCT/CN2011/070973 2010-12-17 2011-02-14 Method and device for upgrading touch screen firmware of mobile terminal WO2012079301A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010594511.2 2010-12-17
CN201010594511.2A CN102033770B (en) 2010-12-17 2010-12-17 Touch screen firmware upgrading method and device for mobile terminal

Publications (1)

Publication Number Publication Date
WO2012079301A1 true WO2012079301A1 (en) 2012-06-21

Family

ID=43886704

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/070973 WO2012079301A1 (en) 2010-12-17 2011-02-14 Method and device for upgrading touch screen firmware of mobile terminal

Country Status (2)

Country Link
CN (1) CN102033770B (en)
WO (1) WO2012079301A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366131A (en) * 2018-03-13 2018-08-03 广州视源电子科技股份有限公司 Data transmission method, device, terminal and storage medium
CN112214235A (en) * 2020-10-23 2021-01-12 Oppo广东移动通信有限公司 Method and device for upgrading quick-charging firmware, mobile terminal and storage medium
CN112306536A (en) * 2020-11-25 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Mainboard, chip thereof and chip upgrading method
CN112601075A (en) * 2020-12-07 2021-04-02 上海商米科技集团股份有限公司 Network camera upgrading fault recovery system and method based on double mirror images
CN115904820A (en) * 2023-02-21 2023-04-04 合肥康芯威存储技术有限公司 Recovery method and system for failed hard disk

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436389B (en) * 2011-12-22 2015-04-15 北京百纳威尔科技有限公司 Method and device for upgrading touch screen
CN102646048B (en) * 2012-05-03 2016-02-10 中兴通讯股份有限公司 The method of mobile terminal touch screen firmware upgrade and device
CN102693144B (en) * 2012-05-25 2016-01-13 惠州Tcl移动通信有限公司 A kind of method of capacitance plate firmware upgrade of Android mobile terminal
CN103577213B (en) * 2012-08-09 2018-08-31 努比亚技术有限公司 A kind of upgrade method of touch screen firmware of intelligent terminal
CN102937900B (en) * 2012-10-10 2016-08-24 广东欧珀移动通信有限公司 The burning program method and system of touch chip under a kind of COB technique
CN103019977A (en) * 2012-12-07 2013-04-03 上海市共进通信技术有限公司 Method for automatically identifying edition by application apparatus of embedded system and starting method
CN103106088B (en) * 2012-12-28 2016-07-20 上海斐讯数据通信技术有限公司 Hardware firmware standalone upgrade system and method
CN103823723B (en) * 2014-02-19 2017-08-08 惠州Tcl移动通信有限公司 The touch-screen firmware restorative procedure and device of a kind of mobile terminal
CN104598276B (en) * 2015-01-13 2018-01-16 中科创达软件科技(深圳)有限公司 A kind of touch-screen firmware on line upgrading method and device
CN105718281B (en) * 2015-07-29 2019-04-12 中科创达软件科技(深圳)有限公司 A kind of touch screen firmware upgrade method and device
CN105094834A (en) * 2015-08-10 2015-11-25 上海闻泰电子科技有限公司 Method for managing mobile phone touch screen firmware
JP2017107377A (en) * 2015-12-09 2017-06-15 株式会社リコー Apparatus management device, apparatus management system, verification method and program
CN107194242B (en) * 2017-03-30 2019-11-08 百富计算机技术(深圳)有限公司 Firmware upgrade method and device
CN107291310A (en) * 2017-06-21 2017-10-24 珠海格力电器股份有限公司 A kind of adaptive regulation method of sensitivity of touch screen, apparatus and system
CN108196721B (en) * 2018-01-29 2020-11-17 业成科技(成都)有限公司 Touch display device and firmware setting method thereof
CN112527341B (en) * 2019-09-19 2024-03-01 合肥杰发科技有限公司 Vehicle system upgrading method, vehicle system and computer storage medium
CN112181467B (en) * 2020-10-10 2023-11-14 北京字节跳动网络技术有限公司 Method and device for upgrading memory firmware of terminal, terminal and storage medium
CN113760333A (en) * 2021-09-16 2021-12-07 海宁奕斯伟集成电路设计有限公司 Software upgrading method and device, electronic equipment and computer readable storage medium
CN114115588B (en) * 2021-09-26 2023-11-03 洛晶半导体(上海)有限公司 Control chip, control circuit and control method of induction panel

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101046789A (en) * 2006-03-27 2007-10-03 飞博创(成都)科技有限公司 Data transmission method, firmware updating method and bus loader
US20070240095A1 (en) * 2006-01-30 2007-10-11 Inventec Corporation Computer product customized information programming method and system
CN101452689A (en) * 2007-12-04 2009-06-10 佳世达科技股份有限公司 Firmware updating system for updating display firmware and method thereof
CN101534343A (en) * 2009-04-21 2009-09-16 上海闻泰电子科技有限公司 Method for safely upgrading mobile phone firmware

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6904457B2 (en) * 2001-01-05 2005-06-07 International Business Machines Corporation Automatic firmware update of processor nodes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240095A1 (en) * 2006-01-30 2007-10-11 Inventec Corporation Computer product customized information programming method and system
CN101046789A (en) * 2006-03-27 2007-10-03 飞博创(成都)科技有限公司 Data transmission method, firmware updating method and bus loader
CN101452689A (en) * 2007-12-04 2009-06-10 佳世达科技股份有限公司 Firmware updating system for updating display firmware and method thereof
CN101534343A (en) * 2009-04-21 2009-09-16 上海闻泰电子科技有限公司 Method for safely upgrading mobile phone firmware

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108366131A (en) * 2018-03-13 2018-08-03 广州视源电子科技股份有限公司 Data transmission method, device, terminal and storage medium
CN108366131B (en) * 2018-03-13 2020-10-02 广州视源电子科技股份有限公司 Data transmission method, device, terminal and storage medium
CN112214235A (en) * 2020-10-23 2021-01-12 Oppo广东移动通信有限公司 Method and device for upgrading quick-charging firmware, mobile terminal and storage medium
CN112306536A (en) * 2020-11-25 2021-02-02 山东云海国创云计算装备产业创新中心有限公司 Mainboard, chip thereof and chip upgrading method
CN112306536B (en) * 2020-11-25 2023-09-29 山东云海国创云计算装备产业创新中心有限公司 Main board, chip thereof and chip upgrading method
CN112601075A (en) * 2020-12-07 2021-04-02 上海商米科技集团股份有限公司 Network camera upgrading fault recovery system and method based on double mirror images
CN112601075B (en) * 2020-12-07 2023-06-20 上海商米科技集团股份有限公司 Network camera upgrading fault recovery system and method based on double mirror images
CN115904820A (en) * 2023-02-21 2023-04-04 合肥康芯威存储技术有限公司 Recovery method and system for failed hard disk

Also Published As

Publication number Publication date
CN102033770B (en) 2015-01-28
CN102033770A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
WO2012079301A1 (en) Method and device for upgrading touch screen firmware of mobile terminal
CN102662701B (en) CPLD online upgrading method, device and service board
CN106030525B (en) Method for in-system provisioning of firmware for a hardware platform and hardware platform thereof
CN102609286B (en) A kind of FPGA configurator remote update system based on processor control and method thereof
CN110032405B (en) System boot code memory management method, memory device and electronic system using same
US8386764B2 (en) BIOS architecture
US7430662B2 (en) Techniques for initializing a device on an expansion card
US9027014B2 (en) Updating firmware compatibility data
AU2013407292B2 (en) Devices, updaters, methods for controlling a device, and methods for controlling an updater
CN100511148C (en) CPU system starting method and system
TW201525858A (en) Baseboard management controller and method of load firmware thereof
TW201351286A (en) System and method of updating firmware
WO2020062887A1 (en) Firmware upgrading method and system based on flash micro-controller, and flash micro-controller
KR20150120429A (en) Patching boot code of read-only memory
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
US20180039546A1 (en) Systems and methods for secure recovery of host system code
CN111666111B (en) Multi-node storage system and firmware updating method thereof
KR102195344B1 (en) Security system and method for computer using usb storage medium
CN107690630B (en) Calculate the bridge configuration in equipment
CN108319520A (en) Mobile device alternate operating system based on secure storage
CN104077166A (en) EPCS and EPCQ storer online upgrading method based on IP core in FPGA
US20040049617A1 (en) Method of firmware update by USB interface
CN105677409B (en) A kind of method for upgrading system and device
CN105830021A (en) Updatable integrated-circuit radio
CN108153548A (en) A kind of EMMC firmware upgrade methods and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11848757

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11848757

Country of ref document: EP

Kind code of ref document: A1