CN108491285B - Data protection method applied to electronic equipment test and related product - Google Patents
Data protection method applied to electronic equipment test and related product Download PDFInfo
- Publication number
- CN108491285B CN108491285B CN201810155410.1A CN201810155410A CN108491285B CN 108491285 B CN108491285 B CN 108491285B CN 201810155410 A CN201810155410 A CN 201810155410A CN 108491285 B CN108491285 B CN 108491285B
- Authority
- CN
- China
- Prior art keywords
- electronic equipment
- countdown
- mode
- test
- electronic device
- 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.)
- Expired - Fee Related
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 168
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000004891 communication Methods 0.000 claims abstract description 70
- 238000004590 computer program Methods 0.000 claims description 14
- 238000013100 final test Methods 0.000 claims description 7
- 230000002035 prolonged effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000011056 performance test Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/004—Error avoidance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/273—Tester hardware, i.e. output processing circuits
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a data protection method applied to electronic equipment testing and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a processor and a communication unit connected with the processor, and the method comprises the following steps: when an electronic device is started, establishing communication connection between the electronic device and a test platform; entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown; when the countdown is finished, removing the preset pin configuration information and receiving a shutdown instruction; and closing the electronic equipment. According to the embodiment of the application, in the test process, on one hand, the electronic equipment is powered off regularly, on the other hand, the original preset pin configuration is removed, and the system file of the electronic equipment is protected under the condition that the electronic equipment is forced to be powered off.
Description
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a data protection method applied to electronic device testing and a related product.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, etc.), the electronic devices have more and more applications and more powerful functions, and the electronic devices are developed towards diversification and personalization, and become indispensable electronic products in the life of users.
Generally, an electronic device is connected to a test platform (e.g., a high-pass platform) to test the performance of the electronic device, but during the test, if a forced power failure occurs, system files in the electronic device may be damaged.
Disclosure of Invention
The embodiment of the application provides a data protection method applied to electronic equipment testing and a related product, which can protect system files of electronic equipment under the condition that the electronic equipment is forced to be powered off.
In a first aspect, an embodiment of the present application provides an electronic device, which includes a processor and a communication unit connected to the processor, wherein,
the communication unit is used for establishing communication connection between the electronic equipment and the test platform when the electronic equipment is started;
the processor is used for entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode and starting countdown; when the countdown is finished, removing the preset pin configuration information;
the communication unit is further specifically configured to:
receiving a shutdown instruction;
the processor is further specifically configured to: and closing the electronic equipment.
In a second aspect, an embodiment of the present application provides a data protection method applied to an electronic device test, where the data protection method is applied to an electronic device, and includes:
when an electronic device is started, establishing communication connection between the electronic device and a test platform;
entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown;
when the countdown is finished, removing the preset pin configuration information and receiving a shutdown instruction;
and closing the electronic equipment.
In a third aspect, an embodiment of the present application provides a data protection apparatus applied to an electronic device test, where the data protection apparatus is applied to an electronic device, the electronic device includes a processor and a communication unit connected to the processor, and the apparatus includes:
the connection unit is used for establishing communication connection between the electronic equipment and the test platform when the electronic equipment is started;
the test unit is used for entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode and starting countdown;
the receiving unit is used for removing the preset pin configuration information and receiving a shutdown instruction when the countdown is finished;
a closing unit for closing the electronic device.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for some or all of the steps as described in the second aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program, where the computer program is used to make a computer execute some or all of the steps described in the second aspect of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, where the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the second aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that the data protection method applied to the electronic device test and the related product described in the embodiments of the present application are applied to an electronic device, when the electronic device is started, a communication connection between the electronic device and a test platform is established, a target mode corresponding to preset pin configuration information is entered, the electronic device in the target mode is tested, a countdown is started, when the countdown is finished, the preset pin configuration information is removed, a shutdown instruction is received, and the electronic device is turned off.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an example electronic device provided in an embodiment of the present application;
fig. 1B is a schematic flowchart of a data protection method applied to an electronic device test according to an embodiment of the present application;
fig. 1C is a schematic diagram of a test application scenario disclosed in an embodiment of the present application;
FIG. 2 is a schematic flowchart of another data protection method applied to electronic device testing, disclosed in an embodiment of the present application;
FIG. 3 is a schematic flowchart of another data protection method applied to electronic device testing, disclosed in an embodiment of the present application;
fig. 4 is another schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a data protection apparatus applied to an electronic device test according to an embodiment of the present application;
fig. 6 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic devices referred to in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on, and for convenience of description, the above-mentioned devices are collectively referred to as electronic devices. The electronic device in the embodiment of the present application may be based on at least one of the following systems: android operating system, UNIX operating system, Windows operating system, apple operating system, etc.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes: the processor 110, the communication unit 120 and the display 130, wherein the communication unit 120 and the display 130 are electrically connected to the processor 110.
The communication unit 120 is configured to establish a communication connection between the electronic device and the test platform when the electronic device is powered on;
the processor 110 is configured to enter a target mode corresponding to preset pin configuration information, test the electronic device in the target mode, and start countdown; when the countdown is finished, removing the preset pin configuration information;
the communication unit 120 is further specifically configured to:
receiving a shutdown instruction;
the processor 110 is further specifically configured to: and closing the electronic equipment.
Wherein, the communication unit can be at least one of the following: a communication interface of the electronic device, a USB interface, a communication module, a wireless fidelity (Wi-Fi) module, and so on.
It can be seen that, in the electronic device in the embodiment of the present application, when the electronic device is powered on, a communication connection between the electronic device and the test platform is established, the electronic device enters a target mode corresponding to preset pin configuration information, the electronic device in the target mode is tested, countdown is started, when the countdown is finished, the preset pin configuration information is removed, a shutdown instruction is received, and the electronic device is turned off.
In one possible example, in terms of the starting countdown, the processor 110 is specifically configured to:
acquiring the content to be tested in the target mode;
and estimating the consumption time required by testing the content to be tested, taking the consumption time as the countdown time, and starting the countdown.
In one possible example, the communication unit 120 is further specifically configured to:
receiving a mode entering instruction sent by the test platform, where the mode entering instruction carries the preset pin configuration information, and executing, by the processor 110, a step of entering a target mode corresponding to the preset pin configuration information.
In one possible example, the processor 110 is further specifically configured to:
and detecting whether the test is finished or not, and executing the step of removing the preset pin configuration information when the test is finished.
In one possible example, the processor 110 is further specifically configured to:
when the test is not finished, estimating the remaining time of the test, and evaluating whether the communication connection between the electronic equipment and the test platform is stable;
when the communication connection between the electronic equipment and the test platform is stable, the countdown is prolonged by taking the remaining time as the countdown length;
the display screen 130 is used for displaying the remaining time in a countdown mode to remind the user.
The electronic device described in fig. 1A may be configured to execute a data protection method applied to an electronic device test, which is described as follows:
the communication unit 120 is configured to establish a communication connection between the electronic device and the test platform when the electronic device is powered on;
the processor 110 is configured to enter a target mode corresponding to preset pin configuration information, test the electronic device in the target mode, and start countdown; when the countdown is finished, removing the preset pin configuration information;
the communication unit 120 is further specifically configured to:
receiving a shutdown instruction;
the processor 110 is further specifically configured to: and closing the electronic equipment.
Referring to fig. 1B, an embodiment of a data protection method applied to an electronic device test according to an embodiment of the present application is schematically illustrated in a flowchart of an electronic device described in fig. 1A. The data protection method applied to the electronic equipment test is applied to the electronic equipment, the electronic equipment comprises a processor and a communication unit connected with the processor, and the data protection method can comprise the following steps:
101. when the electronic equipment is started, establishing communication connection between the electronic equipment and the test platform.
Wherein, the electronic equipment can be placed on the test platform. The electronic device and the test platform can be connected with the electronic device through a data line (for example, a USB data line) or a wireless network. Referring to fig. 1C, the embodiment of the present application may be implemented based on the test scenario shown in fig. 1C.
Optionally, the test platform may provide a power supply for the electronic device to start up the electronic device and perform a test operation, or the electronic device may include a battery to supply power to start up the electronic device or perform a test operation.
102. And entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown.
The preset pin configuration information may be stored in the test platform, or may be stored in the electronic device. The preset pin configuration information may be set by the user or default by the system. The electronic device may enter a target mode corresponding to the preset pin configuration information, and test the electronic device in the target mode, where the test content may include calibration (calibrating various parameters) and comprehensive test (performance test), and start countdown, where the countdown may be performed simultaneously with the start of the test, or the countdown may be started before the test is completed.
Optionally, in step 102, the electronic device may start the countdown with a preset timing duration, which may be set by the user or default by the system, for example, the preset timing duration may be 5s, 10s, 10.5s, and so on.
Optionally, the pin configuration information in this embodiment may be level information of each pin, for example, if a certain pin needs to be at a high level, the pin configuration information of the pin is 1, and if a certain pin needs to be at a low level, the pin configuration information of the pin is 0. In the embodiment of the present application, the mode entered through the pin configuration information may be one of the following modes: factory mode (Factory mode), WLAN Final Test (WLAN Final Test), radio frequency mode (RF mode), or normal Power On mode (oridinary Power On), without limitation. The WLAN Final Test and the RF mode can be used under the conditions of calibration and comprehensive Test as long as the two modes are connected with a USB line and a power supply and can be entered without starting up. The following table shows a mapping relationship between pin configuration information and modes:
|
Pin 2 | Mode(s) |
0 | 0 | Factory mode |
0 | 1 | |
1 | 0 | |
1 | 1 | Ordinary Power On |
For example, as shown in the above table, if pin 1 is high (1) and pin 2 is low (0), then enter RF mode.
Optionally, in step 102, starting a countdown includes:
a1, obtaining the content to be tested in the target mode;
a2, estimating the consumption time required by testing the content to be tested, taking the consumption time as the countdown time, and starting the countdown.
The content to be tested may be defaulted by the system, or may be selected by the user (for example, a test list may be displayed on a display screen of the electronic device, and the user may select the content to be tested from the test list). The content to be tested corresponds to the program code length in the electronic device, the speed of the electronic device running the code may be determined, and further, the consumption duration is the program code length of the content to be tested/the speed of the running code, and the consumption duration may be taken as a countdown duration, and counted down accordingly, for example, the consumption duration is 5s, and counted down in 5s, that is, 5s, 4s, 3s, 2s, 1s, 0.
Optionally, between the step 101 and the step 102, the following steps may be further included:
and receiving a mode entering instruction sent by the test platform, wherein the mode entering instruction carries the preset pin configuration information, and executing the step of entering a target mode corresponding to the preset pin configuration information.
The test platform can send a mode entering instruction to the electronic equipment, the mode entering instruction can carry preset pin configuration information, and then the electronic equipment enters a target mode according to the preset pin configuration information, so that the test platform can conveniently select the mode type to be tested.
103. And when the countdown is finished, removing the preset pin configuration information and receiving a shutdown instruction.
When the countdown is finished, the preset pin configuration information can be removed, namely the electronic equipment exits the target mode, so that even if the electronic equipment is forced to be powered down at the moment, the system file corresponding to the target mode cannot be influenced to be lost, after the preset pin configuration information is removed, a test completion message can be sent to the test platform, the test platform responds to the message, and then a shutdown instruction is sent to the electronic equipment, or after the preset pin configuration information is removed, a preset stored shutdown instruction can be activated.
Optionally, in the process of implementing step 103, the following steps may also be included:
and detecting whether the test is finished or not, and executing the step of removing the preset pin configuration information when the test is finished.
The last line of codes of the content to be tested can be detected to be not executed, if the last line of codes is executed, the test is finished, and if the last line of codes is not executed, the test is not finished. At the end of the test, the default pin configuration information may be removed.
Further optionally, in a case that the test is not ended, the method may further include the following steps:
b1, when the test is not finished, predicting the remaining time of the test, and evaluating whether the communication connection between the electronic equipment and the test platform is stable;
and B2, when the communication connection between the electronic equipment and the test platform is stable, prolonging the countdown by taking the remaining time as the countdown length, and displaying the remaining time in a countdown mode to remind a user.
The electronic equipment can acquire the incomplete residual codes in the content to be tested, estimate the residual time of the test according to the residual codes, evaluate the stability of the communication connection between the electronic equipment and the test platform and mainly evaluate the stability according to the following indexes: network bandwidth, packet loss rate, number of dropped connections, voltage stability, current stability, power stability, etc. If the communication connection between the electronic equipment and the test platform is stable, the remaining time can be used as countdown time to prolong the countdown, and the remaining time is displayed in a countdown mode to remind a user, so that the user can be prevented from forcibly powering down for the end of the test.
Optionally, step B3 may be further included, specifically as follows:
b3, when the communication connection between the electronic equipment and the test platform is unstable, acquiring a preset overtime length, prolonging the countdown by taking the overtime length as the countdown length, and displaying the overtime length in a countdown mode to remind a user, wherein the overtime length is greater than the remaining time.
The preset time duration may be set by the user, or the system defaults, for example, the preset time duration may be an empirical value.
104. And closing the electronic equipment.
After the electronic equipment is closed, even if forced power failure occurs, the system files of the electronic equipment cannot be lost.
It can be seen that the data protection method applied to the electronic device test described in the embodiment of the present application is applied to an electronic device, when the electronic device is started, a communication connection between the electronic device and a test platform is established, a target mode corresponding to preset pin configuration information is entered, the electronic device in the target mode is tested, a countdown is started, when the countdown is finished, the preset pin configuration information is removed, a shutdown instruction is received, and the electronic device is closed.
In accordance with the above, please refer to fig. 2, which is a flowchart illustrating an embodiment of a data protection method applied to an electronic device test according to an embodiment of the present disclosure. The data protection method applied to the electronic device test described in this embodiment is applied to an electronic device, where the electronic device includes a processor and a communication unit connected to the processor, and may include the following steps:
201. when the electronic equipment is started, establishing communication connection between the electronic equipment and the test platform.
202. And entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown.
203. Detecting whether the test is finished or not at the end of the countdown, and executing the step 204-the step 205 at the end of the test; when the test is not finished, step 206-step 207 are executed, and after step 207 is executed, step 204-step 205 may be executed again.
204. And removing the preset pin configuration information and receiving a shutdown instruction.
205. And closing the electronic equipment.
206. And estimating the residual time of the test, and evaluating whether the communication connection between the electronic equipment and the test platform is stable.
207. And when the communication connection between the electronic equipment and the test platform is stable, prolonging the countdown by taking the remaining time as a countdown length, and displaying the remaining time in a countdown mode to remind a user.
The specific description of the steps 201-207 can refer to the corresponding steps of the data protection method applied to the electronic device test described in fig. 1B, and will not be described herein again.
It can be seen that the data protection method applied to the electronic device test described in the embodiments of the present application is applied to an electronic device, when the electronic device is powered on, a communication connection between the electronic device and a test platform is established, a target mode corresponding to preset pin configuration information is entered, the electronic device in the target mode is tested, a countdown is started, when the countdown is finished, whether the test is finished is detected, when the test is finished, the preset pin configuration information is removed, a shutdown instruction is received, the electronic device is turned off, when the test is not finished, the remaining time of the test is estimated, when the communication connection between the electronic device and the test platform is stable, the remaining time is taken as a countdown length to extend the countdown, and the remaining time is displayed in a countdown manner to remind a user, so that, on the one hand, the electronic device is powered off at regular time in the test process, on the other hand, the original preset pin configuration is removed, and the system file of the electronic equipment is protected under the condition that the electronic equipment is forced to be powered off.
In accordance with the above, please refer to fig. 3, which is a flowchart illustrating an embodiment of a data protection method applied to an electronic device test according to an embodiment of the present disclosure. The data protection method applied to the electronic device test described in this embodiment is applied to an electronic device, where the electronic device includes a processor and a communication unit connected to the processor, and may include the following steps:
301. the electronic equipment establishes communication connection between the electronic equipment and the test platform when the electronic equipment is started.
302. The electronic equipment enters a target mode corresponding to preset pin configuration information, tests the electronic equipment in the target mode, and starts countdown.
303. And when the countdown is finished, the electronic equipment removes the preset pin configuration information and sends a test completion message to the test platform.
304. And the test platform sends a shutdown instruction to the electronic equipment.
305. The electronic equipment receives a shutdown instruction and shuts down the electronic equipment.
The specific description of the steps 301-305 can refer to the corresponding steps of the data protection method applied to the electronic device test described in fig. 1B, and will not be described herein again.
It can be seen that the data protection method applied to the electronic device test described in the embodiment of the present application is applied to an electronic device, when the electronic device is started, a communication connection between the electronic device and a test platform is established, a target mode corresponding to preset pin configuration information is entered, the electronic device in the target mode is tested, a countdown is started, when the countdown is finished, the preset pin configuration information is removed, a shutdown instruction is received, and the electronic device is closed.
In accordance with the foregoing, the following is a device for implementing the data protection method applied to the electronic device test, and specifically includes:
in accordance with the above, please refer to fig. 4, in which fig. 4 is an electronic device according to an embodiment of the present application, including: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps of:
when an electronic device is started, establishing communication connection between the electronic device and a test platform;
entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown;
when the countdown is finished, removing the preset pin configuration information and receiving a shutdown instruction;
and closing the electronic equipment.
In one possible example, in connection with the starting the countdown, the program includes instructions for performing the steps of:
acquiring the content to be tested in the target mode;
and estimating the consumption time required by testing the content to be tested, taking the consumption time as the countdown time, and starting the countdown.
In one possible example, the program further comprises instructions for performing the steps of:
and receiving a mode entering instruction sent by the test platform, wherein the mode entering instruction carries the preset pin configuration information, and executing the step of entering a target mode corresponding to the preset pin configuration information.
In one possible example, the program further comprises instructions for performing the steps of:
and detecting whether the test is finished or not, and executing the step of removing the preset pin configuration information when the test is finished.
In one possible example, the program further comprises instructions for performing the steps of:
when the test is not finished, estimating the remaining time of the test, and evaluating whether the communication connection between the electronic equipment and the test platform is stable;
and when the communication connection between the electronic equipment and the test platform is stable, prolonging the countdown by taking the remaining time as a countdown length, and displaying the remaining time in a countdown mode to remind a user.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a data protection device according to the present embodiment. The data protection device is applied to electronic equipment, the electronic equipment comprises a processor and a communication unit connected with the processor, and the data protection device can comprise: a connection unit 501, a test unit 502, a receiving unit 503, and a shutdown unit 504, wherein,
the connection unit 501 is configured to establish a communication connection between an electronic device and a test platform when the electronic device is powered on;
the testing unit 502 is configured to enter a target mode corresponding to preset pin configuration information, test the electronic device in the target mode, and start countdown;
a receiving unit 503, configured to remove the preset pin configuration information and receive a shutdown instruction when the countdown is finished;
a shutdown unit 504, configured to shutdown the electronic device.
Optionally, in terms of the starting countdown, the test unit 502 is specifically configured to:
acquiring the content to be tested in the target mode;
and estimating the consumption time required by testing the content to be tested, taking the consumption time as the countdown time, and starting the countdown.
Optionally, the receiving unit 503 is further specifically configured to:
receiving a mode entering instruction sent by the test platform, where the mode entering instruction carries the preset pin configuration information, and executing, by the test unit 502, a step of entering a target mode corresponding to the preset pin configuration information.
Optionally, the data protection apparatus shown in fig. 5 may further include: detection unit (not shown in the figure), as follows:
and the detection unit is used for detecting whether the test is finished or not and executing the step of removing the preset pin configuration information when the test is finished.
Optionally, the data protection apparatus shown in fig. 5 may further include: a prompt unit (not shown in the figure), which is as follows:
the prompting unit is used for predicting the remaining time of the test when the test is not finished and evaluating whether the communication connection between the electronic equipment and the test platform is stable or not; and when the communication connection between the electronic equipment and the test platform is stable, prolonging the countdown by taking the remaining time as a countdown length, and displaying the remaining time in a countdown mode to remind a user.
It can be seen that, the data protection apparatus described in this embodiment of the application is applied to an electronic device, when the electronic device is powered on, a communication connection between the electronic device and a test platform is established, a target mode corresponding to preset pin configuration information is entered, the electronic device in the target mode is tested, countdown is started, when the countdown is finished, the preset pin configuration information is removed, a shutdown instruction is received, and the electronic device is shut down.
It can be understood that the functions of each program module of the data protection device in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
As shown in fig. 6, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital assistant), a POS (point of sales), a vehicle-mounted computer, etc., taking the electronic device as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, sensor 950, audio circuit 960, wireless fidelity (Wi-Fi) module 970, processor 980, power supply 990, and driving device 1000. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a display screen 933, and a biometric recognition apparatus 931 and other input devices 932. Biometric device 931 may be at least one of: fingerprint identification device, face identification device, iris identification device or brain wave identification device. The input unit 930 may also include other input devices 932. In particular, other input devices 932 may include, but are not limited to, one or more of physical keys, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Wherein, the processor 980 is configured to perform the following steps:
when an electronic device is started, establishing communication connection between the electronic device and a test platform;
entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown;
when the countdown is finished, removing the preset pin configuration information and receiving a shutdown instruction;
and closing the electronic equipment.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules or blocks stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Optionally, the processor 980 may include one or more processing units, which may be artificial intelligence chips, quantum chips; alternatively, the processor 980 may integrate an application processor (e.g., CPU, or GPU) that primarily handles operating systems, user interfaces, application programs, and the like, and a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The handset may also include at least one sensor 950, and the sensor 950 may be a drop detection sensor such as: light sensors, motion sensors, and other sensors, etc. Specifically, the light sensor may include an environment sensor and a proximity sensor, wherein the environment sensor may adjust brightness of the touch display screen according to brightness of ambient light, and the proximity sensor may turn off the touch display screen and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 970, and provides wireless broadband internet access for the user. Although fig. 6 shows the Wi-Fi module 970, it is understood that it does not belong to the essential constitution of the cellular phone and can be omitted entirely as needed within the scope not changing the essence of the invention.
The handset also includes a power supply 990 (e.g., a battery) for powering the various components, which may optionally be logically connected to the processor 980 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiments shown in fig. 1B, fig. 2, and fig. 3, the method flows of the steps may be implemented based on the structure of the mobile phone.
In the embodiments shown in fig. 4 and 5, the functions of the units may be implemented based on the structure of the mobile phone.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the data protection methods applied to the electronic device test as described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute part or all of the steps of any one of the data protection methods applied to the electronic device test as set forth in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (13)
1. An electronic device, characterized in that the electronic device comprises a processor, and a communication unit connected to the processor, wherein,
the communication unit is used for establishing communication connection between the electronic equipment and the test platform when the electronic equipment is started;
the processor is used for entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode and starting countdown; when the countdown is finished, removing the preset pin configuration information to enable the electronic equipment to exit the target mode;
the target mode includes: factory mode, radio frequency mode RF mode, WLAN Final Test mode or common Power-On Ordinary Power On mode;
the communication unit is further specifically configured to:
after the preset pin configuration information is removed, a shutdown instruction is received;
the processor is further specifically configured to: and closing the electronic equipment.
2. The electronic device of claim 1, wherein in terms of the starting countdown, the processor is specifically configured to:
acquiring the content to be tested in the target mode;
and estimating the consumption time required by testing the content to be tested, taking the consumption time as the countdown time, and starting the countdown.
3. The electronic device according to claim 1 or 2, wherein the communication unit is further specifically configured to:
and receiving a mode entering instruction sent by the test platform, wherein the mode entering instruction carries the preset pin configuration information, and executing a step of entering a target mode corresponding to the preset pin configuration information by the processor.
4. The electronic device of any of claims 1-2, wherein the processor is further specifically configured to:
and detecting whether the test is finished or not, and executing the step of removing the preset pin configuration information when the test is finished.
5. The electronic device of claim 4, further comprising a display screen;
the processor is further specifically configured to:
when the test is not finished, estimating the remaining time of the test, and evaluating whether the communication connection between the electronic equipment and the test platform is stable;
when the communication connection between the electronic equipment and the test platform is stable, the countdown is prolonged by taking the remaining time as the countdown length;
and the display screen is used for displaying the remaining time in a countdown mode so as to remind the user.
6. A data protection method applied to electronic equipment testing is characterized by comprising the following steps:
when an electronic device is started, establishing communication connection between the electronic device and a test platform;
entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode, and starting countdown;
the target mode includes: factory mode, radio frequency mode RF mode, WLAN Final Test mode or common Power-On Ordinary Power On mode;
when the countdown is finished, removing the preset pin configuration information to enable the electronic equipment to exit the target mode;
and receiving a shutdown instruction, and closing the electronic equipment.
7. The method of claim 6, wherein the starting a countdown comprises:
acquiring the content to be tested in the target mode;
and estimating the consumption time required by testing the content to be tested, taking the consumption time as the countdown time, and starting the countdown.
8. The method according to claim 6 or 7, characterized in that the method further comprises:
and receiving a mode entering instruction sent by the test platform, wherein the mode entering instruction carries the preset pin configuration information, and executing the step of entering a target mode corresponding to the preset pin configuration information.
9. The method according to any one of claims 6 to 7, further comprising:
and detecting whether the test is finished or not, and executing the step of removing the preset pin configuration information when the test is finished.
10. The method of claim 9, further comprising:
when the test is not finished, estimating the remaining time of the test, and evaluating whether the communication connection between the electronic equipment and the test platform is stable;
and when the communication connection between the electronic equipment and the test platform is stable, prolonging the countdown by taking the remaining time as a countdown length, and displaying the remaining time in a countdown mode to remind a user.
11. A data protection device applied to electronic equipment testing is characterized by being applied to electronic equipment, wherein the electronic equipment comprises a processor and a communication unit connected with the processor, and the device comprises:
the connection unit is used for establishing communication connection between the electronic equipment and the test platform when the electronic equipment is started;
the test unit is used for entering a target mode corresponding to preset pin configuration information, testing the electronic equipment in the target mode and starting countdown;
the target mode includes: factory mode, radio frequency mode RF mode, WLAN Final Test mode or common Power-On Ordinary Power On mode;
the receiving unit is used for removing the preset pin configuration information to enable the electronic equipment to exit the target mode and receiving a shutdown instruction when the countdown is finished;
a closing unit for closing the electronic device.
12. An electronic device, comprising: a processor and a memory; and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for the method of any of claims 6-10.
13. A computer-readable storage medium for storing a computer program, wherein the computer program causes a computer to perform the method according to any one of claims 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810155410.1A CN108491285B (en) | 2018-02-23 | 2018-02-23 | Data protection method applied to electronic equipment test and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810155410.1A CN108491285B (en) | 2018-02-23 | 2018-02-23 | Data protection method applied to electronic equipment test and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108491285A CN108491285A (en) | 2018-09-04 |
CN108491285B true CN108491285B (en) | 2021-08-06 |
Family
ID=63340943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810155410.1A Expired - Fee Related CN108491285B (en) | 2018-02-23 | 2018-02-23 | Data protection method applied to electronic equipment test and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108491285B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114489825B (en) * | 2022-04-13 | 2022-09-27 | 荣耀终端有限公司 | Electronic equipment and shutdown method thereof |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239211A (en) * | 2014-09-26 | 2014-12-24 | 广东欧珀移动通信有限公司 | Method and device for enabling mobile terminal to rapidly enter test mode |
CN105072258A (en) * | 2015-07-16 | 2015-11-18 | 广东欧珀移动通信有限公司 | Mobile terminal profile switching method, apparatus, and mobile terminal |
WO2016118171A1 (en) * | 2015-01-23 | 2016-07-28 | Hewlett-Packard Development Company, L.P. | Initialize port |
CN106294221A (en) * | 2015-06-26 | 2017-01-04 | 三星电子株式会社 | Electronic equipment and the method for control signal intensity is come according to pattern |
CN106776400A (en) * | 2016-12-14 | 2017-05-31 | 上海艺时网络科技有限公司 | Electronic equipment and its circuit, interconnecting device and its circuit and whistle control system |
CN106874152A (en) * | 2016-12-30 | 2017-06-20 | 歌尔科技有限公司 | A kind of method for supporting electronic equipment self-inspection hardware performance |
CN107480545A (en) * | 2017-08-10 | 2017-12-15 | 合肥联宝信息技术有限公司 | A kind of data guard method and electronic equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102981916B (en) * | 2012-11-08 | 2016-03-09 | 小米科技有限责任公司 | A kind of mobile terminal and control method thereof and device |
CN104298576B (en) * | 2014-09-25 | 2018-09-04 | 小米科技有限责任公司 | terminal test method and device |
-
2018
- 2018-02-23 CN CN201810155410.1A patent/CN108491285B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104239211A (en) * | 2014-09-26 | 2014-12-24 | 广东欧珀移动通信有限公司 | Method and device for enabling mobile terminal to rapidly enter test mode |
WO2016118171A1 (en) * | 2015-01-23 | 2016-07-28 | Hewlett-Packard Development Company, L.P. | Initialize port |
CN106294221A (en) * | 2015-06-26 | 2017-01-04 | 三星电子株式会社 | Electronic equipment and the method for control signal intensity is come according to pattern |
CN105072258A (en) * | 2015-07-16 | 2015-11-18 | 广东欧珀移动通信有限公司 | Mobile terminal profile switching method, apparatus, and mobile terminal |
CN106776400A (en) * | 2016-12-14 | 2017-05-31 | 上海艺时网络科技有限公司 | Electronic equipment and its circuit, interconnecting device and its circuit and whistle control system |
CN106874152A (en) * | 2016-12-30 | 2017-06-20 | 歌尔科技有限公司 | A kind of method for supporting electronic equipment self-inspection hardware performance |
CN107480545A (en) * | 2017-08-10 | 2017-12-15 | 合肥联宝信息技术有限公司 | A kind of data guard method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108491285A (en) | 2018-09-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107708168B (en) | SIM card switching method, mobile terminal and computer readable storage medium | |
CN107146616B (en) | Equipment control method and related product | |
CN107272872B (en) | Power saving control method and related product | |
CN108234769B (en) | Fall protection method and related product | |
CN107332757B (en) | Method for deleting push message and related product | |
CN107480489B (en) | unlocking control method and related product | |
CN107277230B (en) | Voice broadcasting method of message and related product | |
CN107222914B (en) | Application control method and related product | |
CN110633067B (en) | Sound effect parameter adjusting method and mobile terminal | |
CN107357833B (en) | Data processing method and related product | |
CN106528638B (en) | Method for deleting backup data and mobile terminal | |
CN106714275B (en) | Wi-Fi connection method and mobile terminal | |
CN110209245B (en) | Face recognition method and related product | |
CN110430592B (en) | Network control method and related product | |
CN110138052B (en) | Charging control method and related product | |
CN106569910B (en) | Data backup and transmission method and mobile terminal | |
CN106446111B (en) | Data migration method and terminal | |
CN106484326B (en) | A kind of data transmission processing method and mobile terminal | |
CN108307383B (en) | Data reporting method and related product | |
CN107329778B (en) | System updating method and related product | |
CN106413070B (en) | A kind of power regulating method, mobile terminal and computer readable storage medium | |
CN106095566B (en) | Response control method and mobile terminal | |
CN110298277B (en) | Fingerprint identification method and related product | |
CN108121227B (en) | Fall protection method and related product | |
CN107291328B (en) | Interface display method and related product |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210806 |