CN111045741A - Firmware loading method for flash-memory-free touch screen of intelligent terminal - Google Patents

Firmware loading method for flash-memory-free touch screen of intelligent terminal Download PDF

Info

Publication number
CN111045741A
CN111045741A CN201911230308.4A CN201911230308A CN111045741A CN 111045741 A CN111045741 A CN 111045741A CN 201911230308 A CN201911230308 A CN 201911230308A CN 111045741 A CN111045741 A CN 111045741A
Authority
CN
China
Prior art keywords
touch screen
flash
memory
free touch
intelligent terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911230308.4A
Other languages
Chinese (zh)
Inventor
王涵
杜军红
汤肖迅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Longcheer Technology Co Ltd
Original Assignee
Shanghai Longcheer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Longcheer Technology Co Ltd filed Critical Shanghai Longcheer Technology Co Ltd
Priority to CN201911230308.4A priority Critical patent/CN111045741A/en
Publication of CN111045741A publication Critical patent/CN111045741A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

According to the firmware loading method for the flash-free touch screen of the intelligent terminal, firstly, a firmware file of the flash-free touch screen is stored in a memory of the intelligent terminal, then the firmware file of the flash-free touch screen is sent to an RAM in a flash-free touch screen module through a medium-low speed bus of the intelligent terminal, and then a firmware file loading instruction of the flash-free touch screen is operated to complete loading of the firmware file of the flash-free touch screen. By the method, the touch screen firmware can be normally loaded without configuring Flash special for storing the firmware file of the touch screen, so that the hardware cost of the intelligent terminal can be reduced, and the power consumption of the intelligent terminal can be reduced.

Description

