CN108334328B - Intelligent terminal and flashing method thereof - Google Patents

Intelligent terminal and flashing method thereof Download PDF

Info

Publication number
CN108334328B
CN108334328B CN201710040850.8A CN201710040850A CN108334328B CN 108334328 B CN108334328 B CN 108334328B CN 201710040850 A CN201710040850 A CN 201710040850A CN 108334328 B CN108334328 B CN 108334328B
Authority
CN
China
Prior art keywords
touch
touch screen
intelligent terminal
preset
mode
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.)
Active
Application number
CN201710040850.8A
Other languages
Chinese (zh)
Other versions
CN108334328A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710040850.8A priority Critical patent/CN108334328B/en
Publication of CN108334328A publication Critical patent/CN108334328A/en
Application granted granted Critical
Publication of CN108334328B publication Critical patent/CN108334328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a flashing method of an intelligent terminal and the intelligent terminal, relating to the technical field of intelligent terminals, wherein the method comprises the following steps: when the loading program is guided to run, supplying power to the touch screen, and starting a point reporting function of the touch screen, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen; acquiring a touch position of the touch operation acting on the touch screen through the touch point reporting function; and determining a flashing mode based on the touch position, and entering the flashing mode to flash the intelligent terminal. In the embodiment of the disclosure, the intelligent terminal can determine and enter the flashing mode according to the acquired touch position acted on the touch screen by the touch operation, and a user does not need to enter the flashing mode by pressing a specific combination key, so that the problem that the flashing mode cannot be entered to flash the intelligent terminal when an entity volume key does not exist in the intelligent terminal in the related art is avoided, and convenience is brought to the flashing of the user.

Description

