CN108491285A - Data guard method and Related product applied to testing for electrical equipment - Google Patents

Data guard method and Related product applied to testing for electrical equipment Download PDF

Info

Publication number
CN108491285A
CN108491285A CN201810155410.1A CN201810155410A CN108491285A CN 108491285 A CN108491285 A CN 108491285A CN 201810155410 A CN201810155410 A CN 201810155410A CN 108491285 A CN108491285 A CN 108491285A
Authority
CN
China
Prior art keywords
electronic equipment
countdown
test
pin configuration
configuration information
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.)
Granted
Application number
CN201810155410.1A
Other languages
Chinese (zh)
Other versions
CN108491285B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810155410.1A priority Critical patent/CN108491285B/en
Publication of CN108491285A publication Critical patent/CN108491285A/en
Application granted granted Critical
Publication of CN108491285B publication Critical patent/CN108491285B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/004Error avoidance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester 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 present application discloses a kind of data guard method and Related product applied to testing for electrical equipment, is applied to electronic equipment, and the electronic equipment includes processor, and the communication unit being connected to the processor, the method includes:When electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established;Into the corresponding target pattern of default pin configuration information, the electronic equipment under the target pattern is tested, and start countdown;At the end of the countdown, remove the default pin configuration information, receives shutdown command;Close the electronic equipment.The embodiment of the present application can be during the test, on the one hand, periodically realizes and shuts down to electronic equipment, on the other hand, eliminates original default pin configuration, realize in the case where electronic equipment is forced power down, protected to the system file of electronic equipment.

Description