Firmware loading method for flash-memory-free touch screen of intelligent terminal
Technical Field
The application relates to the technical field of intelligent terminal touch screens, in particular to a firmware loading technology for a flash-memory-free touch screen of an intelligent terminal.
Background
Along with the development of mobile technology and intelligent technology, more and more man-machine intelligent terminals are applied, and especially along with the popularization of intelligent terminals, touch screens are widely applied to intelligent terminals.
The normal use of the touch screen firstly needs to finish the loading of the touch screen firmware in the starting process of the intelligent terminal. At present, as shown in fig. 1a, a Flash (Flash memory) is integrated in a touch screen module, and a firmware file of a touch screen stored in the Flash is loaded into a Random Access Memory (RAM) integrated in the touch screen module to be operated. In this way, Flash which is specially used for storing the firmware file of the touch screen needs to be used outside the main module of the intelligent terminal, so that the hardware cost of the intelligent terminal is increased, and the power consumption of the intelligent terminal is also increased.
Disclosure of Invention
As shown in fig. 1b, Flash is not integrated in the touch screen module of the intelligent terminal, but the firmware file of the touch screen is stored by using the Flash integrated in the main board of the intelligent terminal.
The application aims to provide a method and equipment for loading firmware of a flash-memory-free touch screen of an intelligent terminal.
According to one aspect of the application, a method for loading firmware of a flash-memory-free touch screen of an intelligent terminal is provided, wherein the method comprises the following steps:
storing the firmware file of the flash-memory-free touch screen into a memory of the intelligent terminal;
sending the firmware file of the flash-memory-free touch screen to an RAM in the flash-memory-free touch screen module through a medium-low speed bus of the intelligent terminal;
and operating the firmware file loading instruction of the flash-free touch screen to complete the loading of the firmware file of the flash-free touch screen.
Preferably, the medium low speed bus comprises an SPI bus.
Preferably, before the storing the firmware file of the flash-free touch screen into the memory of the intelligent terminal, the method further comprises:
and finishing the setting of the working mode parameters of the SPI bus of the intelligent terminal, wherein the working mode parameters comprise the clock polarity and the clock phase of the SPI bus.
Preferably, before storing the firmware file of the flash-memory-free touch screen into the memory of the intelligent terminal, if the intelligent terminal is in a deep sleep state, the method further includes:
and awakening the intelligent terminal to complete the power-on starting of the SPI bus.
Preferably, the method for loading the firmware of the flash-memory-free touch screen of the intelligent terminal further comprises the following steps:
if the loading is unsuccessful, the firmware file of the flash-memory-free touch screen is retransmitted to an RAM in the flash-memory-free touch screen module based on a medium-low speed bus of the intelligent terminal;
operating the firmware file loading instruction of the flash-free touch screen to complete the loading of the firmware file of the flash-free touch screen;
and if the retransmission times exceed a preset time threshold, prompting the loading failure.
Compared with the prior art, the firmware loading method for the flash-free touch screen of the intelligent terminal comprises the steps of firstly storing a firmware file of the flash-free touch screen into a memory of the intelligent terminal, then sending the firmware file of the flash-free touch screen to an RAM in a flash-free touch screen module through a medium-low speed bus of the intelligent terminal, and then operating a firmware file loading instruction of the flash-free touch screen to complete loading of the firmware file of the flash-free touch screen. By the method, the touch screen firmware can be normally loaded without configuring Flash special for storing the firmware file of the touch screen, so that the hardware cost of the intelligent terminal can be reduced, and the power consumption of the intelligent terminal can be reduced.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 shows a schematic diagram of a touch screen system architecture of an intelligent terminal;
FIG. 2 illustrates a flow chart of a method for firmware loading for a flash-free touchscreen of a smart terminal in accordance with an aspect of the subject application;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, each module and trusted party of the system includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
In order to further explain the technical means and effects adopted by the present application, the following description clearly and completely describes the technical solution of the present application with reference to the accompanying drawings and preferred embodiments.
Fig. 2 is a flowchart illustrating a method for loading firmware of a flash-free touch screen of an intelligent terminal according to an aspect of the present application, wherein the method according to an embodiment comprises:
s21, storing the firmware file of the flash-free touch screen into a memory of the intelligent terminal;
s22, sending the firmware file of the flash-free touch screen to an RAM in the flash-free touch screen module through a medium-low speed bus of the intelligent terminal;
s23, operating the firmware file loading instruction of the flash-free touch screen to complete the loading of the firmware file of the flash-free touch screen.
In the present application, the method is performed by a device 1, where the device 1 is a smart terminal and/or an industrial device terminal supporting a touch screen, and the smart terminal and/or the industrial device terminal includes, but is not limited to, a smart phone, a tablet computer, a game machine, a smart vending machine, a cash register, a road direction directing machine, and the like supporting a touch screen function.
The smart terminal and/or the industrial device terminal are only examples, and other existing or future devices and/or resource sharing platforms, as applicable to the present application, are also included in the scope of the present application and are herein incorporated by reference.
In this embodiment, the device 1 is a smart phone developed based on the high-pass SM6125 platform. In step S11, the device 1 has no dedicated Flash configured in the module without the Flash touch screen to store the firmware file of the touch screen. The flash-memory-free touch screen may be a structure based on an in-cell (function of the touch panel is embedded in a liquid crystal pixel) scheme, or an on-cell (touch screen is embedded between a color filter substrate and a polarizer of a display screen) or an OGS (touch screen and protective glass are integrated together, a conductive layer is plated on the inner side of the protective glass, and film coating and photoetching are directly performed on the protective glass) scheme, and other touch screen structures are also included in the protection scope of the application if applicable to the application, and are not limited in the application.
Wherein the device 1 also supports flash-free touch screens produced by different vendors. For example, in this embodiment, based on the high-pass SM6125 platform, it is possible to adapt the flash-free touch screen produced by different vendors by modifying the relevant parameters in the device tree and the relevant macros in the kernel configuration file.
Before using the non-flash touch screen of the device 1, the non-flash touch screen needs to be started or awakened, and a firmware file of the non-flash touch screen is loaded to complete initialization of the non-flash touch screen.
Firstly, the firmware file of the flash-memory-free touch screen needs to be stored in a memory on a main board of the device 1, the solid file of the touch screen may be obtained by downloading the device 1 from a computer or other devices through a network, or may be obtained by downloading the device 1 from a computer or other devices directly connected through a software tool, and other obtaining methods, such as being applicable to the present application, should also be included in the protection scope of the present application, and are not limited in the present application.
And after the device 1 acquires the solid file of the flash-memory-free touch screen, storing the solid file into a memory on a mainboard of the device 1.
Continuing in this embodiment, in step S12, the firmware file of the flash-free touch screen is sent to the RAM in the flash-free touch screen module through the medium/low speed bus of the smart terminal.
The solid file of the touch screen stored in the memory of the mainboard is sent to the RAM of the flash-memory-free touch screen module for caching through a medium-low speed bus between the mainboard and the flash-memory-free touch screen module in the device 1.
Preferably, the medium low speed bus comprises an SPI bus.
The commonly used medium-low speed buses in the device 1 are an IIC bus and an SPI bus.
The IIC bus is connected with the master device and the slave device through two lines, and has the characteristics of a half-duplex mode, a low transmission speed and the like, for example, if the IIC bus is adopted, the firmware file loading time of the flash-free touch screen is long, the initialization time of the flash-free touch screen is too long, the abnormality is easy to occur in the initialization process, and the user experience is poor.
The SPI bus is connected with the master device and the slave device through four wires, the full duplex mode is realized, the transmission speed is high, the short loading time of the firmware file of the flash-memory-free touch screen can be ensured, and the flash-memory-free touch screen is normally initialized.
Preferably, before the storing the firmware file of the flash-free touch screen into the memory of the intelligent terminal, the method further comprises:
and finishing the setting of the working mode parameters of the SPI bus of the intelligent terminal, wherein the working mode parameters comprise the clock polarity and the clock phase of the SPI bus.
The four wires of the SPI bus include: SDI (SerialData In), master side data input, slave side data output; SDO (serial data Out), master side data Out, slave side data in; SCLK (Serial Clock), a Clock signal generated by a master device; CS (chip select), slave enable signal controlled by master. The four operation modes SP 0-SP 3 are realized by two-two combination of two parameters of CPOL (clock polarity) and CPHA (clock phase) of SCLK, wherein,
SP 0: CPOL is 0, CPHA is 0, the level is low when the clock is idle, data is collected at the front edge of the clock cycle, and data is output at the back edge of the clock cycle.
SP 1: CPOL is 0, CPHA is 1, the level is low when the clock is idle, data are collected at the back edge of the clock period, and data are output at the front edge of the clock period.
SP 2: CPOL is 1, CPHA is 0, the level is high when the clock is idle, data is collected at the front edge of the clock cycle, and data is output at the back edge of the clock cycle.
SP 1: CPOL is 1, CPHA is 1, the clock is high when the level is idle, data are collected at the back edge of the clock period, and data are output at the front edge of the clock period.
The operation mode of the SPI in this embodiment may be any one of four modes selected by setting the CPOL parameter and the CPHA parameter.
Preferably, before storing the firmware file of the flash-memory-free touch screen into the memory of the intelligent terminal, if the intelligent terminal is in a deep sleep state, the method further includes:
and awakening the intelligent terminal to complete the power-on starting of the SPI bus.
If the device 1 does not use the non-flash touch screen or other functions for a long time, in order to reduce power consumption and prolong the battery service time, the device 1 usually turns off the non-flash touch screen to enter a deep sleep state, and the SPI bus communication of the device 1 is turned off. When the touch screen needs to be used again, the device 1 needs to be awakened, and the SPI bus is powered on again and started again before the firmware file of the flash-memory-free touch screen is stored in the memory of the intelligent terminal.
For example, in this embodiment, based on the development of the high-pass SM6125 platform, the device 1 in sleep can be woken up by setting an interrupt.
Specifically, by registering a callback function and setting parameters, modifying a relevant interrupt service function, and judging whether the device 1 is awakened from a sleep state or not through program operation in the awakening process of the device 1, communication with the flash-memory-less touch screen can be performed based on the SPI bus.
Continuing in this embodiment, in step S13, the loading of the firmware file of the flash-free touch screen is completed by executing the firmware file loading instruction of the flash-free touch screen, reading and executing the firmware file in the RAM in the flash-free touch screen module.
Further, the method for loading the firmware of the flash-memory-free touch screen of the intelligent terminal further comprises the following steps:
if the loading is unsuccessful, the firmware file of the flash-memory-free touch screen is retransmitted to an RAM in the flash-memory-free touch screen module based on a medium-low speed bus of the intelligent terminal;
operating the firmware file loading instruction of the flash-free touch screen to complete the loading of the firmware file of the flash-free touch screen;
and if the retransmission times exceed a preset time threshold, prompting the loading failure.
Because the flash-free touch screen is adopted, the solid file of the flash-free touch screen needs to be loaded into the RAM in the flash-free touch screen module every time the touch screen is started, the solid file loading may be unsuccessful when the loading process is abnormal or the circuit of the flash-free touch screen works abnormally, and if the solid file of the flash-free touch screen is loaded unsuccessfully through the steps S21-S23, the steps S22 and S23 are repeated until the repetition times exceed the preset times, and the loading failure is prompted.
According to yet another aspect of the present application, there is also provided a computer readable medium having stored thereon computer readable instructions executable by a processor to implement the foregoing method.
According to another aspect of the present application, there is also provided a flash-memory-free touch screen device, wherein the device includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform operations of the method as previously described.
For example, the computer readable instructions, when executed, cause the one or more processors to: the firmware file of the flash-free touch screen is stored in a memory of the equipment, the firmware file of the flash-free touch screen is sent to an RAM in the flash-free touch screen module through a medium-low speed bus of the equipment, a firmware file loading instruction of the flash-free touch screen is operated, and loading of the firmware file of the flash-free touch screen is completed.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (7)