Intelligent terminal and flashing method thereof
Technical Field
The disclosure relates to the technical field of intelligent terminals, in particular to a flashing method of an intelligent terminal and the intelligent terminal.
Background
Generally, a user can update or reinstall a system of the intelligent terminal by a flashing method. The current common flashing method is mainly realized by two modes, namely a fast start mode (Fastboot) and a Recovery mode (Recovery). In the Fastboot mode, the intelligent terminal may communicate with the computer through a USB (Universal Serial Bus) data line, and when receiving system data sent by the computer, the intelligent terminal updates the system data to a designated partition of the intelligent terminal, thereby completing the flush. In the Recovery mode, the intelligent terminal can modify the system data of the intelligent terminal according to the system data stored in the memory of the intelligent terminal, so that the flash is completed.
In the related art, when the intelligent terminal is booted, whether the Fastboot mode or the Recovery mode is used, first, when the intelligent terminal is booted, the intelligent terminal needs to enter the two modes by pressing a specific combination key. Currently, for most intelligent terminals, in the running process of a boot loader (Bootloader) of a system, the operation of pressing a key of the intelligent terminal can be determined, when a power key and a volume down key are detected to be pressed simultaneously, the intelligent terminal enters a Fastboot mode, and when the power key and the volume up key are detected to be pressed simultaneously, the intelligent terminal enters a Recovery mode. And after the intelligent terminal enters a Fastboot mode or a Recovery mode, refreshing the intelligent terminal according to the method.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a flashing method of an intelligent terminal and the intelligent terminal.
According to a first aspect of the embodiments of the present disclosure, a flashing method of an intelligent terminal is provided, where the method includes:
when a loading program is guided to run, supplying power to a touch screen, and starting a point reporting function of the touch screen, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
acquiring a touch position acted on the touch screen by the touch operation through the point reporting function;
and determining a flashing mode based on the touch position, and entering the flashing mode to flash the intelligent terminal.
Optionally, the obtaining, by the touch pointing function, a touch position where the touch operation acts on the touch screen includes:
when interrupt information reported by an Integrated Circuit (IC) of the touch screen is detected, acquiring a touch position of the touch operation acting on the touch screen from the IC, wherein the interrupt information is generated when the touch operation acts on the touch screen.
Optionally, the obtaining, by the touch pointing function, a touch position where the touch operation acts on the touch screen includes:
reading level information on an interrupt pin of an IC of the touch screen;
judging whether the IC generates an interrupt currently or not based on the level information;
when the IC generates an interrupt currently, acquiring a touch position acted on the touch screen by the touch operation which generates the interrupt currently.
Optionally, the determining a flashing mode based on the touch position includes:
judging whether the touch position is located in a first preset position range or a second preset position range;
when the touch position is located in the first preset position range, determining that the flashing mode is a fast start fastboost mode;
and when the touch position is located in the second preset position range, determining that the flashing mode is a Recovery mode.
Optionally, after determining whether the touch position is located in a first preset position range or a second preset position range, the method further includes:
judging whether a touch track formed by the touch operation at the touch position is a preset track;
correspondingly, when the touch position is located in the first preset position range, determining that the flash mode is the fast start Fastboot mode includes:
when the touch position is located in the first preset position range and a touch track formed by the touch operation at the touch position is a preset track, determining that the machine swiping mode is a Fastboot mode;
correspondingly, when the touch position is located in the second preset position range, determining that the flashing mode is the Recovery mode includes:
and when the touch position is in the second preset position range and a touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is a Recovery mode.
According to a second aspect of the embodiments of the present disclosure, there is provided an intelligent terminal, including:
the power supply module is used for supplying power to the touch screen and starting a point reporting function of the touch screen when a loading program is guided to run, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
the acquisition module is used for acquiring a touch position acted on the touch screen by the touch operation through the point reporting function;
and the determining module is used for determining a flashing mode based on the touch position and entering the flashing mode to flash the intelligent terminal.
Optionally, the obtaining module includes:
the first obtaining submodule is used for obtaining a touch position of the touch operation acting on the touch screen from an Integrated Circuit (IC) when interrupt information reported by the IC of the touch screen is detected, and the interrupt information is generated when the touch operation acts on the touch screen.
Optionally, the obtaining module includes:
the reading submodule is used for reading level information on an interrupt pin of an IC of the touch screen;
a first judgment sub-module, configured to judge whether the IC currently generates an interrupt based on the level information;
and the second acquisition sub-module is used for acquiring the touch position acted on the touch screen by the touch operation which currently generates the interrupt when the IC currently generates the interrupt.
Optionally, the determining module includes:
the second judgment submodule is used for judging whether the touch position is located in a first preset position range or a second preset position range;
the first determining submodule is used for determining that the flashing mode is a fast start fastboost mode when the touch position is located in the first preset position range;
and the second determining submodule is used for determining that the flashing mode is a Recovery mode when the touch position is located in the second preset position range.
Optionally, the determining module further comprises:
the third judgment submodule is used for judging whether a touch track formed by the touch operation at the touch position is a preset track;
accordingly, the first determination submodule is configured to:
when the touch position is located in the first preset position range and a touch track formed by the touch operation at the touch position is a preset track, determining that the machine swiping mode is a Fastboot mode;
accordingly, the second determination submodule is configured to:
and when the touch position is in the second preset position range and a touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is a Recovery mode.
According to a third aspect of the embodiments of the present disclosure, there is provided an intelligent terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a loading program is guided to run, supplying power to a touch screen, and starting a point reporting function of the touch screen, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
acquiring a touch position acted on the touch screen by the touch operation through the point reporting function;
and determining a flashing mode based on the touch position, and entering the flashing mode to flash the intelligent terminal.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when the loading program is guided to run, the intelligent terminal detects touch operation by starting a point reporting function of the touch screen, acquires a touch position corresponding to the touch operation, and determines a flashing mode based on the acquired touch position. That is, the intelligent terminal can determine and enter the flashing mode according to the touch position of the acquired touch operation acting on the touch screen, and the user does not need to enter the flashing mode by pressing a specific combination key, so that the problem that the flashing mode cannot be entered to flash the intelligent terminal when the intelligent terminal does not have an entity volume key in the related art is solved, and convenience is brought to the flashing of the user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a flashing method of an intelligent terminal according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a flashing method of an intelligent terminal according to an exemplary embodiment.
Fig. 3A is a block diagram illustrating an intelligent terminal according to an example embodiment.
FIG. 3B is a block diagram illustrating an acquisition module in accordance with an exemplary embodiment.
FIG. 3C is a block diagram illustrating a determination module in accordance with an exemplary embodiment.
FIG. 3D is a block diagram illustrating another determination module in accordance with an exemplary embodiment.
Fig. 4 is a block diagram illustrating an intelligent terminal according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure will be described. At present, the flash mode of an intelligent terminal mainly has two modes, namely a Fastboot mode and a Recovery mode. Generally, when a user wants to flush the intelligent terminal through the Fastboot mode, the user can simultaneously press a power key and a volume down key of the intelligent terminal, and when the boot loader of the intelligent terminal detects that the power key and the volume down key are simultaneously pressed during the running process, the user enters the Fastboot mode. When a user wants to flush the intelligent terminal through the Recovery mode, the user can simultaneously press a power key and an upper volume key of the intelligent terminal, and when the boot loader of the intelligent terminal detects that the power key and the lower volume key are simultaneously pressed during operation, the user enters the Recovery mode. In the related art, the intelligent terminal enters the flashing mode by pressing the entity volume key, and for the intelligent terminal without the entity volume key, the intelligent terminal cannot enter the flashing mode for flashing by the method, so that great inconvenience is brought to flashing of the user.
In order to solve the above problem, the embodiment of the present disclosure provides a flashing method of an intelligent terminal and the intelligent terminal. In the flashing method of the intelligent terminal, the intelligent terminal can start the point reporting function of the touch screen when the loading program is guided to start running, the touch position acted on the touch screen by touch operation is obtained to determine and enter the flashing mode, a user does not need to enter the flashing mode for flashing by pressing a specific combination key, the problem that the intelligent terminal cannot enter the flashing mode for flashing in the related art when an entity volume key does not exist in the intelligent terminal is solved, and convenience is brought to flashing of the user.
Fig. 1 is a flowchart illustrating a flashing method of an intelligent terminal according to an exemplary embodiment, where the method is used in the intelligent terminal, as shown in fig. 1, and includes the following steps:
in step 101, when the boot loader runs, power is supplied to the touch screen, and a touch point function of the touch screen is started, wherein the touch point function is used for detecting touch operation on the touch screen and a touch position of the touch operation acting on the touch screen.
In step 102, a touch position of the touch operation acting on the touch screen is obtained through a touch point function.
In step 103, a flashing mode is determined based on the touch position, and the flashing mode is entered to flash the intelligent terminal.
In the embodiment of the disclosure, when the boot loader runs, the intelligent terminal detects a touch operation by starting a touch point reporting function of the touch screen, acquires a touch position corresponding to the touch operation, and determines a flashing mode based on the acquired touch position. That is, the intelligent terminal can determine and enter the flashing mode according to the touch position of the acquired touch operation acting on the touch screen, and the user does not need to enter the flashing mode by pressing a specific combination key, so that the problem that the flashing mode cannot be entered to flash the intelligent terminal when the intelligent terminal does not have an entity volume key in the related art is solved, and convenience is brought to the flashing of the user.
Optionally, acquiring a touch position of the touch operation acting on the touch screen through a touch point function includes:
when interrupt information reported by an Integrated Circuit (IC) of the touch screen is detected, a touch position of touch operation acting on the touch screen is obtained from the IC, and the interrupt information is generated when the touch operation acts on the touch screen.
Optionally, acquiring a touch position of the touch operation acting on the touch screen through a touch point function includes:
reading level information on an interrupt pin of an IC of a touch screen;
judging whether the IC generates interruption currently or not based on the level information;
when the IC generates an interrupt currently, the touch position acted on the touch screen by the touch operation which generates the interrupt currently is obtained.
Optionally, determining a swipe mode based on the touch location comprises:
judging whether the touch position is located in a first preset position range or a second preset position range;
when the touch position is located in a first preset position range, determining that the flashing mode is a fast starting fastboost mode;
and when the touch position is in the second preset position range, determining that the flashing mode is the Recovery mode.
Optionally, after determining whether the touch position is located in the first preset position range or the second preset position range, the method further includes:
judging whether a touch track formed at a touch position by touch operation is a preset track or not;
correspondingly, when the touch position is located in the first preset position range, determining that the flash mode is the fast start Fastboot mode includes:
when the touch position is in the first preset position range and the touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is a fastboost mode;
correspondingly, when the touch position is in the second preset position range, determining the flash mode as a Recovery mode comprises the following steps:
and when the touch position is in the second preset position range and the touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is the Recovery mode.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
Fig. 2 is a flowchart illustrating a flashing method of an intelligent terminal according to an exemplary embodiment, where the method is used in the intelligent terminal, as shown in fig. 2, and includes the following steps:
in step 201, when the boot loader runs, power is supplied to the touch screen, and a touch point reporting function of the touch screen is started, wherein the touch point reporting function is used for detecting touch operation on the touch screen and a touch position of the touch operation acting on the touch screen.
When a user wants to flush the intelligent terminal, the intelligent terminal can be powered off. And then, when the user triggers a power-on command by pressing a power key or other methods, the intelligent terminal starts to run the boot loader. When the boot loader starts to run, power is supplied to the touch screen of the intelligent terminal, and the reporting function of the touch screen is started through the command information. The bootstrap loader is used for completing tasks such as initialization of hardware equipment of the intelligent terminal and loading and starting of a system in the process of starting the intelligent terminal.
It should be noted that, because the boot loader can only execute the operation of determining whether to enter the flashing mode and which flashing mode to enter only when the boot loader runs to a certain stage, and the user cannot know whether the boot loader currently runs to the stage, when the user wants to flash the intelligent terminal, in order to enable the intelligent terminal to flash through the methods of steps 202 to 204, the user may start running from the boot loader of the intelligent terminal, that is, perform a touch operation on the touch screen of the intelligent terminal, and the touch screen of the intelligent terminal may record the touch operation, so that the flashing mode can be determined based on the recorded touch operation when the boot loader runs to the stage.
The user may perform only one touch operation on the touch screen of the intelligent terminal, and certainly, in order to better recognize the touch operation on the touch screen of the intelligent terminal, the user may also perform the touch operation on the touch screen of the intelligent terminal repeatedly and continuously for multiple times. In this case, the smart terminal may record the multiple touch operations, or may record only the latest touch operation.
In step 202, a touch position of the touch operation acting on the touch screen is obtained through a touch point function.
After the touch screen is started, the intelligent terminal can acquire the touch position of the touch operation acting on the touch screen through the touch screen reporting function. When the touch operation is applied to the touch screen, an interrupt pin of the IC of the touch screen is interrupted, that is, the level information on the interrupt pin of the IC of the touch screen is changed, so the intelligent terminal can obtain the touch position where the touch operation is applied to the touch screen in the following ways, where the level information on the interrupt pin of the IC of the touch screen includes high level information and low level information.
The first mode is as follows: when the intelligent terminal detects interrupt information reported by an IC of the touch screen, the intelligent terminal acquires a touch position of touch operation acting on the touch screen from the IC, wherein the interrupt information is generated when the touch operation acts on the touch screen.
For an intelligent terminal with a bootstrap loader supporting an interrupt response function, when a user performs a touch operation on a touch screen of the intelligent terminal, level information on an interrupt pin of an IC of the touch screen of the intelligent terminal may change, that is, the IC of the touch screen may be interrupted. At this time, the IC of the touch screen may record a touch position corresponding to the currently interrupted touch operation, and the IC of the touch screen may automatically report the interruption information, where the interruption information may be changed level information. When the intelligent terminal detects the interrupt information reported by the IC of the touch screen, the current touch operation acting on the touch screen can be determined. At this time, the smart terminal may read a touch position of the touch operation acting on the touch screen from an IC of the touch screen through an I2C (Inter-integrated Circuit) bus.
The second mode is as follows: the intelligent terminal reads level information on an interrupt pin of an IC of the touch screen; judging whether the IC generates interruption currently or not based on the level information; when the IC generates an interrupt currently, the touch position acted on the touch screen by the touch operation which generates the interrupt currently is obtained.
When the bootstrap loader runs, the intelligent terminal can actively read level information on an interrupt pin of an IC of the touch screen; after the intelligent terminal acquires the level information on the interrupt pin of the IC of the current touch screen, the acquired level information can be compared with the stored preset level information, so that whether the IC generates interrupt currently is judged. When the intelligent terminal determines that the IC currently generates the interrupt, the touch position acted on the touch screen by the touch operation currently generating the interrupt can be acquired from the IC through the I2C bus.
The intelligent terminal can read the level information on the interrupt pin of the IC of the touch screen in real time, and certainly, for the intelligent terminal which guides the loader to support the timer function, the intelligent terminal can read the level information on the interrupt pin of the IC of the touch screen at intervals of preset time, so that the reading times of the intelligent terminal are reduced, and the system resources are saved. The preset time interval can be set between 50ms and 100ms, so that the intelligent terminal can be ensured to acquire the level information when the interruption occurs in time, and meanwhile, the system resources can be saved.
It should be further noted that the stored preset level information may be preset level information on an interrupt pin when the IC of the touch screen is not interrupted, or may also be preset level information on the interrupt pin when the IC of the touch screen is interrupted. Therefore, the way to determine whether the IC currently generates an interrupt may be:
(1) when the stored preset level information is the preset level information on the interrupt pin when the IC of the touch screen is not interrupted, if the acquired level information is different from the stored preset level information, it may be determined that the IC of the touch screen is currently interrupted. Otherwise, it may be determined that the IC of the touch screen is not currently interrupted.
(2) When the stored preset level information is preset level information on an interrupt pin when the IC of the touch screen is interrupted, if the acquired level information is the same as the stored preset level information, it may be determined that the IC of the touch screen is currently interrupted. Otherwise, it may be determined that the IC of the touch screen is not currently interrupted.
For example, if the stored preset level information is preset level information on an interrupt pin when the IC of the touch screen is not interrupted, and the preset level information is high level information, it may be determined that the IC is interrupted when the acquired level information is low level information; when the acquired level information is high level information, it can be determined that no interruption of the IC has occurred.
In step 203, a swipe mode is determined based on the touch position.
After the intelligent terminal acquires the touch position acted on the touch screen by the touch operation, the acquired touch position can be stored. Thereafter, based on the description in step 201, when the boot loader runs to a certain stage, the flush mode may be determined based on the stored touch position.
Further, since the user may perform a plurality of touch operations on the touch screen, and thus the IC of the touch screen is interrupted for a plurality of times, and a plurality of touch positions are generated, the smart terminal may store only the touch position acquired last time.
The operation of the intelligent terminal for determining the flashing mode based on the touch position can be as follows: judging whether the touch position is located in a first preset position range or a second preset position range; when the touch position is located in a first preset position range, determining that the flashing mode is a fastboost mode; when the touch position is located in a second preset position range, determining that the flashing mode is a Recovery mode; when the touch position is not located in the first preset position range or the second preset position range, the intelligent terminal can be started through the bootstrap loader.
It should be noted that the first preset position range and the second preset position range are different, and the first preset position range and the second preset position range may be any position range on the touch screen. For example, the touch screen may be divided into an upper area and a lower area along the length direction, and the upper area and the lower area are 1/2 of the touch screen, in this case, the first preset position range may be the upper area, and the second preset position range may be the lower area.
Further, in order to determine the flashing mode more accurately according to the touch position, after the touch position is judged to be located in the first preset position range or the second preset position range, the intelligent terminal can also judge whether the touch track formed at the touch position is a preset track. Correspondingly, when the touch position is in the first preset position range and the touch track formed at the touch position is a preset track, the flashing mode is determined to be the Fastboot mode, and when the touch position is in the second preset position range and the touch track formed at the touch position is the preset track, the flashing mode is determined to be the Recovery mode.
Optionally, the preset trajectory set for different brusher modes may be different or the same. When different preset trajectories are set for different flashing modes, the preset trajectories may include a first preset trajectory and a second preset trajectory. In this case, if the intelligent terminal determines that the touch position is located in the first preset position range, it may be determined whether the touch trajectory formed at the touch position is the first preset trajectory, and when the touch trajectory formed at the touch position is the first preset trajectory, it may be determined that the swipe mode is the Fastboot mode. Similarly, if the intelligent terminal determines that the touch position is located in the second preset position range, the intelligent terminal may determine whether the touch trajectory formed at the touch position is the second preset trajectory, and when the touch trajectory formed at the touch position is the second preset trajectory, the flashing mode may be determined to be the Recovery mode.
In step 204, the intelligent terminal enters the flashing mode to conduct flashing.
Based on the description in step 203, after the intelligent terminal determines the flashing mode, the intelligent terminal may enter the determined flashing mode to perform flashing.
When the flashing mode determined by the intelligent terminal is the Fastboot mode, the intelligent terminal can receive the system data file sent by other terminals connected with the intelligent terminal through the USB data line and update the system data file to a partition appointed by the intelligent terminal, so that flashing is completed. And when the flashing mode is determined to be the Recovery mode, the intelligent terminal can modify the current system data through the system data in the memory of the intelligent terminal, so that flashing is completed.
In the embodiment of the disclosure, when the boot loader runs, the intelligent terminal detects a touch operation by starting a touch point reporting function of the touch screen, acquires a touch position corresponding to the touch operation, and determines a flashing mode based on the acquired touch position. That is, the intelligent terminal can determine and enter the flashing mode according to the touch position of the acquired touch operation acting on the touch screen, and the user does not need to enter the flashing mode by pressing a specific combination key, so that the problem that the flashing mode cannot be entered to flash the intelligent terminal when the intelligent terminal does not have an entity volume key in the related art is solved, and convenience is brought to the flashing of the user. In addition, the intelligent terminal can determine the flashing mode based on the touch position, and can also combine the touch position with a touch track formed at the touch position to judge which flashing mode is entered at all, so that the judgment accuracy is improved.
Fig. 3A is a block diagram illustrating an intelligent terminal 300 according to an example embodiment. Referring to fig. 3A, the smart terminal includes a power supply module 301, an acquisition module 302, and a determination module 303.
The power supply module 301 is configured to supply power to the touch screen and start a touch point reporting function of the touch screen when the boot loader runs, where the touch point reporting function is used to detect a touch operation on the touch screen and a touch position where the touch operation acts on the touch screen;
an obtaining module 302, configured to obtain, through a touch point reporting function, a touch position where a touch operation acts on a touch screen;
and the determining module 303 is configured to determine a flashing mode based on the touch position, and enter the flashing mode to flash the intelligent terminal.
Optionally, the obtaining module 302 includes:
the first obtaining submodule is used for obtaining a touch position of touch operation acting on the touch screen from the IC when interrupt information reported by an Integrated Circuit (IC) of the touch screen is detected, and the interrupt information is generated when the touch operation acts on the touch screen.
Optionally, referring to fig. 3B, the obtaining module 302 includes:
a reading submodule 3021 for reading level information on an interrupt pin of an IC of the touch screen;
a first judgment sub-module 3022 configured to judge whether the IC currently generates an interrupt based on the level information;
the second obtaining submodule 3023 is configured to, when the IC currently generates an interrupt, obtain a touch position on the touch screen where a touch operation currently generating the interrupt is applied.
Optionally, referring to fig. 3C, the determining module 303 includes:
the second judgment submodule 3031 is configured to judge whether the touch position is within the first preset position range or within the second preset position range;
the first determining submodule 3032 is used for determining that the flashing mode is the fast start fastboost mode when the touch position is located in the first preset position range;
the second determining submodule 3033 is configured to determine that the flashing mode is the Recovery mode when the touch position is in the second preset position range.
Optionally, referring to fig. 3D, the determining module 303 further includes:
a third determining submodule 3034, configured to determine whether a touch trajectory formed at the touch position by the touch operation is a preset trajectory;
accordingly, the first determination submodule 3032 is configured to:
when the touch position is in the first preset position range and the touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is a fastboost mode;
accordingly, the second determination submodule 3033 is configured to:
and when the touch position is in the second preset position range and the touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is the Recovery mode.
In the embodiment of the disclosure, when the boot loader runs, the intelligent terminal detects a touch operation by starting a touch point reporting function of the touch screen, acquires a touch position corresponding to the touch operation, and determines a flashing mode based on the acquired touch position. That is, the intelligent terminal can determine and enter the flashing mode according to the touch position of the acquired touch operation acting on the touch screen, and the user does not need to enter the flashing mode by pressing a specific combination key, so that the problem that the flashing mode cannot be entered to flash the intelligent terminal when the intelligent terminal does not have an entity volume key in the related art is solved, and convenience is brought to the flashing of the user. In addition, the intelligent terminal can determine the flashing mode based on the touch position, and can also combine the touch position with a touch track formed at the touch position to judge which flashing mode is entered at all, so that the judgment accuracy is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 4 is a block diagram illustrating an intelligent terminal 400 for the flashing method of the intelligent terminal according to an exemplary embodiment. For example, the smart terminal 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 4, the smart terminal 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls the overall operation of the smart terminal 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the smart terminal 400. Examples of such data include instructions for any application or method operating on the smart terminal 400, contact data, phonebook data, messages, pictures, videos, and the like. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 406 provides power to the various components of the smart terminal 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the smart terminal 400.
The multimedia component 408 includes a screen providing an output interface between the intelligent terminal 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. When the smart terminal 400 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, the audio component 410 includes a Microphone (MIC) configured to receive external audio signals when the smart terminal 400 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of state assessment for the smart terminal 400. For example, the sensor component 414 may detect an open/closed state of the smart terminal 400, a relative positioning of components, such as a display and keypad of the smart terminal 400, the sensor component 414 may also detect a change in position of the smart terminal 400 or a component of the smart terminal 400, the presence or absence of user contact with the smart terminal 400, orientation or acceleration/deceleration of the smart terminal 400, and a change in temperature of the smart terminal 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the smart terminal 400 and other devices. The smart terminal 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the smart terminal 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the smart terminal 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a flashing method of a smart terminal, the method comprising:
when a loading program is guided to run, supplying power to a touch screen, and starting a point reporting function of the touch screen, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
acquiring a touch position acted on the touch screen by the touch operation through the point reporting function;
and determining a flashing mode based on the touch position, and entering the flashing mode to flash the intelligent terminal.
Optionally, the obtaining, by the touch pointing function, a touch position where the touch operation acts on the touch screen includes:
when interrupt information reported by an Integrated Circuit (IC) of the touch screen is detected, acquiring a touch position of the touch operation acting on the touch screen from the IC, wherein the interrupt information is generated when the touch operation acts on the touch screen.
Optionally, the obtaining, by the touch pointing function, a touch position where the touch operation acts on the touch screen includes:
reading level information on an interrupt pin of an IC of the touch screen;
judging whether the IC generates an interrupt currently or not based on the level information;
when the IC generates an interrupt currently, acquiring a touch position acted on the touch screen by the touch operation which generates the interrupt currently.
Optionally, the determining a flashing mode based on the touch position includes:
judging whether the touch position is located in a first preset position range or a second preset position range;
when the touch position is located in the first preset position range, determining that the flashing mode is a fast start fastboost mode;
and when the touch position is located in the second preset position range, determining that the flashing mode is a Recovery mode.
Optionally, after determining whether the touch position is located in a first preset position range or a second preset position range, the method further includes:
judging whether a touch track formed by the touch operation at the touch position is a preset track;
correspondingly, when the touch position is located in the first preset position range, determining that the flash mode is the fast start Fastboot mode includes:
when the touch position is located in the first preset position range and a touch track formed by the touch operation at the touch position is a preset track, determining that the machine swiping mode is a Fastboot mode;
correspondingly, when the touch position is located in the second preset position range, determining that the flashing mode is the Recovery mode includes:
and when the touch position is in the second preset position range and a touch track formed by the touch operation at the touch position is a preset track, determining that the flashing mode is a Recovery mode.
In the embodiment of the disclosure, when the boot loader runs, the intelligent terminal detects a touch operation by starting a touch point reporting function of the touch screen, acquires a touch position corresponding to the touch operation, and determines a flashing mode based on the acquired touch position. That is, the intelligent terminal can determine and enter the flashing mode according to the touch position of the acquired touch operation acting on the touch screen, and the user does not need to enter the flashing mode by pressing a specific combination key, so that the problem that the flashing mode cannot be entered to flash the intelligent terminal when the intelligent terminal does not have an entity volume key in the related art is solved, and convenience is brought to the flashing of the user. In addition, the intelligent terminal can determine the flashing mode based on the touch position, and can also combine the touch position with a touch track formed at the touch position to judge which flashing mode is entered at all, so that the judgment accuracy is improved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (7)