Data guard method and Related product applied to testing for electrical equipment
Technical field
This application involves technical field of electronic equipment, and in particular to a kind of data protection side applied to testing for electrical equipment Method and Related product.
Background technology
(such as with electronic equipment:Mobile phone, tablet computer etc.) a large amount of popularization and applications, the application that electronic equipment can be supported More and more, function is stronger and stronger, and electronic equipment develops towards diversification, personalized direction, becomes in user's life not The appliance and electronic that can lack.
Under normal conditions, electronic equipment can be set by being attached with test platform (such as high-pass platform) with testing electronics Standby performance during the test, if occurring forcing power down, may still cause the system file in electronic equipment Damage.
Invention content
The embodiment of the present application provides a kind of data guard method and Related product applied to testing for electrical equipment, can be with In the case where electronic equipment is forced power down, the system file of electronic equipment is protected.
In a first aspect, the embodiment of the present application provide a kind of electronic equipment, the electronic equipment includes processor, and with institute State the communication unit of processor connection, wherein
The communication unit is logical between the electronic equipment and test platform for when electronic equipment is switched on, establishing Letter connection;
The processor presets the corresponding target pattern of pin configuration information, under the target pattern for entering The electronic equipment is tested, and starts countdown;At the end of the countdown, remove the default pin configuration letter Breath;
The communication unit, also particularly useful for:
Receive shutdown command;
The processor, also particularly useful for:Close the electronic equipment.
Second aspect, the embodiment of the present application provide a kind of data guard method applied to testing for electrical equipment, application In electronic equipment, including:
When electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established;
Into the corresponding target pattern of default pin configuration information, the electronic equipment under the target pattern is carried out Test, and start countdown;
At the end of the countdown, remove the default pin configuration information, receives shutdown command;
Close the electronic equipment.
The third aspect, the embodiment of the present application provide a kind of data protecting device applied to testing for electrical equipment, application In electronic equipment, the electronic equipment includes processor, and the communication unit being connected to the processor, described device packet It includes:
Connection unit, for when electronic equipment is switched on, establishing the communication link between the electronic equipment and test platform It connects;
Test cell presets the corresponding target pattern of pin configuration information, to the institute under the target pattern for entering It states electronic equipment to be tested, and starts countdown;
Receiving unit receives shutdown and refers at the end of the countdown, removing the default pin configuration information It enables;
Closing unit, for closing the electronic equipment.
Fourth aspect, the embodiment of the present application provide a kind of electronic equipment, including:Processor and memory;And one Or multiple programs, one or more of programs are stored in the memory, and be configured to be held by the processor Row, described program includes the instruction for the step some or all of as described in second aspect.
5th aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein described computer-readable Storage medium is for storing computer program, wherein the computer program makes computer execute such as the embodiment of the present application the The instruction of step some or all of described in two aspects.
6th aspect, the embodiment of the present application provide a kind of computer program product, wherein the computer program product Non-transient computer readable storage medium including storing computer program, the computer program are operable to make calculating Machine executes the step some or all of as described in the embodiment of the present application second aspect.The computer program product can be one A software installation packet.
Implement the embodiment of the present application, has the advantages that:
As can be seen that the data guard method and correlation applied to testing for electrical equipment described in the embodiment of the present application Product establishes the communication connection between electronic equipment and test platform applied to electronic equipment when electronic equipment is switched on, into Enter the corresponding target pattern of default pin configuration information, the electronic equipment under target pattern is tested, and starts and Timing removes default pin configuration information at the end of countdown, receives shutdown command, closes the electronic equipment, in this way, It can be during the test, on the one hand, periodically electronic equipment is realized and is shut down, on the other hand, eliminates original default pin Configuration, realizes in the case where electronic equipment is forced power down, is protected to the system file of electronic equipment.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Figure 1A is a kind of structural schematic diagram of exemplary electronic device provided by the embodiments of the present application;
Figure 1B is that a kind of flow of data guard method applied to testing for electrical equipment disclosed in the embodiment of the present application is shown It is intended to;
Fig. 1 C are a kind of test application schematic diagram of a scenario disclosed in the embodiment of the present application;
Fig. 2 is that the flow of another data guard method for being applied to testing for electrical equipment disclosed in the embodiment of the present application is shown It is intended to;
Fig. 3 is that the flow of another data guard method for being applied to testing for electrical equipment disclosed in the embodiment of the present application is shown It is intended to;
Fig. 4 is another structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 5 is a kind of structural representation of data protecting device applied to testing for electrical equipment provided by the embodiments of the present application Figure;
Fig. 6 is another structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific implementation mode
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Term " first ", " second " in the description and claims of this application and above-mentioned attached drawing etc. are for distinguishing Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as process, method, system, product or the equipment for containing series of steps or unit do not have It is defined in the step of having listed or unit, but further includes the steps that optionally not listing or unit, or optionally also wrap It includes for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Electronic equipment involved by the embodiment of the present application may include various handheld devices with wireless communication function, Mobile unit, wearable device, computing device or other processing equipments and various forms for being connected to radio modem User equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminal Device) etc., for convenience of describing, apparatus mentioned above is referred to as electronic equipment.Electronic equipment in the embodiment of the present application It can be based on following at least one system:Android operation system, UNIX operating system, Windows operating system, apple operation system System etc..
It describes in detail below to the embodiment of the present application.
A is please referred to Fig.1, Figure 1A is that an embodiment of the present invention provides the structural schematic diagram of a kind of electronic equipment 100, above-mentioned electricity Sub- equipment 100 includes:Processor 110, communication unit 120 and display screen 130, communication unit 120 and display screen 130 are electrically connected In processor 110.
The communication unit 120, for when electronic equipment is switched on, establishing between the electronic equipment and test platform Communication connection;
The processor 110 presets the corresponding target pattern of pin configuration information, under the target pattern for entering The electronic equipment tested, and start countdown;At the end of the countdown, remove the default pin configuration letter Breath;
The communication unit 120, also particularly useful for:
Receive shutdown command;
The processor 110, also particularly useful for:Close the electronic equipment.
Wherein, communication unit can be following at least one:The communication interface of electronic equipment, USB interface, communication module, Wireless Fidelity (wireless fidelity, Wi-Fi) module etc..
As can be seen that the electronic equipment in the embodiment of the present application establishes electronic equipment and test when electronic equipment is switched on Communication connection between platform, into the corresponding target pattern of default pin configuration information, to the electronics under target pattern Equipment is tested, and starts countdown, at the end of countdown, is removed default pin configuration information, is received shutdown command, closes The electronic equipment is closed, in this way, can be during the test, on the one hand, periodically electronic equipment is realized and is shut down, on the other hand, Original default pin configuration is eliminated, is realized in the case where electronic equipment is forced power down, to the system of electronic equipment File is protected.
In a possible example, in terms of the startup countdown, the processor 110 is specifically used for:
Obtain the content to be tested under the target pattern;
The consumption duration tested needed for the content to be tested is estimated, the consumption duration is long as the countdown, And start the countdown.
In a possible example, the communication unit 120 also particularly useful for:
The mode entry instruction sent by the test platform is received, the mode entry instruction carries the default pin Configuration information is executed by the processor 110 and described enters the step of presetting pin configuration information corresponding target pattern.
In a possible example, the processor 110 also particularly useful for:
It tests whether to terminate described in detection, and at the end of the test, removes the default pin configuration described in execution The step of information.
In a possible example, the processor 110 also particularly useful for:
When the test is not finished, the remaining time of the test is estimated, and assess the electronic equipment and the survey Whether the communication connection between examination platform stablizes;
When communication connection between the electronic equipment and the test platform is stablized, using the remaining time as falling Timing length extends the countdown;
The display screen 130, for showing the remaining time to remind user in the form of countdown.
Based on electronic equipment described in above-mentioned Figure 1A, can be used for executing a kind of applied to electronic equipment as described below The data guard method of test, it is specific as follows:
The communication unit 120, for when electronic equipment is switched on, establishing between the electronic equipment and test platform Communication connection;
The processor 110 presets the corresponding target pattern of pin configuration information, under the target pattern for entering The electronic equipment tested, and start countdown;At the end of the countdown, remove the default pin configuration letter Breath;
The communication unit 120, also particularly useful for:
Receive shutdown command;
The processor 110, also particularly useful for:Close the electronic equipment.
Based on electronic equipment described in Figure 1A, B is please referred to Fig.1, is provided by the embodiments of the present application a kind of applied to electricity The embodiment flow diagram of the data guard method of sub- equipment test.This is applied to the data guard method of testing for electrical equipment Applied to electronic equipment, the electronic equipment includes processor, and the communication unit being connected to the processor, and be may include Following steps:
101, when electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established.
Wherein, electronic equipment can be positioned on test platform.Electronic equipment can pass through data line (example with test platform Such as, USB data line) or wireless network and electronic equipment between establish communication connection.C refering to fig. 1, the embodiment of the present application can be with It is realized based on test scene shown in Fig. 1 C.
Optionally, test platform can provide power supply for electronic equipment, be switched on electronic device, and, for testing Work, alternatively, electronic equipment may include battery, by battery powered, boots up with electronic device or executes test Operation.
102, into the corresponding target pattern of default pin configuration information, to the electronic equipment under the target pattern It is tested, and starts countdown.
Wherein, above-mentioned default pin configuration information can be stored in test platform, alternatively, electronic equipment can be stored in In.Default pin configuration information can be voluntarily arranged by user or system default.Electronic equipment can enter default pin configuration The corresponding target pattern of information, and the electronic equipment under target pattern is tested, test content may include calibration, and (calibration is each Kind parameter) and comprehensive survey (performance test), and starting countdown, wherein countdown can simultaneously be implemented with test is started, alternatively, Countdown can also start before test terminates.
Optionally, in above-mentioned steps 102, electronic equipment can start countdown with default timing length, above-mentioned default Timing length can be voluntarily arranged by user or system default, for example, default timing length can be 5s, 10s, 10.5s etc. Deng.
Optionally, the pin configuration information in the embodiment of the present application can be the level information of each pin, for example, such as certain If a pin need to be high level, the pin configuration information of the pin is 1, if if a certain pin need to be low level, which draws Foot configuration information is 0.The pattern entered by pin configuration information in the embodiment of the present application can be following one kind:Factory mode (Factory mode), WLAN final tests (WLAN Final Test), rf-mode (RF mode) commonly power on mould Formula (Ordinary Power On), is not limited thereto.Wherein, WLAN Final Test and RF mode, both patterns are only USB line and power supply are connected, not being switched on will enter, and can be used in calibration and comprehensive survey.Match as following table gives pin Confidence ceases a kind of mapping relations between pattern:
Pin 1 Pin 2 Pattern
0 0 Factory mode
0 1 WLAN Final Test
1 0 RF mode
1 1 Ordinary Power On
Under illustration, as upper table enters RF mode if pin 1 is high level (1), pin 2 is low level (0).
Optionally, in above-mentioned steps 102, start countdown, including:
Content to be tested under A1, the acquisition target pattern;
A2, the consumption duration tested needed for the content to be tested is estimated, using the consumption duration as the countdown It is long, and start the countdown.
Wherein, above-mentioned content to be tested can be by system default, alternatively, user voluntarily selects (for example, in electronic equipment It can show that test list, user can choose content that needs to be tested from test list on display screen).In to be tested It is program code length in the electronic device to hold corresponding, it may be determined that electronic equipment runs the speed of code, in turn, when consumption The speed of program code length/operation code of long=to be tested content, can be long as countdown using the consumption duration, and with This carries out countdown, for example, a length of 5s when consumption, countdown, i.e. 5s, 4s, 3s, 2s, 1s, 0 are carried out with 5s.
Optionally, between above-mentioned steps 101 and step 102, can also include the following steps:
The mode entry instruction sent by the test platform is received, the mode entry instruction carries the default pin Configuration information executes and described enters the step of presetting pin configuration information corresponding target pattern.
Wherein, test platform can carry default to electronic equipment sending mode entry instruction, the mode entry instruction Pin configuration information presets pin configuration information according to this and enters target pattern, in this way, test platform can be facilitated to select in turn Selecting needs mode type to be tested.
103, at the end of the countdown, remove the default pin configuration information, receive shutdown command.
Wherein, at the end of countdown, default pin configuration information can be removed, i.e. electronic equipment has exited target mould Formula, to even if electronic equipment is forced power down this moment, influence to cause to lose to the corresponding system file of target pattern It loses, after eliminating default pin configuration information, test can be sent to test platform and complete message, test platform responds this and disappears Breath sends shutdown command to electronic equipment in turn, alternatively, after eliminating default pin configuration information, can activate default deposit The shutdown command of storage.
Optionally, during stating step 103 on the implementation, can also include the following steps:
It tests whether to terminate described in detection, and at the end of the test, removes the default pin configuration described in execution The step of information.
It is not performed wherein it is possible to which last column code for detecting content to be tested has, if performing, illustrates test knot Beam illustrates that test is not finished if being not carried out.At the end of test, default pin configuration information can be removed.
Still optionally further, unclosed in above-mentioned test, it can also include the following steps:
B1, it is described test be not finished when, estimate the remaining time of the test, and assess the electronic equipment with it is described Whether the communication connection between test platform stablizes;
When B2, the communication connection between the electronic equipment and the test platform are stablized, made with the remaining time Extend the countdown for countdown length, and shows the remaining time to remind user in the form of countdown.
Wherein, electronic equipment can obtain the residue code not yet completed in above-mentioned content to be tested, according to residue code The remaining time of test is estimated, the stability for the communication connection that electronic equipment can be between assessment electronics and test platform is main It to be assessed according to following index:Network bandwidth, packet loss, number of dropped calls, voltage stability, current stability, power are steady It is qualitative etc..If the communication connection between electronic equipment and test platform is stablized, extension can be grown using remaining time as countdown Countdown, and remaining time is shown to remind user in the form of countdown, in this way, can prevent user from thinking that test terminates, And force power down.
Optionally, can also include step B3, it is specific as follows:
When B3, the communication connection between the electronic equipment and the test platform are unstable, the preset added-time is obtained Duration, using the added-time duration as countdown, length extends the countdown, and in the form of countdown when the displaying added-time Length is to remind user, the added-time duration to be more than the remaining time.
Wherein, above-mentioned preset added-time duration can be voluntarily arranged by user, alternatively, system default, for example, preset add Shi Shichang can be an empirical value.
104, the electronic equipment is closed.
Wherein, after electronic equipment closing, even if there is pressure power down, the system file of electronic equipment will not be lost It loses.
As can be seen that the data guard method applied to testing for electrical equipment described in the embodiment of the present application, application The communication connection between electronic equipment and test platform is established when electronic equipment is switched in electronic equipment, into default pin The corresponding target pattern of configuration information tests the electronic equipment under target pattern, and starts countdown, is falling to count When at the end of, remove default pin configuration information, receive shutdown command, the electronic equipment is closed, in this way, can test Cheng Zhong, on the one hand, periodically electronic equipment is realized and is shut down, on the other hand, original default pin configuration is eliminated, realizes In the case that electronic equipment is forced power down, the system file of electronic equipment is protected.
Consistent with the abovely, referring to Fig. 2, being a kind of number applied to testing for electrical equipment provided by the embodiments of the present application According to the embodiment flow diagram of guard method.The data protection side applied to testing for electrical equipment described in the present embodiment Method is applied to electronic equipment, and the electronic equipment includes processor, and the communication unit being connected to the processor, can Include the following steps:
201, when electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established.
202, into the corresponding target pattern of default pin configuration information, to the electronic equipment under the target pattern It is tested, and starts countdown.
203, it at the end of the countdown, tests whether to terminate described in detection, at the end of the test, executes step 204- steps 205;When the test is not finished, step 206- steps 207, after executing the step 207, Ke Yizai are executed Execute step 204- steps 205.
204, remove the default pin configuration information, receive shutdown command.
205, the electronic equipment is closed.
206, the remaining time of the test is estimated, and assesses the communication between the electronic equipment and the test platform Whether connection stablizes.
207, when the communication connection between the electronic equipment and the test platform is stablized, made with the remaining time Extend the countdown for countdown length, and shows the remaining time to remind user in the form of countdown.
Wherein, the specific descriptions of above-mentioned steps 201-207 can refer to described in Figure 1B applied to testing for electrical equipment The correspondence step of data guard method, details are not described herein.
As can be seen that the data guard method applied to testing for electrical equipment described in the embodiment of the present application, application The communication connection between electronic equipment and test platform is established when electronic equipment is switched in electronic equipment, into default pin The corresponding target pattern of configuration information tests the electronic equipment under target pattern, and starts countdown, is falling to count When at the end of, test whether to terminate, at the end of test, remove default pin configuration information, receive shutdown command, close Electronic equipment estimates the remaining time of test when test is not finished, the communication connection between electronic equipment and test platform When stablizing, using remaining time as countdown, length extends countdown, and shows remaining time to remind use in the form of countdown Family, in this way, can be during the test, on the one hand, periodically electronic equipment is realized and is shut down, on the other hand, is eliminated original Default pin configuration, realizes in the case where electronic equipment is forced power down, is protected to the system file of electronic equipment.
Consistent with the abovely, referring to Fig. 3, being a kind of number applied to testing for electrical equipment provided by the embodiments of the present application According to the embodiment flow diagram of guard method.The data protection side applied to testing for electrical equipment described in the present embodiment Method is applied to electronic equipment, and the electronic equipment includes processor, and the communication unit being connected to the processor, can Include the following steps:
301, electronic equipment establishes the communication link between the electronic equipment and test platform when electronic equipment is switched on It connects.
302, electronic equipment, which enters, presets the corresponding target pattern of pin configuration information, described under the target pattern Electronic equipment is tested, and starts countdown.
303, electronic equipment removes the default pin configuration information at the end of countdown, is sent out to test platform Test is sent to complete message.
304, test platform sends shutdown command to electronic equipment.
305, electronic equipment receives shutdown command, and closes the electronic equipment.
Wherein, the specific descriptions of above-mentioned steps 301-305 can refer to described in Figure 1B applied to testing for electrical equipment The correspondence step of data guard method, details are not described herein.
As can be seen that the data guard method applied to testing for electrical equipment described in the embodiment of the present application, application The communication connection between electronic equipment and test platform is established when electronic equipment is switched in electronic equipment, into default pin The corresponding target pattern of configuration information tests the electronic equipment under target pattern, and starts countdown, is falling to count When at the end of, remove default pin configuration information, receive shutdown command, the electronic equipment is closed, in this way, can test Cheng Zhong, on the one hand, periodically electronic equipment is realized and is shut down, on the other hand, original default pin configuration is eliminated, realizes In the case that electronic equipment is forced power down, the system file of electronic equipment is protected.
Consistent with the abovely, it is to implement above application in the device of the data guard method of testing for electrical equipment, tool below Body is as follows:
Consistent with the abovely, referring to Fig. 4, Fig. 4 is a kind of electronic equipment provided by the embodiments of the present application, including:Processing Device and memory;And one or more programs, one or more of programs are stored in the memory, and by with It is set to and is executed by the processor, described program includes the instruction for executing following steps:
When electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established;
Into the corresponding target pattern of default pin configuration information, the electronic equipment under the target pattern is carried out Test, and start countdown;
At the end of the countdown, remove the default pin configuration information, receives shutdown command;
Close the electronic equipment.
In a possible example, in terms of the startup countdown, described program includes for executing following steps Instruction:
Obtain the content to be tested under the target pattern;
The consumption duration tested needed for the content to be tested is estimated, the consumption duration is long as the countdown, And start the countdown.
In a possible example, described program further includes the instruction for executing following steps:
The mode entry instruction sent by the test platform is received, the mode entry instruction carries the default pin Configuration information executes and described enters the step of presetting pin configuration information corresponding target pattern.
In a possible example, described program further includes the instruction for executing following steps:
It tests whether to terminate described in detection, and at the end of the test, removes the default pin configuration described in execution The step of information.
In a possible example, described program further includes the instruction for executing following steps:
When the test is not finished, the remaining time of the test is estimated, and assess the electronic equipment and the survey Whether the communication connection between examination platform stablizes;
When communication connection between the electronic equipment and the test platform is stablized, using the remaining time as falling Timing length extends the countdown, and shows the remaining time to remind user in the form of countdown.
Referring to Fig. 5, Fig. 5 is a kind of structural schematic diagram of data protecting device provided in this embodiment.This answers data to protect Protection unit is applied to electronic equipment, and the electronic equipment includes processor, and the communication unit being connected to the processor, should Data protecting device may include:Connection unit 501, test cell 502, receiving unit 503 and closing unit 504, wherein
Connection unit 501, for when electronic equipment is switched on, establishing the communication between the electronic equipment and test platform Connection;
Test cell 502 presets the corresponding target pattern of pin configuration information, under the target pattern for entering The electronic equipment is tested, and starts countdown;
Receiving unit 503 receives shutdown at the end of the countdown, removing the default pin configuration information Instruction;
Closing unit 504, for closing the electronic equipment.
Optionally, in terms of the startup countdown, the test cell 502 is specifically used for:
Obtain the content to be tested under the target pattern;
The consumption duration tested needed for the content to be tested is estimated, the consumption duration is long as the countdown, And start the countdown.
Optionally, the receiving unit 503, also particularly useful for:
The mode entry instruction sent by the test platform is received, the mode entry instruction carries the default pin Configuration information is executed by the test cell 502 and described enters the step of presetting pin configuration information corresponding target pattern.
Optionally, data protecting device shown in fig. 5 can also include:Detection unit (not shown), specifically such as Under:
Detection unit, for detect it is described test whether to terminate, and at the end of the test, remove described in execution described The step of default pin configuration information.
Optionally, data protecting device shown in fig. 5 can also include:Prompt unit (not shown), specifically such as Under:
Prompt unit, for when the test is not finished, estimating the remaining time of the test, and assess the electronics Whether the communication connection between equipment and the test platform stablizes;And between the electronic equipment and the test platform Communication connection when stablizing, the length extension countdown using the remaining time as countdown, and the exhibition in the form of countdown Show the remaining time to remind user.
As can be seen that the data protecting device described in the embodiment of the present application, is applied to electronic equipment, in electronic equipment When booting, the communication connection between electronic equipment and test platform is established, into the corresponding target mould of default pin configuration information Formula tests the electronic equipment under target pattern, and starts countdown, at the end of countdown, removes default draw Foot configuration information receives shutdown command, the electronic equipment is closed, in this way, can be during the test, on the one hand, timing is right Electronic equipment realizes on the other hand shutdown eliminates original default pin configuration, realizes and be forced power down in electronic equipment In the case of, the system file of electronic equipment is protected.
It is understood that the function of each program module of the data protecting device of the present embodiment can be according to above method reality The method specific implementation in example is applied, specific implementation process is referred to the associated description of above method embodiment, herein no longer It repeats.
The embodiment of the present application also provides another electronic equipments, as shown in fig. 6, for convenience of description, illustrate only with The relevant part of the embodiment of the present application, particular technique details do not disclose, please refer to the embodiment of the present application method part.The electronics Equipment can be include mobile phone, tablet computer, PDA (personal digital assistant, personal digital assistant), POS The arbitrary terminal device such as (point of sales, point-of-sale terminal), vehicle-mounted computer, by taking electronic equipment is mobile phone as an example:
Fig. 6 shows the block diagram with the part-structure of the relevant mobile phone of electronic equipment provided by the embodiments of the present application.Ginseng Fig. 6 is examined, mobile phone includes:Radio frequency (radio frequency, RF) circuit 910, memory 920, input unit 930, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, Wi-Fi) module 970, processor 980, power supply 990 with And the equal components of driving device 1000.It will be understood by those skilled in the art that handset structure shown in Fig. 6 is not constituted to mobile phone Restriction, may include either combining certain components or different components arrangement than illustrating more or fewer components.
Each component parts of mobile phone is specifically introduced with reference to Fig. 6:
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 930 may include display screen 933 and biological identification device 931 and other input equipments 932.Biological identification device 931 can be following at least one:Fingerprint identification device, face are known Other device, iris identification device or brain wave identification device.Input unit 930 can also include other input equipments 932.Tool Body, other input equipments 932 can include but is not limited to physical button, function key (such as volume control button, switch key Deng), it is trace ball, mouse, one or more in operating lever etc..
Wherein, the processor 980, for executing following steps:
When electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established;
Into the corresponding target pattern of default pin configuration information, the electronic equipment under the target pattern is carried out Test, and start countdown;
At the end of the countdown, remove the default pin configuration information, receives shutdown command;
Close the electronic equipment.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program being stored in memory 920 and/mould or block, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 980 can wrap One or more processing units are included, which can be artificial intelligent chip, quantum chip;Optionally, processor 980 can collect At application processor (for example, CPU, alternatively, GPU) and modem processor, wherein the main processing operation system of application processor System, user interface and application program etc., modem processor mainly handles wireless communication.It is understood that above-mentioned modulation Demodulation processor can not also be integrated into processor 980.
In addition, memory 920 may include high-speed random access memory, can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other volatile solid-state parts.
RF circuits 910 can be used for sending and receiving for information.In general, RF circuits 910 include but not limited to antenna, at least one A amplifier, transceiver, coupler, low-noise amplifier (low noise amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (global system of mobile Communication, GSM), general packet radio service (general packet radio service, GPRS), code it is point more Location (code division multiple access, CDMA), wideband code division multiple access (wideband code division Multiple access, WCDMA), long term evolution (long term evolution, LTE), Email, short message service (short messaging service, SMS) etc..
Mobile phone may also include at least one sensor 950, and sensor 950 can be to fall detection sensor, this falls inspection Survey sensor such as:Optical sensor, motion sensor and other sensors etc..Specifically, optical sensor may include that environment passes Sensor and proximity sensor, wherein environmental sensor can adjust the brightness of touching display screen according to the light and shade of ambient light, connect Nearly sensor can close touching display screen and/or backlight when mobile phone is moved in one's ear.As a kind of motion sensor, add Fast flowmeter sensor can detect the size of (generally three axis) acceleration in all directions, can detect that when static gravity size and Direction can be used to identify the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone posture, vibration is known Other correlation function (such as pedometer, percussion) etc.;The gyroscope that can also configure as mobile phone, barometer, hygrometer, thermometer, The other sensors such as infrared sensor, details are not described herein.
Voicefrequency circuit 960, loud speaker 961, microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric The transformed electric signal of the audio data received can be transferred to loud speaker 961 by road 960, and sound is converted to by loud speaker 961 Signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data playback process device 980, through RF circuits 910 to be sent to such as another mobile phone, Or audio data is played to memory 920 to be further processed.
Wi-Fi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics by Wi-Fi module 970 Mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 6 is shown Wi-Fi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone, it completely can be as needed not Change in the range of the essence of invention and omits.
Mobile phone further includes the power supply 990 (such as battery) powered to all parts, and optionally, power supply can pass through power supply pipe Reason system and processor 980 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In earlier figures 1B, Fig. 2, embodiment shown in Fig. 3, each step method flow can the structure based on the mobile phone it is real It is existing.
In earlier figures 4, embodiment shown in fig. 5, each unit function can be realized based on the structure of the mobile phone.
The embodiment of the present application also provides a kind of computer storage media, wherein computer storage media storage is for electricity The computer program that subdata exchanges, it is any as described in above method embodiment which so that computer is executed A kind of some or all of data guard method applied to testing for electrical equipment step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side Any type described in method embodiment is applied to some or all of the data guard method of testing for electrical equipment step.
It should be noted that for each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to alternative embodiment, involved action and module not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, for example, the unit division, it is only a kind of Division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product When, it can be stored in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application Step.And memory above-mentioned includes:USB flash disk, read-only memory (read-only memory, ROM), random access memory The various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic disc or CD.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer-readable memory, memory May include:Flash disk, ROM, RAM, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; Meanwhile for those of ordinary skill in the art, according to the thought of the application, can in specific embodiments and applications There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (13)

1. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor, and is connected to the processor logical Believe unit, wherein
The communication unit, for when electronic equipment is switched on, establishing the communication link between the electronic equipment and test platform It connects;
The processor presets the corresponding target pattern of pin configuration information, described under the target pattern for entering Electronic equipment is tested, and starts countdown;At the end of the countdown, remove the default pin configuration information;
The communication unit, also particularly useful for:
Receive shutdown command;
The processor, also particularly useful for:Close the electronic equipment.
2. electronic equipment according to claim 1, which is characterized in that in terms of the startup countdown, the processor It is specifically used for:
Obtain the content to be tested under the target pattern;
The consumption duration tested needed for the content to be tested is estimated, the consumption duration is long as the countdown, and open Move the countdown.
3. electronic equipment according to claim 1 or 2, which is characterized in that the communication unit also particularly useful for:
The mode entry instruction sent by the test platform is received, the mode entry instruction carries the default pin configuration The step of information, the target pattern corresponding into default pin configuration information described by processor execution.
4. electronic equipment according to any one of claims 1 to 3, which is characterized in that the processor also particularly useful for:
It tests whether to terminate described in detection, and at the end of the test, removes the default pin configuration information described in execution The step of.
5. electronic equipment according to claim 4, which is characterized in that the electronic equipment further includes display screen;
The processor also particularly useful for:
When the test is not finished, the remaining time of the test is estimated, and assesses the electronic equipment and is put down with the test Whether the communication connection between platform stablizes;
When communication connection between the electronic equipment and the test platform is stablized, using the remaining time as countdown It is long to extend the countdown;
The display screen, for showing the remaining time to remind user in the form of countdown.
6. a kind of data guard method applied to testing for electrical equipment, which is characterized in that it is applied to electronic equipment, including:
When electronic equipment is switched on, the communication connection between the electronic equipment and test platform is established;
Into the corresponding target pattern of default pin configuration information, the electronic equipment under the target pattern is surveyed Examination, and start countdown;
At the end of the countdown, remove the default pin configuration information, receives shutdown command;
Close the electronic equipment.
7. according to the method described in claim 6, it is characterized in that, the startup countdown, including:
Obtain the content to be tested under the target pattern;
The consumption duration tested needed for the content to be tested is estimated, the consumption duration is long as the countdown, and open Move the countdown.
8. the method described according to claim 6 or 7, which is characterized in that the method further includes:
The mode entry instruction sent by the test platform is received, the mode entry instruction carries the default pin configuration Information executes and described enters the step of presetting pin configuration information corresponding target pattern.
9. according to claim 6 to 8 any one of them method, which is characterized in that the method further includes:
It tests whether to terminate described in detection, and at the end of the test, removes the default pin configuration information described in execution The step of.
10. according to the method described in claim 9, it is characterized in that, the method further includes:
When the test is not finished, the remaining time of the test is estimated, and assesses the electronic equipment and is put down with the test Whether the communication connection between platform stablizes;
When communication connection between the electronic equipment and the test platform is stablized, using the remaining time as countdown It is long to extend the countdown, and show the remaining time to remind user in the form of countdown.
11. a kind of data protecting device applied to testing for electrical equipment, which is characterized in that be applied to electronic equipment, the electricity Sub- equipment includes processor, and the communication unit being connected to the processor, described device include:
Connection unit, for when electronic equipment is switched on, establishing the communication connection between the electronic equipment and test platform;
Test cell presets the corresponding target pattern of pin configuration information, to the electricity under the target pattern for entering Sub- equipment is tested, and starts countdown;
Receiving unit receives shutdown command at the end of the countdown, removing the default pin configuration information;
Closing unit, for closing the electronic equipment.
12. a kind of electronic equipment, which is characterized in that including:Processor and memory;And one or more programs, described one A or multiple programs are stored in the memory, and are configured to be executed by the processor, and described program includes using In the instruction of any one of such as claim 6-10 methods.
13. a kind of computer readable storage medium, which is characterized in that it is used to store computer program, wherein the computer Program makes computer execute such as claim 6-10 any one of them methods.
CN201810155410.1A 2018-02-23 2018-02-23 Data protection method applied to electronic equipment test and related product Expired - Fee Related CN108491285B (en)

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 true CN108491285A (en) 2018-09-04
CN108491285B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489825A (en) * 2022-04-13 2022-05-13 荣耀终端有限公司 Electronic equipment and shutdown method thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981916A (en) * 2012-11-08 2013-03-20 北京小米科技有限责任公司 Mobile terminal and control method of mobile terminal and device of mobile terminal
CN104239211A (en) * 2014-09-26 2014-12-24 广东欧珀移动通信有限公司 Method and device for enabling mobile terminal to rapidly enter test mode
CN104298576A (en) * 2014-09-25 2015-01-21 小米科技有限责任公司 Terminal test method and device
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

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981916A (en) * 2012-11-08 2013-03-20 北京小米科技有限责任公司 Mobile terminal and control method of mobile terminal and device of mobile terminal
CN104298576A (en) * 2014-09-25 2015-01-21 小米科技有限责任公司 Terminal test method and device
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114489825A (en) * 2022-04-13 2022-05-13 荣耀终端有限公司 Electronic equipment and shutdown method thereof

Also Published As

Publication number Publication date
CN108491285B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
CN107608861B (en) Cooling control method and device
CN107146616A (en) Apparatus control method and Related product
CN106446841B (en) A kind of fingerprint template matching order update method and terminal
AU2018284487B2 (en) Application control method and application control device
CN107291586B (en) Application program analysis method and device
CN109151954A (en) Mobile terminal and its double card method for switching network and storage medium
CN106951850B (en) A kind of method and mobile terminal controlling fingerprint recognition mould group
CN108429575A (en) antenna switching method, mobile terminal and computer readable storage medium
CN107276602B (en) Radio frequency interference processing method, device, storage medium and terminal
CN106170034B (en) A kind of sound effect treatment method and mobile terminal
CN106413070B (en) A kind of power regulating method, mobile terminal and computer readable storage medium
CN108966296A (en) Signal prompt method, mobile terminal and computer readable storage medium
CN106534288B (en) A kind of data transmission method and mobile terminal
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN107766139B (en) Application management method and device
CN110209245A (en) Face identification method and Related product
CN110430592A (en) Network control method and Related product
CN110210605A (en) Hardware operator matching process and Related product
CN106776301B (en) Subelement testing method and device
CN108415863A (en) The hardware compatibility implementation method and Related product of electronic device
CN108307383A (en) Data reporting method and related product
CN107066374B (en) Data processing method and mobile terminal
CN106454979B (en) A kind of network formats switching method and mobile terminal
CN108492837A (en) Detection method, device and the storage medium of audio burst white noise
CN108337370B (en) Fault detection 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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210806

CF01 Termination of patent right due to non-payment of annual fee