1. A method for loading firmware of a flash-free touch screen of an intelligent terminal is characterized by comprising the following steps:
storing the firmware file of the flash-memory-free touch screen into a memory of the intelligent terminal;
sending the firmware file of the flash-memory-free touch screen to an RAM in the flash-memory-free touch screen module through a medium-low speed bus of the intelligent terminal;
and operating the firmware file loading instruction of the flash-free touch screen to complete the loading of the firmware file of the flash-free touch screen.
2. The method of claim 1, wherein the medium low speed bus comprises an SPI bus.
3. The method of claim 2, wherein before storing the firmware file of the flash-free touch screen into the memory of the smart terminal, further comprising:
and finishing the setting of the working mode parameters of the SPI bus of the intelligent terminal, wherein the working mode parameters comprise the clock polarity and the clock phase of the SPI bus.
4. The method according to claim 2 or 3, wherein before storing the firmware file of the flash-free touch screen into the memory of the smart terminal, if the smart terminal is in the deep sleep state, the method further comprises:
and awakening the intelligent terminal to complete the power-on starting of the SPI bus.
5. The method of claim 1, further comprising:
if the loading is unsuccessful, the firmware file of the flash-memory-free touch screen is retransmitted to an RAM in the flash-memory-free touch screen module based on a medium-low speed bus of the intelligent terminal;
operating the firmware file loading instruction of the flash-free touch screen to complete the loading of the firmware file of the flash-free touch screen;
and if the retransmission times exceed a preset time threshold, prompting the loading failure.
6. A computer-readable medium, wherein,
stored thereon computer readable instructions executable by a processor to implement the method of any one of claims 1 to 5.
7. An apparatus without a flash touch screen, wherein the apparatus comprises:
one or more processors; and
memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 1 to 5.
CN201911230308.4A 2019-12-04 2019-12-04 Firmware loading method for flash-memory-free touch screen of intelligent terminal Pending CN111045741A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911230308.4A CN111045741A (en) 2019-12-04 2019-12-04 Firmware loading method for flash-memory-free touch screen of intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911230308.4A CN111045741A (en) 2019-12-04 2019-12-04 Firmware loading method for flash-memory-free touch screen of intelligent terminal