1. A flashing method of an intelligent terminal is characterized by comprising the following steps:
when a loading program is guided to run, supplying power to a touch screen, and starting a point reporting function of the touch screen, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
acquiring the touch operation which is detected and stored last time after the bootstrap loader starts to run through the point reporting function, and acquiring the touch position of the touch operation acting on the touch screen;
determining a flashing mode based on the touch position, and entering the flashing mode to flash the intelligent terminal;
the determining a flashing mode based on the touch position comprises:
judging whether the touch position is located in a first preset position range or a second preset position range;
judging whether a touch track formed by the touch operation at the touch position is a first preset track or a second preset track;
when the touch position is located in the first preset position range and the touch track is the first preset track, determining that the machine swiping mode is a fast start Fastboot mode;
and when the touch position is in the second preset position range and the touch track is the second preset track, determining that the flashing mode is a Recovery mode.
2. The method according to claim 1, wherein the obtaining, by the touch point function, a touch position where the touch operation acts on the touch screen comprises:
and when interrupt information reported by an Integrated Circuit (IC) of the touch screen is detected, acquiring a touch position of the touch operation acting on the touch screen from the IC, wherein the interrupt information is generated when the touch operation acts on the touch screen.
3. The method according to claim 1, wherein the obtaining, by the touch point function, a touch position where the touch operation acts on the touch screen comprises:
reading level information on an interrupt pin of an IC of the touch screen;
judging whether the IC generates an interrupt currently or not based on the level information;
when the IC generates an interrupt currently, acquiring a touch position acted on the touch screen by the touch operation which generates the interrupt currently.
4. An intelligent terminal, characterized in that, intelligent terminal includes:
the power supply module is used for supplying power to the touch screen and starting a point reporting function of the touch screen when a loading program is guided to run, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
the acquisition module is used for acquiring the touch operation which is detected and stored last time after the bootstrap loader starts to run through the report function and acquiring the touch position of the touch operation acting on the touch screen;
the determining module is used for determining a flashing mode based on the touch position and entering the flashing mode to flash the intelligent terminal;
the determining module comprises:
the second judgment submodule is used for judging whether the touch position is located in a first preset position range or a second preset position range;
the third judgment submodule is used for judging whether a touch track formed by the touch operation at the touch position is a first preset track or a second preset track;
the first determining submodule is used for determining that the flashing mode is a fast start mode when the touch position is located in the first preset position range and the touch track is the first preset track;
and the second determining submodule is used for determining that the flashing mode is a Recovery mode when the touch position is in the second preset position range and the touch track is the second preset track.
5. The intelligent terminal of claim 4, wherein the obtaining module comprises:
the first obtaining submodule is used for obtaining a touch position of the touch operation acting on the touch screen from an Integrated Circuit (IC) when interrupt information reported by the IC of the touch screen is detected, and the interrupt information is generated when the touch operation acts on the touch screen.
6. The intelligent terminal of claim 4, wherein the obtaining module comprises:
the reading submodule is used for reading level information on an interrupt pin of an IC of the touch screen;
a first judgment sub-module, configured to judge whether the IC currently generates an interrupt based on the level information;
and the second acquisition sub-module is used for acquiring the touch position acted on the touch screen by the touch operation which currently generates the interrupt when the IC currently generates the interrupt.
7. An intelligent terminal, characterized in that, intelligent terminal includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a loading program is guided to run, supplying power to a touch screen, and starting a point reporting function of the touch screen, wherein the point reporting function is used for detecting touch operation aiming at the touch screen and a touch position of the touch operation acting on the touch screen;
acquiring the touch operation which is detected and stored last time after the bootstrap loader starts to run through the point reporting function, and acquiring the touch position of the touch operation acting on the touch screen;
determining a flashing mode based on the touch position, and entering the flashing mode to flash the intelligent terminal;
the determining a flashing mode based on the touch position comprises:
judging whether the touch position is located in a first preset position range or a second preset position range;
judging whether a touch track formed by the touch operation at the touch position is a first preset track or a second preset track;
when the touch position is located in the first preset position range and the touch track is the first preset track, determining that the machine swiping mode is a fast start Fastboot mode;
and when the touch position is in the second preset position range and the touch track is the second preset track, determining that the flashing mode is a Recovery mode.
CN201710040850.8A 2017-01-20 2017-01-20 Intelligent terminal and flashing method thereof Active CN108334328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710040850.8A CN108334328B (en) 2017-01-20 2017-01-20 Intelligent terminal and flashing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710040850.8A CN108334328B (en) 2017-01-20 2017-01-20 Intelligent terminal and flashing method thereof

