CN107608923B - Test processing method and related product - Google Patents

Test processing method and related product Download PDF

Info

Publication number
CN107608923B
CN107608923B CN201710850684.8A CN201710850684A CN107608923B CN 107608923 B CN107608923 B CN 107608923B CN 201710850684 A CN201710850684 A CN 201710850684A CN 107608923 B CN107608923 B CN 107608923B
Authority
CN
China
Prior art keywords
downloading
software
oscillogram
areas
download
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710850684.8A
Other languages
Chinese (zh)
Other versions
CN107608923A (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 CN201710850684.8A priority Critical patent/CN107608923B/en
Publication of CN107608923A publication Critical patent/CN107608923A/en
Application granted granted Critical
Publication of CN107608923B publication Critical patent/CN107608923B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present disclosure provides a processing method of a test and related products, the method comprising the steps of: when the USB plug-in signal is detected, reading a reset flag bit of the PBL module; if the reset flag bit of the PBL module is at a high level, determining whether to execute a software downloading process, and if so, changing the reset flag bit to a low level; and executing the software downloading process, and setting the downloading current of the software downloading process as the set current. The technical scheme provided by the invention has the advantage of convenience in debugging.

Description

Test processing method and related product
Technical Field
The invention relates to the technical field of communication, in particular to a test processing method and a related product.
Background
At present, in a mainstream chip platform, a battery in-place detection function is integrated, and different charging currents are correspondingly generated, which mainly takes the user safety problem into consideration in the actual use process of a user. When the battery is in place, charging is carried out by adopting larger default current, such as 500mA charging size of USB; when the battery abnormality is detected, a small current, such as a charging current of 100mA, is used for charging.
In the existing test downloading process, namely in a production line downloading mode, the simulation battery is downloaded in the in-place state. Because the machine needs to analyze the bad machine to debug the software and hardware in the production research and development stage, the system downloads the software once, and if the battery is not in place, the battery needs to be added to ensure the successful downloading, which brings inconvenience to the development and debugging work.
Disclosure of Invention
The embodiment of the invention provides a test processing method and a related product, which can be used for conveniently developing and debugging a terminal.
In a first aspect, an embodiment of the present invention provides a test processing method, where the method includes the following steps: when the USB plug-in signal is detected, reading a reset flag bit of the PBL module; if the reset flag bit of the PBL module is at a high level, determining whether to execute a software downloading process, and if so, changing the reset flag bit to a low level; and executing the software downloading process, and setting the downloading current of the software downloading process to be 500 mA.
Optionally, the method further includes:
and after the software is downloaded, executing a system initialization process, and after the system initialization process is executed, setting the reset flag bit to be a high level.
Optionally, the method further includes:
recording the software downloading process, if the software downloading fails, creating a downloading failure report according to the process, and sending the downloading failure report to a test platform;
the process comprises the following steps: a first waveform diagram of the download flow rate and a second waveform diagram of the download current.
Optionally, the creating a download failure report according to the process includes:
adding the numerical values of every n points in the first oscillogram together to obtain a third oscillogram after the addition, and extracting the maximum amplitude f in the third oscillograms-maxAveraging the values of every n points in the first oscillogram to obtain a fourth oscillogram, and extracting the maximum amplitude f in the fourth oscillograma-max(ii) a Pressing the third waveform diagram according to fs-maxThe third oscillogram is divided into at least three areas according to the percentage, the proportion of sampling points of the at least three areas to the total sampling points is counted, if the sum of the proportions of two marginal areas of the at least three areas is more than a set proportion, the preliminary abnormity is determined, and the fourth oscillogram is divided into at least three areas according to the percentage fa-maxThe method comprises the steps of dividing the percentage of the sampling point into at least three areas, counting the number of continuous sampling points of the lowest layer area of the at least three areas, if the number is larger than a set threshold value, determining that the downloading quantity in the downloading process is abnormal, recording a time interval corresponding to the number of the continuous sampling points of the lowest layer area, determining the time interval as abnormal time, and recording the downloading quantity abnormality and the abnormal time into a downloading failure report.
In a second aspect, a motherboard is provided, the motherboard comprising:
a detection unit for detecting a USB insertion signal;
the reading unit is used for reading the reset flag bit of the PBL module when the detection unit detects the USB insertion signal;
a processing unit, configured to determine whether to execute a software download procedure if a reset flag of the PBL module is at a high level, and change the reset flag to a low level if the software download procedure is determined to be executed; and executing the software downloading process, and setting the downloading current of the software downloading process to be 500 mA.
Optionally, the processing unit is further configured to execute a system initialization procedure after the software is completely downloaded, and set the reset flag to a high level after the system initialization procedure is completed.
Optionally, the processing unit is further configured to record a software downloading process, if the software downloading fails, create a downloading failure report according to the process, and send the downloading failure report to the test platform;
the process comprises the following steps: a first waveform diagram of the download flow rate and a second waveform diagram of the download current.
Optionally, the processing unit is specifically configured to superimpose the numerical values of every n points in the first waveform diagram to obtain a superimposed third waveform diagram, and extract a maximum amplitude f in the third waveform diagrams-maxAveraging the values of every n points in the first oscillogram to obtain a fourth oscillogram, and extracting the maximum amplitude f in the fourth oscillograma-max(ii) a Pressing the third waveform diagram according to fs-maxThe third oscillogram is divided into at least three areas according to the percentage, the proportion of sampling points of the at least three areas to the total sampling points is counted, if the sum of the proportions of two marginal areas of the at least three areas is more than a set proportion, the preliminary abnormity is determined, and the fourth oscillogram is divided into at least three areas according to the percentage fa-maxThe method comprises the steps of dividing the percentage of the sampling point into at least three areas, counting the number of continuous sampling points of the lowest layer area of the at least three areas, if the number is larger than a set threshold value, determining that the downloading quantity in the downloading process is abnormal, recording a time interval corresponding to the number of the continuous sampling points of the lowest layer area, determining the time interval as abnormal time, and recording the downloading quantity abnormality and the abnormal time into a downloading failure report.
In a third aspect, a smart device is provided, the device comprising one or more processors, memory, a transceiver, and one or more programs stored in the memory and configured for execution by the one or more processors, the programs comprising instructions for performing the steps in the method provided in the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, which is characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method provided in the first aspect.
In a fifth aspect, there is provided a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method provided by the first aspect.
The embodiment of the invention has the following beneficial effects:
therefore, the embodiment of the invention realizes that the mainboard can execute the software for multiple times in the debugging stage without loading a battery when the software needs to be downloaded for multiple times. Specifically, when the main board detects a USB plug-in signal, it is determined whether the level corresponding to the PBL module of the main board is a high level, if the level is a high level, the main board determines whether a software downloading process needs to be executed, if the software downloading process needs to be executed, the main board changes the level corresponding to the PBL module to a low level, and executes the software downloading process, and when the software downloading is executed, the downloading current is set to 500mA, so that when the level corresponding to the PBL module is a high level, the current of 500mA can be provided for the software downloading under the normal condition without installing a battery, and therefore, a debugger does not need to manually install a battery, and the main board has the advantages of being convenient for the debugger to use and saving labor cost.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a process line testing process.
FIG. 2 is a schematic diagram of a USB download circuit and a fixture system.
Fig. 3 is a flowchart illustrating a processing method of a test according to an embodiment of the present invention.
Fig. 3a is a schematic diagram of a third waveform provided by the embodiment of the invention.
Fig. 3b is a diagram illustrating a second waveform according to an embodiment of the present invention.
Fig. 3c is a schematic flowchart of another test processing method according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a motherboard according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of an intelligent device disclosed in the embodiment of the present invention.
Fig. 6 is a schematic structural diagram of another intelligent device disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and in the accompanying 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 invention. 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.
Referring to fig. 1, fig. 1 is a schematic diagram of a testing process of a production line, where the testing process of the production line shown in fig. 1 is implemented under the structure of the production line shown in fig. 2.
Referring to fig. 2, fig. 2 is a USB download circuit and fixture system, referring to fig. 2, the system includes: the main board corresponds to the test point 10, the production line downloading jig 11, the program control power supply 12 and the software 13.
The main board corresponding test point 10 may include: VBUS, USB DM, USB DP, ID and GND, this production line download jig 11 may include: the product downloading jig 11 is further connected with the program control power supply 12 through a VBAT (power supply voltage) thimble, and the product downloading jig 11 is further connected with the software 13.
The test flow of the production line is shown in fig. 1, and comprises the following steps:
and S101, when the development and debugging are carried out, the main board detects that the USB is inserted, and the downloading process is executed through the USB to download the software.
Step S102, the motherboard executes startup initialization after downloading software, and writes a reset success flag bit rest _ OK in a PBL (Primary Boot Loader) module register, where the reset _ OK indicates that downloading is completed.
Step S103, when the main board detects that the USB is inserted again, it detects whether the reset success flag bit of the PBL module register is 1 (i.e. high level), indicating that the downloading is completed, and sets the charging current according to normal startup, i.e. executes the USB100 process.
Step S104, when the motherboard detects that the USB is inserted again, if the flag bit is detected to be 0 (i.e. low level), the download is considered to be failed, and the USB500 process is executed, that is, the charging current is set to be in the USB500 mode, so as to ensure that there is enough download driving current.
As shown in the process of fig. 1, if the subsequent process completes one download, the reset success flag is 1, if the USB is inserted again and the software download needs to be executed again, that is, when the software download task is executed for multiple times, because the reset success flag after one download is 1, the magnitude of the USB charging current executed by the subsequent process is 100mA, when the software download is executed for multiple times, the software download failure may occur due to the magnitude of the executed USB charging current being 100mA, which affects the debugging of the mobile phone, and the reason for the software download failure occurring in the USB100 mode is that the main board is not connected to the battery during the development and debugging phase, the power supply is simulated by the production line fixture to the battery, and if the download needs to be performed for multiple times, the tester needs to manually add the battery.
Referring to fig. 3, fig. 3 provides a test processing method, where the method is performed by a motherboard of an intelligent device, where the motherboard may include a processor and a memory, and the following steps may be performed by a self-contained chip in the motherboard, or in practical applications, may be performed by a processor mounted on the motherboard, where the method is shown in fig. 3, and includes the following steps:
step S301, when the mainboard of the intelligent device detects the USB plug-in signal, the reset flag bit of the PBL module is read.
The USB insertion signal is detected in step S301, specifically, whether the level of VBUS of the USB is high level is detected, and if the level of VBUS is high level, it is determined that the USB insertion signal is detected, but in practical applications, other ways may also be used to detect the USB insertion signal, for example, whether the DM or DP of the USB has data transmission to determine whether the USB has the insertion signal, and if so, determine that the USB is inserted, if not, determine that there is no USB insertion.
Step S302, if the reset flag of the PBL module is at a high level, the main board of the intelligent device determines whether to execute the software downloading process, and if the main board of the intelligent device determines to execute the software downloading process, the reset flag is changed to a low level.
According to the setting of the main board chip, if the reset flag bit of the PBL module is at a high level, the main board sets the charging current to 100mA during subsequent software downloading, and if software downloading is executed at this time, because the main board is not provided with a battery, the downloading current may be insufficient during the software downloading, thereby causing the software downloading failure, so that when the main board of the intelligent device is detected to determine to execute the software downloading process, the reset flag bit is changed to a low level, and thus, during the software downloading, the chip (for example, a processor) in the main board sets the downloaded charging current to 500mA, thereby ensuring the success rate of the software downloading.
There are various ways to determine whether to execute the downloading process, for example, in an optional scheme, the motherboard receives a software downloading command, and in actual application, the motherboard may also fail to initialize the system last time, and so on.
Step S303, the main board of the smart device executes the software downloading process, and sets the downloading current of the software downloading process to be the set current (500 mA).
The software downloading in step S303 is not limited to the name and specific item of the downloaded software, and any software may be downloaded according to the test flow or the requirement of the manufacturer.
The technical scheme provided by the invention realizes that the mainboard can execute the software for a plurality of times in the debugging stage without loading a battery when the software needs to be downloaded for a plurality of times. Specifically, when the main board detects a USB plug-in signal, it is determined whether the level corresponding to the PBL module of the main board is a high level, if the level is a high level, the main board determines whether a software downloading process needs to be executed, if the software downloading process needs to be executed, the main board changes the level corresponding to the PBL module to a low level, and executes the software downloading process, and when the software downloading is executed, the downloading current is set to 500mA, so that when the level corresponding to the PBL module is a high level, the current of 500mA can be provided for the software downloading under the normal condition without installing a battery, and therefore, a debugger does not need to manually install a battery, and the main board has the advantages of being convenient for the debugger to use and saving labor cost.
Optionally, after step S303, the method may further include:
and after the software is downloaded, executing a system initialization process, and after the system initialization process is executed, setting the reset flag bit of the PBL module to be a high level by the intelligent equipment mainboard.
According to the technical scheme, after the download is executed again, the subsequent debugging process of the software download is not influenced, namely the subsequent charging current is set to be in a USB100 mode, and the debugging personnel can use the USB100 mode conveniently.
Optionally, after step S303, the method may further include:
recording the software downloading process, if the software downloading fails, creating a downloading failure report according to the software downloading process, and sending the downloading failure report to the test platform.
According to the technical scheme, the recording of the software downloading process is added, so that the software downloading process can be processed to further create a downloading failure report, and specifically, the process can comprise the following steps: a first waveform of the download flow rate versus time and a second waveform of the download current versus time. The method for processing the first waveform diagram and the second waveform diagram to create the download failure report may specifically be:
adding the numerical values of every n points in the first oscillogram together to obtain a signal graph after the addition, namely a third oscillogram, and extracting the maximum amplitude f in the third oscillograms-maxAveraging the values of every n points in the first oscillogram to obtain a signal graph of an average value, namely a fourth oscillogram, and extracting the maximum amplitude f in the fourth oscillograma-max(ii) a Pressing the third waveform as fs-maxThe third waveform is divided into at least three regions (as shown in fig. 3 a), and the at least three regions are countedThe proportion of the sampling points to the total sampling points, such as the sum of the proportions of two edge regions of at least three regions is greater than a set proportion, determining the preliminary abnormality, and taking the fourth waveform diagram according to fa-maxThe method comprises the steps of dividing the percentage of the sampling point into at least three areas, counting the number of continuous sampling points of the lowest layer area of the at least three areas, determining that the downloading quantity in the downloading process is abnormal if the number of the continuous sampling points is larger than a set threshold, recording a time interval corresponding to the number of the continuous sampling points of the lowest layer area, determining the time interval as abnormal time, recording the abnormal downloading quantity and the abnormal time in a downloading failure report, and determining that the downloading flow is normal if the number of the sampling points is smaller than the threshold.
The specific implementation manner of dividing the third waveform diagram into at least three regions according to percentage may be that, taking three regions as an example, the first region is fs-max—A%*fs-max(ii) a The second area is: a%. fs-max—B%*fs-max(ii) a The third region is B%. fs-max-0. The area including 0 in the area division is the bottommost area, the area including 0 or the maximum value in the area division is the edge area, taking three areas as an example, the maximum area and the bottommost area are two edge areas, and the area between the two edge areas may be a middle area.
The principle of the technical scheme is that for the download traffic, the reason that the download traffic fails to affect the software download is generally that a peak value of the download traffic is too low or too high (generally too high is a detection error) for a period of time, and an average value is too low, in which case the download traffic affects the success of the software download, and in order to reduce the signal processing amount, n signals are subjected to superposition processing to obtain the amount of signal processing, where n may be specifically 5 or 6, and may also be another integer greater than 2.
Under normal conditions, because the software download current is set to be 500mA, the download failure caused by too low download current can not occur, but under abnormal conditions, the download current can not reach 500mA, for example, the programmable power supply 12, and under abnormal conditions such as abnormal connection between the programmable power supply 12 and a jig, the download current can not reach 500 mA.
If the download flow is normal, dividing the second oscillogram into m time sections, detecting whether the average value of the current magnitude of each time section is higher than a set threshold value, if the average value is higher than the set threshold value, determining that the download current is normal, determining that the download failure is other failures, if the download current of any time section in the time sections is lower than the set threshold value, determining that the download current is abnormal, and recording the time of the download current abnormality and the time of the download current abnormality in the download failure report.
The principle of this technical solution is that, for the download current, since it executes the USB500 flow, if it is in a normal state, and the current of the current generally changes within a very small amplitude of 500mA, the second waveform diagram is divided into m time segments, the number of m may be set by a user, for example, m may be m-5, 6, 7, 8, 9, or 10, so that if there is a problem in the download current in any one time segment, it affects whether the download software succeeds or not. Then if the average value of the download current is smaller than the set threshold, the download current is determined to be abnormal, as shown in fig. 3b, and here, the areas 5 and 6 are abnormal.
For the reasons of the software download failure, the number detected by the download process is generally 2, one is the reason of the download process, and the other is the reason of the download current, if the 2 reasons are excluded, the other reasons are other reasons, for example, the problem of the download software itself, for example, the problem that the download software itself has compatibility with the mobile phone, for example, the download software has virus, and the like. As another example, the reason for the hardware, the hardware has problems, and so on.
The following describes a flow of the technical solution according to an embodiment of the present invention by an actual example, as shown in fig. 3c, the method is executed between a download fixture and a motherboard, and a hardware structure diagram of the execution is shown in fig. 2, where the test point 10 corresponding to the motherboard may include: VBUS, USB DM, USB DP, ID and GND, this production line download jig 11 may include: the product downloading jig 11 is further connected with the program control power supply 12 through a VBAT (power supply voltage) thimble, and the product downloading jig 11 is further connected with the software 13. As shown in fig. 3c, the processing method of the test includes the following steps:
step S301c, when the motherboard detects that the VBUS of the USB is at a high level, the reset flag of the PBL module is read.
Step S302c, when the main board determines that the reset flag of the PBL module is at a high level, it determines to execute the software downloading process, and modifies the reset flag of the PBL module to a low level.
Step S303c, the motherboard executes the software download process, and sets the software download current to 500 mA.
Step S304c, the main board records the downloading process, and if the downloading process fails, extracts the waveform diagram of the downloading flow and the waveform diagram of the downloading current of the downloading process.
Step S305c, the motherboard further processes and creates a download failure report according to the waveform diagram of the download flow and the waveform diagram of the download current, and sends the download failure report to the test platform.
The technical scheme provided by the invention realizes that the mainboard can execute the software for a plurality of times in the debugging stage without loading a battery when the software needs to be downloaded for a plurality of times. Specifically, when the main board detects a USB plug-in signal, it is determined whether the level corresponding to the PBL module of the main board is a high level, if the level is a high level, the main board determines whether a software downloading process needs to be executed, if the software downloading process needs to be executed, the main board changes the level corresponding to the PBL module to a low level, and executes the software downloading process, and when the software downloading is executed, the downloading current is set to 500mA, so that when the level corresponding to the PBL module is a high level, the current of 500mA can be provided for the software downloading under the normal condition without installing a battery, and therefore, a debugger does not need to manually install a battery, and the main board has the advantages of being convenient for the debugger to use and saving labor cost.
Referring to fig. 4, fig. 4 provides a schematic structural diagram of a main board, where the main board includes: a PBL module 401 and a USB interface 402;
a detection unit 403 for detecting a USB insertion signal;
a reading unit 404, configured to read a reset flag of the PBL module when the detection unit detects an insertion signal of the USB;
a processing unit 405, configured to determine whether to execute a software downloading procedure if the reset flag of the PBL module is at a high level, and change the reset flag to a low level if the software downloading procedure is determined to be executed; and executing the software downloading process, and setting the downloading current of the software downloading process to be 500 mA.
Optionally, the processing unit 405 is further configured to execute a system initialization procedure after the software is completely downloaded, and set the reset flag to a high level after the system initialization procedure is completed.
Optionally, the processing unit 405 is further configured to record a software downloading process, for example, if the software downloading fails, create a downloading failure report according to the process, and send the downloading failure report to the test platform;
the process comprises the following steps: a first waveform diagram of the download flow rate and a second waveform diagram of the download current.
Optionally, the processing unit 405 is specifically configured to add the numerical values of every n points in the first waveform diagram together to obtain a third waveform diagram after the addition, and extract the maximum amplitude f in the third waveform diagrams-maxAveraging the values of every n points in the first oscillogram to obtain a fourth oscillogram, and extracting the maximum amplitude f in the fourth oscillograma-max(ii) a Pressing the third waveform diagram according to fs-maxThe third oscillogram is divided into at least three areas according to the percentage, the proportion of sampling points of the at least three areas to the total sampling points is counted, if the sum of the proportions of two marginal areas of the at least three areas is more than a set proportion, the preliminary abnormity is determined, and the fourth oscillogram is divided into at least three areas according to the percentage fa-maxIs divided into at least three areas, the number of continuous sampling points of the lowest layer area of the at least three areas is counted, if the number is more than a set threshold value, the downloaded area is determinedAnd recording a time interval corresponding to the number of the continuous sampling points of the lowest layer area when the download quantity of the program is abnormal, determining the time interval as abnormal time, and recording the download quantity abnormality and the abnormal time into a download failure report.
Optionally, the processing unit 405 is further configured to determine that the download flow is normal if the number is smaller than a threshold, divide the second waveform diagram into m time segments, detect whether an average value of the current magnitude in each time segment is higher than a set threshold, determine that the download current is normal if the average value is higher than the set threshold, determine that the download failure is other failures, determine that the download current is abnormal if the download current in any time segment in the time segments is lower than the set threshold, and record the download current abnormality and the time when the download current is abnormal in the download failure report.
The main board provided by the invention realizes that the main board can execute the software for a plurality of times in the debugging stage without loading a battery when the software needs to be downloaded for a plurality of times in the debugging stage. Specifically, when the main board detects a USB plug-in signal, it is determined whether the level corresponding to the PBL module of the main board is a high level, if the level is a high level, the main board determines whether a software downloading process needs to be executed, if the software downloading process needs to be executed, the main board changes the level corresponding to the PBL module to a low level, and executes the software downloading process, and when the software downloading is executed, the downloading current is set to 500mA, so that when the level corresponding to the PBL module is a high level, the current of 500mA can be provided for the software downloading under the normal condition without installing a battery, and therefore, a debugger does not need to manually install a battery, and the main board has the advantages of being convenient for the debugger to use and saving labor cost.
Referring to fig. 5, fig. 5 provides a smart device comprising one or more processors 501, memory 502, transceiver 503 and motherboard 504, and one or more programs stored in memory 502 and configured to be executed by the one or more processors, the programs comprising instructions for performing the steps in the method of fig. 3 or fig. 3 c.
The Processor 501 may be a Processor or a controller, such as a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The transceiver 503 may be a communication interface, a transceiver circuit, etc., wherein the communication interface is a generic term and may include one or more interfaces.
Fig. 6 is a block diagram illustrating a partial structure of a server, which is an intelligent device provided by an embodiment of the present invention. Referring to fig. 6, the server includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, sensor 950, audio circuit 960, Wireless Fidelity (WiFi) module 970, application processor AP980, and motherboard 990, which may include USB interfaces and PBL modules. Those skilled in the art will appreciate that the smart device architecture shown in FIG. 6 does not constitute a limitation of smart devices and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The following describes each component of the smart device in detail with reference to fig. 6:
the AP980 is a control center of the smart device, connects various parts of the entire smart device using various interfaces and lines, and performs various functions of the smart device and processes data by running or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the smart device. Optionally, AP980 may include one or more processing units; alternatively, the AP980 may integrate an application processor that handles primarily the operating system, user interface, and applications, etc., and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the AP 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.
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
A main board 990, configured to detect an insertion signal of the USB interface during testing, and read a reset flag of the PBL module when the detection module detects the insertion signal of the USB; if the reset identification bit is at low level, executing a software downloading process, setting the charging current of software downloading into a USB500 mode, and setting the reset flag bit to be at high level when the software downloading is determined to be completed and the system initialization is completed; receiving a flag bit clearing command, and setting the reset flag bit to be a low level according to the flag bit clearing command; and when the detection module detects the USB insertion signal again, the software downloading process is executed again, and the charging current of the software downloading is set to be in the USB500 mode.
Optionally, the main board 990 is further configured to set the reset flag to a high level after the software downloading process is executed again.
Optionally, the main board 990 maintains the reset flag at a low level when the software download process is executed again after the software download process is executed again.
Optionally, the method further includes: if the main board 990 fails to execute the software downloading process again, it is determined that a failure occurs.
Optionally, the method further includes: the main board 990, when the software download is failed to be executed again, establishes a download failure log, where the download failure log includes: and when the detection module detects the insertion signal of the USB again, the download failure log is transmitted to the debugging platform through the USB.
The smart device may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the touch display screen according to the 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.
The audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between the user and the smart device. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, and the electrical signal is received by the audio circuit 960 and converted into audio data, and the audio data is processed by the audio playing AP980, and then sent to another mobile phone via the RF circuit 910, or played to the memory 920 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 970, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 970, it is understood that it does not belong to the essential constitution of the smart device and can be omitted entirely as needed within the scope not changing the essence of the invention.
The smart device also includes a power supply 990 (e.g., a battery or a power module) for supplying power to various components, and optionally, the power supply may be logically connected to the AP980 via a power management system, so that functions of managing charging, discharging, and power consumption are implemented via the power management system.
In the foregoing embodiment shown in fig. 3 or as shown in fig. 3c, the method flow of each step may be implemented based on the structure of the smart device.
In the embodiments shown in fig. 4 or fig. 5, the functions of the units may be implemented based on the structure of the smart device.
It can be seen that, according to the embodiment of the present invention, the mobile terminal allocates different priorities to different biometric identification sequences, and within a set time, if the type of the second application program to be started is different from that of the first application program, the multi-biometric identification operation needs to be executed again, thereby avoiding the problem that the highest priority is directly given to the different types of application programs, which affects the security.
An embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the test processing methods described in the above method embodiments.
Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any one of the test processing methods as set out 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 invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. 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 illustrated are not necessarily required to practice the invention.
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 invention 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 invention may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
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 Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are explained by applying specific embodiments, and the above description of the embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, 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 invention.

Claims (10)

1. A method of processing a test, the method comprising the steps of:
when a main board of the intelligent equipment detects a USB insertion signal, reading a reset zone bit of a PBL module;
if the read reset flag bit of the PBL module is at a high level, a main board of the intelligent device determines whether to execute a software downloading process, and if so, changes the reset flag bit to a low level;
the method comprises the following steps that a main board of the intelligent equipment executes a software downloading flow, and the downloading current of the software downloading flow is set to be set current;
wherein, the software downloading process comprises: a first waveform of the download flow rate versus time and a second waveform of the download current versus time.
2. The method of claim 1, further comprising:
and after the software is downloaded, executing a system initialization process, and after the system initialization process is executed, setting the reset flag bit to be a high level.
3. The method of claim 1, further comprising:
recording the software downloading progress, if the software downloading fails, creating a downloading failure report according to the progress, and sending the downloading failure report to the test platform.
4. The method of claim 3, wherein said creating a download failure report according to said process comprises:
adding the numerical values of every n points in the first oscillogram together to obtain a third oscillogram after the addition, and extracting the maximum amplitude f in the third oscillograms-maxAveraging the values of every n points in the first oscillogram to obtain a fourth oscillogram, and extracting the maximum amplitude f in the fourth oscillograma-max(ii) a Pressing the third waveform diagram according to fs-maxThe third oscillogram is divided into at least three areas according to the percentage, the proportion of sampling points of the at least three areas to the total sampling points is counted, if the sum of the proportions of two edge areas of the at least three areas is more than a set proportion, the third oscillogram is determinedDetermining the preliminary abnormality, and pressing the fourth oscillogram according to fa-maxThe method comprises the steps of dividing the percentage of the sampling point into at least three areas, counting the number of continuous sampling points of the lowest layer area of the at least three areas, if the number is larger than a set threshold value, determining that the downloading quantity in the downloading process is abnormal, recording a time interval corresponding to the number of the continuous sampling points of the lowest layer area, determining the time interval as abnormal time, and recording the downloading quantity abnormality and the abnormal time into a downloading failure report.
5. A motherboard, comprising: the main boot loader PBL module and the USB interface further comprise:
a detection unit for detecting a USB insertion signal;
the reading unit is used for reading the reset flag bit of the PBL module when the detection unit detects the USB insertion signal;
the processing unit is used for determining whether to execute a software downloading process if the reset flag bit of the PBL module read by the reading unit is at a high level, and changing the reset flag bit to a low level if the software downloading process is determined to be executed; executing a software downloading flow, and setting the downloading current of the software downloading flow as a set current;
wherein, the software downloading process comprises: a first waveform of the download flow rate versus time and a second waveform of the download current versus time.
6. Main board according to claim 5,
and the processing unit is also used for executing a system initialization process after the software is downloaded, and setting the reset flag bit to be a high level after the system initialization process is executed.
7. Main board according to claim 5,
the processing unit is further configured to record a software downloading process, if the software downloading fails, create a downloading failure report according to the process, and send the downloading failure report to the test platform.
8. Main board according to claim 7,
the processing unit is specifically configured to superimpose the numerical values of every n points in the first waveform diagram to obtain a superimposed third waveform diagram, and extract a maximum amplitude f in the third waveform diagrams-maxAveraging the values of every n points in the first oscillogram to obtain a fourth oscillogram, and extracting the maximum amplitude f in the fourth oscillograma-max(ii) a Pressing the third waveform diagram according to fs-maxThe third oscillogram is divided into at least three areas according to the percentage, the proportion of sampling points of the at least three areas to the total sampling points is counted, if the sum of the proportions of two marginal areas of the at least three areas is more than a set proportion, the preliminary abnormity is determined, and the fourth oscillogram is divided into at least three areas according to the percentage fa-maxThe method comprises the steps of dividing the percentage of the sampling point into at least three areas, counting the number of continuous sampling points of the lowest layer area of the at least three areas, if the number is larger than a set threshold value, determining that the downloading quantity in the downloading process is abnormal, recording a time interval corresponding to the number of the continuous sampling points of the lowest layer area, determining the time interval as abnormal time, and recording the downloading quantity abnormality and the abnormal time into a downloading failure report.
9. An intelligent device, characterized in that the device comprises one or more processors, memory, a transceiver and a motherboard, and one or more programs stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for carrying out the steps in the method according to any one of claims 1-4.
10. A computer-readable storage medium, characterized in that it stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201710850684.8A 2017-09-20 2017-09-20 Test processing method and related product Active CN107608923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710850684.8A CN107608923B (en) 2017-09-20 2017-09-20 Test processing method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710850684.8A CN107608923B (en) 2017-09-20 2017-09-20 Test processing method and related product

Publications (2)

Publication Number Publication Date
CN107608923A CN107608923A (en) 2018-01-19
CN107608923B true CN107608923B (en) 2021-01-12

Family

ID=61061372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710850684.8A Active CN107608923B (en) 2017-09-20 2017-09-20 Test processing method and related product

Country Status (1)

Country Link
CN (1) CN107608923B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109829095A (en) * 2019-02-12 2019-05-31 苏州思必驰信息科技有限公司 The acquisition methods and system of webpage information
CN110838828B (en) * 2019-10-18 2023-01-13 成都凯天电子股份有限公司 Method for demodulating inductive proximity sensor
CN113377084A (en) * 2021-06-24 2021-09-10 中国第一汽车股份有限公司 Burning device and method for automobile electronic control unit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786145A (en) * 2016-02-25 2016-07-20 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
CN106293845A (en) * 2016-08-15 2017-01-04 中科创达软件科技(深圳)有限公司 A kind of terminal enters control method and the device of brush machine pattern
CN106505686A (en) * 2016-12-13 2017-03-15 广东欧珀移动通信有限公司 USB battery charge controllers and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963934B (en) * 2010-10-27 2012-08-08 山东大学 Method for debugging 8051 core-based system on chip (SOC) on line
CN103545882B (en) * 2013-10-11 2015-07-22 华为技术有限公司 Battery in-situ test method and device and battery charge system
CN104502832B (en) * 2014-12-31 2017-09-15 福建实达电脑设备有限公司 Based on handheld POS machine mainboard auto testing instrument and method of testing
CN107451067B (en) * 2017-08-31 2020-12-08 Oppo广东移动通信有限公司 Processing method for downloading test and related product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786145A (en) * 2016-02-25 2016-07-20 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
CN106293845A (en) * 2016-08-15 2017-01-04 中科创达软件科技(深圳)有限公司 A kind of terminal enters control method and the device of brush machine pattern
CN106505686A (en) * 2016-12-13 2017-03-15 广东欧珀移动通信有限公司 USB battery charge controllers and mobile terminal

Also Published As

Publication number Publication date
CN107608923A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN108415739B (en) Hook method and device for dynamic link library function and storage medium
US10628271B2 (en) Method for information processing and related device
CN105487966B (en) Program testing method, device and system
CN107145782B (en) Abnormal application program identification method, mobile terminal and server
CN108920195B (en) Boot processing method and related product
CN110196795B (en) Method and related device for detecting running state of mobile terminal application
CN109726067B (en) Process monitoring method and client device
KR20170028995A (en) LOW POWER DEBUG ARCHITECTURE FOR SYSTEM-ON-CHIPS (SOCs) AND SYSTEMS
CN107608923B (en) Test processing method and related product
CN107291586B (en) Application program analysis method and device
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
WO2014173211A1 (en) Code coverage testing method, device and system
CN104915306A (en) Data operation control method and device manager
CN115184764A (en) Chip testing method and device, electronic equipment and storage medium
CN110213313B (en) File uploading method, related device and system
CN107451067B (en) Processing method for downloading test and related product
CN112463199A (en) System upgrading method and terminal
CN108650702B (en) Broadcast information processing method and user terminal
CN105278942B (en) Component management method and device
CN111262737B (en) Port configuration management method and device, storage medium and terminal
CN106709330B (en) Method and device for recording file execution behaviors
US9619355B2 (en) Booting verification method of computer and electronic device
CN107577567B (en) Mainboard test circuit and related product
CN109558731B (en) Feature code processing method, device and storage medium
CN113961380A (en) Cross-application repair method, device, equipment and storage medium

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