Publications (1)

Publication Number Publication Date
CN111045741A true CN111045741A (en) 2020-04-21

Family

ID=70234677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911230308.4A Pending CN111045741A (en) 2019-12-04 2019-12-04 Firmware loading method for flash-memory-free touch screen of intelligent terminal

Country Status (1)

Country Link
CN (1) CN111045741A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006787A (en) * 2021-12-31 2022-02-01 山东产研鲲云人工智能研究院有限公司 Data transmission method, device and computer readable storage medium
CN114661365A (en) * 2022-02-14 2022-06-24 阿里巴巴(中国)有限公司 Device running method, firmware management method and firmware management system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376948A (en) * 2012-04-30 2013-10-30 联发科技股份有限公司 Touch controller chip, electric device and method for controlling touch panel
CN103529988A (en) * 2013-10-16 2014-01-22 Tcl通讯(宁波)有限公司 Mobile terminal touch screen multi-firmware setting method and system
US20180329862A1 (en) * 2017-05-11 2018-11-15 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for updating server firmware in server, and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103376948A (en) * 2012-04-30 2013-10-30 联发科技股份有限公司 Touch controller chip, electric device and method for controlling touch panel
CN103529988A (en) * 2013-10-16 2014-01-22 Tcl通讯(宁波)有限公司 Mobile terminal touch screen multi-firmware setting method and system
US20180329862A1 (en) * 2017-05-11 2018-11-15 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for updating server firmware in server, and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006787A (en) * 2021-12-31 2022-02-01 山东产研鲲云人工智能研究院有限公司 Data transmission method, device and computer readable storage medium
CN114661365A (en) * 2022-02-14 2022-06-24 阿里巴巴(中国)有限公司 Device running method, firmware management method and firmware management system