Publications (2)

Publication Number Publication Date
CN108334328A CN108334328A (en) 2018-07-27
CN108334328B true CN108334328B (en) 2021-10-22

Family

ID=62921779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710040850.8A Active CN108334328B (en) 2017-01-20 2017-01-20 Intelligent terminal and flashing method thereof

Country Status (1)

Country Link
CN (1) CN108334328B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN106527898A (en) * 2016-11-22 2017-03-22 深圳市万普拉斯科技有限公司 Specific function opening method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9489851B1 (en) * 2011-08-18 2016-11-08 The United States Of America, As Represented By The Secretary Of The Navy Landing signal officer (LSO) information management and trend analysis (IMTA) system
CN103106036B (en) * 2013-02-05 2016-06-15 惠州Tcl移动通信有限公司 A kind of screenshotss method of mobile terminal and the mobile terminal based on this screenshotss method thereof
CN104007879A (en) * 2014-05-16 2014-08-27 深圳市道通科技有限公司 Touch screen equipment and system starting method and device thereof
CN104461667B (en) * 2014-12-31 2017-09-26 广东欧珀移动通信有限公司 The brush machine method and apparatus of intelligent terminal
CN104809010B (en) * 2015-04-09 2018-06-26 华为技术有限公司 A kind of brush machine method and intelligent terminal
CN105739767B (en) * 2016-01-28 2021-05-18 厦门雅迅网络股份有限公司 Automatic recovery method for touch screen function failure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN106527898A (en) * 2016-11-22 2017-03-22 深圳市万普拉斯科技有限公司 Specific function opening method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A wearable smartphone-based system for electrocardiogram acquisition;A. Depari等;《2014 IEEE International Symposium on Medical Measurements and Applications (MeMeA)》;20140724;第1-6页 *
基于PLC的一种制刷机控制系统的设计与实现;童志宝;《电气传动自动化》;20091201;第50-51、54页 *