Similar Documents

Publication Publication Date Title
US10921967B2 (en) Electronic device and method for configuring display thereof
US10088515B2 (en) Electronic device and method for determining defect in an electronic device
EP3835983A1 (en) Artificial intelligence (ai) processing method and ai processing device
US11075535B2 (en) Electronic device and method of controlling charging of the same
EP2919115B1 (en) Task migration method and apparatus
US11012070B2 (en) Electronic device and method thereof for grip recognition
EP3115880B1 (en) Apparatus and method for providing memo function
US10146557B2 (en) Method and electronic device for initializing memory and updating firmware
US10705681B2 (en) Electronic device and display method for selecting an area of an icon
EP2998898B1 (en) Token-based scheme for granting permissions
CN109828774B (en) Server system and starting method thereof
CN109451098A (en) FPGA accelerator card MAC Address configuration method, device and accelerator card
CN111045741A (en) Firmware loading method for flash-memory-free touch screen of intelligent terminal
CN107463341A (en) Method for deleting, device and the mobile terminal of FLASH chip
CN110515671B (en) Initialization method, initialization device, terminal device and readable storage medium
CN111381892B (en) Data processing method, device, equipment and machine-readable medium
CN112912743B (en) Calculation force control method, device, equipment and storage medium
CN113272785A (en) Method for mounting file system, terminal equipment and storage medium
CN110377272B (en) Method and device for realizing SDK based on TBOX
US10579131B2 (en) Apparatus and method for applying suitable voltage to a component of a system-on-chip
CN110750162A (en) Input method and equipment
KR20170041473A (en) Method and electronic device for controlling power supply
CN113312095B (en) Method, device, terminal and storage medium for managing plug event of display equipment
CN112654964A (en) Brush machine control method, brush machine control device and terminal equipment
CN112199103A (en) Equipment upgrading method and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200421