Also Published As

Publication number Publication date
CN108334328A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN106951884B (en) Fingerprint acquisition method and device and electronic equipment
US9967811B2 (en) Method and device for displaying WIFI list
EP2991275B1 (en) Making router management application compatible with router firmware
CN107102772B (en) Touch control method and device
EP3163411A1 (en) Method, device and apparatus for application switching
US20170031557A1 (en) Method and apparatus for adjusting shooting function
EP3136793A1 (en) Method and apparatus for awakening electronic device
US9491371B2 (en) Method and device for configuring photographing parameters
CN109284149B (en) Method and device for starting application program
CN107992257B (en) Screen splitting method and device
CN107291626B (en) Data storage method and device
CN105912258B (en) Operation processing method and device
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
US10572424B2 (en) Method and apparatus for switching state
CN106354504B (en) Message display method and device
CN107885418B (en) Terminal, split screen display method and device
EP3015965A1 (en) Method and apparatus for prompting device connection
EP3322227A1 (en) Methods and apparatuses for controlling wireless connection, computer program and recording medium
CN107632835B (en) Application installation method and device
US10671827B2 (en) Method and device for fingerprint verification
CN107371222B (en) Virtual card disabling method and device
CN112148148A (en) Touch operation identification method and device, mobile terminal and storage medium
CN108829532B (en) Fingerprint detection method, device and readable storage medium
CN107422911B (en) Pressure value detection method and device and computer readable storage medium
CN107422954B (en) Lock screen prolonging method and device

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
GR01 Patent grant
GR01 Patent grant