CN107451067A - Download the processing method and Related product of test - Google Patents

Download the processing method and Related product of test Download PDF

Info

Publication number
CN107451067A
CN107451067A CN201710773549.8A CN201710773549A CN107451067A CN 107451067 A CN107451067 A CN 107451067A CN 201710773549 A CN201710773549 A CN 201710773549A CN 107451067 A CN107451067 A CN 107451067A
Authority
CN
China
Prior art keywords
software download
download
software
mainboard
mark position
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
CN201710773549.8A
Other languages
Chinese (zh)
Other versions
CN107451067B (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 CN201710773549.8A priority Critical patent/CN107451067B/en
Publication of CN107451067A publication Critical patent/CN107451067A/en
Application granted granted Critical
Publication of CN107451067B publication Critical patent/CN107451067B/en
Active 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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0745Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in an input/output transactions management context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a kind of processing method for downloading test and Related product, methods described and comprised the following steps:When downloading test, when detecting USB insertion signal, the reseting mark position of primary boot loader PBL modules is read;If the flag that resets be low level, execution software download flow, the charging current of software download is arranged to USB500 patterns, it is determined that software download is completed and when completing system initialization, the reseting mark position is arranged to high level;Clear flag order of the bit is received, the reseting mark position is arranged to low level according to the clear flag order of the bit;When detecting USB insertion signal again, software download flow is performed again, the charging current of software download is arranged to USB500 patterns.Technical scheme provided by the invention has the advantages of convenient debugging.

Description

Download the processing method and Related product of test
Technical field
The present invention relates to communication technical field, and in particular to a kind of processing method and Related product for downloading test.
Background technology
At present in mainstream chip platform, can integrated battery detection function in place, with and what is come is corresponding different chargings Electric current, this mainly considers user the user security during actual use the problem of.Adopted when battery is in place Charged with larger acquiescence electric current, if USB500 is 500mA charging size;Will when battery exception is detected Charged using less electric current, such as USB100, i.e. 100mA charging current.
In flow is downloaded in existing test, i.e., simulated battery situation in place is carried out in the pattern that producing line is downloaded and is carried out down Carry.Due to machine in the R&D and production stage, it is necessary to which analyzing bad machine carries out hardware and software debugging, now system is soft due to downloading once Body, if needing to add battery when battery is not in place to ensure to download successfully, this brings inconvenience to exploitation debugging efforts.
The content of the invention
The embodiments of the invention provide a kind of processing method and Related product for downloading test, the exploitation to terminal can be facilitated Debugging.
In a first aspect, the embodiment of the present invention provides a kind of processing method for downloading test, methods described comprises the following steps: When downloading test, when detecting USB insertion signal, the reseting mark position of primary boot loader PBL modules is read;As described in Reset flag is low level, performs software download flow, the charging current of software download is arranged into USB500 patterns, true When determining software download and completing and complete system initialization, the reseting mark position is arranged to high level;Receive clear flag position Order, low level is arranged to according to the clear flag order of the bit by the reseting mark position;USB insertion letter is detected again Number when, again perform software download flow, the charging current of software download is arranged to USB500 patterns.
Optionally, methods described also includes:
After performing software download flow again, the reseting mark position is arranged to high level.
Optionally, methods described also includes:
When such as needing to perform again software download after performing software download flow again, the reseting mark position is tieed up Hold low level.
Optionally, methods described also includes:
As performed the failure of software download flow again, it is determined that breaking down.
Second aspect, there is provided a kind of mainboard, the mainboard include:Primary boot loader PBL modules and USB interface;
Detection module, for when downloading test, detecting the insertion signal of the USB interface;
Module for reading and writing, during insertion signal for detecting USB in the detection module, read answering for the PBL modules Bit flag position;
Processing module, it is low level for such as described flag that resets, software download flow is performed, by filling for software download Electric current is arranged to USB500 patterns, it is determined that software download is completed and when completing system initialization, by the reseting mark position It is arranged to high level;
The module for reading and writing, for receiving clear flag order of the bit, according to the clear flag order of the bit by the reset Flag bit is arranged to low level;
The processing module, when being additionally operable to the detection module and detecting USB insertion signal again, software is performed again Flow is downloaded, the charging current of software download is arranged to USB500 patterns.
Optionally, the processing module, it is additionally operable to after performing software download flow again, by the reseting mark position It is arranged to high level.
Optionally, the processing module, such as need to perform software download again after performing software download flow again When, the reseting mark position is maintained into low level.
Optionally, methods described also includes:
The processing module, the failure of software download flow is such as performed again, it is determined that breaking down.
The third aspect, there is provided a kind of smart machine, the equipment include one or more processors, memory, transceiver, And one or more programs, one or more of programs are stored in the memory, and it is configured by described one Individual or multiple computing devices, described program include being used to perform the instruction of the step in the method for first aspect offer.
A kind of fourth aspect, there is provided computer-readable recording medium, it is characterised in that it is stored for electronic data interchange Computer program, wherein, the computer program cause computer perform first aspect provide described method.
5th aspect, there is provided a kind of computer program product, the computer program product include storing computer journey The non-transient computer-readable recording medium of sequence, the computer program are operable to make computer perform first aspect offer Method.
Implement the embodiment of the present invention, have the advantages that:
As can be seen that by the embodiment of the present invention, can be realized without load cell when needing multiple software download Mainboard performs the multiple download of software in the debugging stage.Specifically, it is when performing a software download, due to current chip The reseting mark position of PBL modules can be arranged to high level by platform automatically when performing a software download, so in next time When inserting USB, no matter which kind of flow it performs, its be performed both by for USB100 flows, so for performing software download again When, it may appear that software download is unsuccessful again, and technical scheme provided by the invention is when needing to perform software download again, to The mainboard of smart machine sends the order of clear flag position, and mainboard the answering PBL modules of smart machine is caused according to the order Bit flag position is arranged to low level, so for next software download when, according to mainstream chip platform setting, due to PBL moulds The reseting mark position of block is arranged to low level, thus performed when performing software download again for USB500 flows, thus not Can be because charging current is too low to cause failed download, it has the advantages of improving debugging efficiency, reducing cost.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
Fig. 1 is a kind of download testing process schematic diagram of producing line.
Fig. 2 is a kind of USB download circuits and jig system structural representation.
Fig. 3 is a kind of schematic flow sheet of processing method for downloading test provided in an embodiment of the present invention.
Fig. 3 a are the schematic flow sheets of another processing method for downloading test provided in an embodiment of the present invention.
Fig. 4 is the structural representation of mainboard provided in an embodiment of the present invention.
Fig. 5 is a kind of structural representation of smart machine disclosed in the embodiment of the present invention.
Fig. 6 is the structural representation of another smart machine disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the accompanying drawing and " Four " etc. be to be used to distinguish different objects, rather than for describing particular order.In addition, term " comprising " and " having " and it Any deformation, it is intended that cover non-exclusive include.Such as contain the process of series of steps or unit, method, be The step of system, product or equipment are not limited to list or unit, but alternatively also including the step of not listing or list Member, or alternatively also include for the intrinsic other steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.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.
Refering to Fig. 1, Fig. 1 is a kind of download testing process schematic diagram of producing line, and the producing line as shown in Figure 1 downloads test stream Journey is realized under producing line structure as shown in Figure 2.
Refering to Fig. 2, Fig. 2 is a kind of USB download circuits and jig system, and refering to Fig. 2, the system includes:Mainboard is corresponding to be surveyed Pilot 10, producing line download tool 11, programmable power supply 12 and software 13.
Wherein, the mainboard corresponds to test point 10 and can included:VBUS, USB DM, USB DP, ID and GND, the producing line are downloaded Tool 11 can include:VBUS thimbles, DM thimbles, DP thimbles, ID thimbles and GND thimbles, the product are downloaded tool 11 and also passed through VBAT (supply voltage) thimbles are connected with programmable power supply 12, and the product is downloaded tool 11 and is also connected with software 13.
The download testing process of its producing line is as shown in figure 1, comprise the following steps:
Step S101, when developing debugging, mainboard detects insertion USB, and performing download flow by USB downloads software.
Step S102, mainboard performs opening initialization after software is downloaded, PBL (Primary Boot Loader, Primary boot loader) module register write-in resets successfully flag bit rest_OK, the rest_OK represent download completion.
Step S103, when mainboard is detected again insertable into USB, the reset success flag bit of detection PBL module registers is No is 1 (i.e. high level), then shows to download and complete, then carry out charging current setting according to normal boot-strap, that is, perform USB 100 and flow Journey.
Step S104, when mainboard is detected again insertable into USB, if detecting that flag bit is 0 (i.e. low level), then it is assumed that Failed download, the flows of USB 500 are performed, that is, it is USB500 patterns to set charging current, ensures to drive with enough downloads Streaming current.
Flow as shown in Figure 1, if follow-up process, after completing once to download, reset success flag bit is 1, such as When fruit needs to perform software download again again insertable into USB, that is, when performing multiple software download task, after once downloading Reset success flag bit be 1, so its size of USB charging currents performed be 100mA, so under the multiple software of execution During load, it is possible to occur, because the size of the USB charging currents of execution causes software failed download again for 100mA, influenceing hand The debugging of machine, it is because being to be not connected in exploitation debugging stage mainboard to appear in the reason for software download fails under USB100 patterns Battery, the power supply simulates the battery by producing line tool, existing repeatedly to download if desired, it is necessary to which tester add manually Enter battery.
Refering to Fig. 3, Fig. 3 provides a kind of processing method for downloading test, and this method is completed by the mainboard of smart machine, should Mainboard can include processor and memory, and following step can be completed by the chip that carries in mainboard, in actual applications, It can also be completed by the processor on the mainboard, this method is as shown in figure 3, comprise the following steps:
Step S301, the mainboard of smart machine reads the reseting mark of PBL modules when detecting USB insertion signal Position.
The mode of the insertion signal for detecting USB in above-mentioned steps S301 is specifically as follows, and detects USB VBUS electricity Whether flat is high level, if the level of the VBUS is high level, it is determined that USB insertion signal is detected, certainly in practical application In, USB insertion signal can also be detected using other modes, for example, whether the DM or DP that detect the USB there are data Transmission determines whether USB has insertion signal, if any data transfer, determines that the USB is inserted, as no data transmits, it is determined that nothing USB is inserted.
Step S302, the reseting mark position of such as PBL modules is low level, and the mainboard of smart machine performs software download, The charging current of software download is arranged to USB500 patterns.
The charging current of software download is arranged to USB500 patterns in above-mentioned steps S302, that is, realizes charging current It is sized to 500mA.
Software download in above-mentioned steps S302 is not limited the title of the software of download and specific project, foundation The flow of test or the demand of producer, can download arbitrary software, and the specific embodiment of the invention is not intended to limit under the software The specific software project carried.
Step S303, complete and when completing to start initialization receiving software download, the mainboard of smart machine is by PBL moulds The reset flag of block is arranged to high level.
The reset flag of PBL modules in above-mentioned steps S303 is arranged to 1 high level.
Step S304, the mainboard of smart machine receives the order of clear flag position, life of the mainboard according to the clear flag position The reseting mark position of the PBL is arranged to low level by order.
The order of clear flag position in above-mentioned steps S304 can be a variety of, and the specific embodiment of the invention is not intended to limit The specific manifestation form of mentioned order, for example, in an optional embodiment of the invention, the order of the clear flag position can Think customized order, certainly in actual applications, the order of the clear flag position can also be the character string of a setting, The character string can be continuous multiple 1 or multiple 0 to represent, the specific embodiment of the invention does not limit to above-mentioned form of presentation Specific manifestation form.
Step S305, when the mainboard of smart machine detects USB insertion signal again, the mainboard of smart machine is held again Row software download, and the charging current for performing software download again is arranged to USB500 patterns.
Technical scheme provided by the invention realizes can realize when needing multiple software download without load cell Mainboard performs the multiple download of software in the debugging stage.Specifically, it is when performing a software download, due to current chip The reseting mark position of PBL modules can be arranged to high level by platform automatically when performing a software download, so in next time When inserting USB, no matter which kind of flow it performs, its be performed both by for USB100 flows, so for performing software download again When, it may appear that software download is unsuccessful again, and technical scheme provided by the invention is when needing to perform software download again, to The mainboard of smart machine sends the order of clear flag position, and mainboard the answering PBL modules of smart machine is caused according to the order Bit flag position is arranged to low level, so for next software download when, according to mainstream chip platform setting, due to PBL moulds The reseting mark position of block is arranged to low level, thus performed when performing software download again for USB500 flows, thus not Can be because charging current is too low to cause failed download, it has the advantages of improving debugging efficiency, reducing cost.
Optionally, the above method can also include after step S305:
After execution download finishes again, the reseting mark position of the PBL is arranged to high level by the mainboard of smart machine.
This technical scheme is enabled to after performing download again and finishing, and does not influence the follow-up debugging stream of software download Journey, i.e., it is arranged to USB100 patterns in follow-up charging current, facilitates commissioning staff to use.
Optionally, the above method can also include after step S305:
The mainboard of smart machine performs software download failure again, determines the main board failure of the smart machine.
This technical scheme is so eliminated because of under due to being arranged to USB500 patterns in the charging current for downloading software The reason for too small caused software download of charging current of load software fails, if software download still fails in the case of this, that Determine that the mainboard of the smart machine is faulty, it is possible to directly determine the smart machine failure.
Optionally, the above method can also include after step S305:
When the mainboard of smart machine performs software download failure again, failed download daily record is established, the failed download daily record Including:Download the title of software, the time of download software and the receiving velocity for downloading software data.
This technical scheme establishes failed download daily record, records the download when mainboard performs software download failure again The title of software, the time for downloading software and the data reception rate for downloading software.On the other hand, can be to tuner for downloading Failure the reason for corresponding parameter is provided, specifically, for example, the title of the download software can be provided for tuner whether be under The failure of software in itself is carried, that is, downloads whether software is complete, and the time of the download software can provide download for tuner The time of software, whether in normal scope the receiving velocity can also provide the mainboard when downloading software for tuner Whether speed is normal, so facilitates tuner to be analyzed for the failure cause of the download software.
Optionally, the technical scheme can also include:
When the mainboard of smart machine detects USB insertion signal, the failed download daily record is passed through into the USB transmission to tune Try platform.
This technical scheme provides the transmission means of failed download daily record, because for the mainboard of smart machine, by In on test platform, it is without any other configuration, for example, being configured without battery, the display of no touching display screen, so it is certainly Body can not be gone out data transfer by wirelessly such as WIFI or bluetooth approach, so being built here by USB wired mode The vertical connection between the mainboard of smart machine, so as to obtain the failed download daily record, so have and know the intelligence using tuner The reason for mainboard of energy equipment.
Need what is illustrated, above-mentioned USB can be standard USB interface, micro USB interfaces or mini in actual applications Any one or more in USB interface.Certainly in actual applications, above-mentioned USB can also be that the USB of other definition connects Mouthful, specific manifestation form of the specific embodiment of the invention to the USB interface does not limit.
Optionally, the above method can also include after step S305:
After execution download finishes again, such as determine to need execution software download again, the mainboard of smart machine is to the PBL Reseting mark position do not change, that is, the reseting mark position for maintaining the PBL is low level.
This setting is after performing download again and finishing, and when performing software download if desired for another, the PBL is answered Bit flag position is not changed, that is, keeps low level, and so in another execution software download, the charging current performs USB500 streams Journey.The size that can so ensure in the charging current by once performing software download supports software download success enough.
Illustrate the flow of the technical scheme of specific embodiment of the invention offer below by the example of a reality, such as Shown in Fig. 3 a, this method is performed between tool and mainboard downloading, the hardware architecture diagram of the execution as shown in Fig. 2 its In, the mainboard, which corresponds to test point 10, to be included:VBUS, USB DM, USB DP, ID and GND, the producing line downloads tool 11 can be with Including:VBUS thimbles, DM thimbles, DP thimbles, ID thimbles and GND thimbles, the product download tool 11 also by VBAT (power supply electricity Pressure) thimble is connected with programmable power supply 12, and product download tool 11 is also connected with software 13.As shown in Figure 3 a, test is downloaded Processing method comprises the following steps:
Step S301a, mainboard detects USB VBUS when being high level, reads the reseting mark position of the PBL modules.
Step S302a, mainboard determines the reseting mark position of the PBL modules when being low level, performs and downloads software flow, and The charging current for controlling download software is 500mA.
Step S303a, after mainboard determines software download success, after execution system initialization, by the reset mark of the PBL modules Will position is arranged to high level.
Step S304a, mainboard detects USB VBUS again when being high level, it is determined that needing to download software again, receives The reseting mark position of the PBL modules is arranged to low level by clear flag order of the bit, mainboard.
Step S305a, mainboard performs software download flow again, such as the software download flow successfully, by the PBL modules Reseting mark position is arranged to high level, such as software download flow failure, establishes software download failure daily record.
Technical scheme provided by the invention realizes can realize when needing multiple software download without load cell Mainboard performs the multiple download of software in the debugging stage.Specifically, it is when performing a software download, due to current chip The reseting mark position of PBL modules can be arranged to high level by platform automatically when performing a software download, so in next time When inserting USB, no matter which kind of flow it performs, its be performed both by for USB100 flows, so for performing software download again When, it may appear that software download is unsuccessful again, and technical scheme provided by the invention is when needing to perform software download again, to The mainboard of smart machine sends the order of clear flag position, and mainboard the answering PBL modules of smart machine is caused according to the order Bit flag position is arranged to low level, so for next software download when, according to mainstream chip platform setting, due to PBL moulds The reseting mark position of block is arranged to low level, thus performed when performing software download again for USB500 flows, thus not Can be because charging current is too low to cause failed download, it has the advantages of improving debugging efficiency, reducing cost.
Refering to Fig. 4, Fig. 4 provides a kind of structural representation of mainboard, and the mainboard includes:Primary boot loader PBL moulds Block 401 and USB interface 402;
Detection module 403, for when downloading test, detecting the insertion signal of the USB interface;
Module for reading and writing 404, during insertion signal for detecting USB in the detection module, read the PBL modules Reseting mark position;
Processing module 405, it is low level for such as described flag that resets, software download flow is performed, by software download Charging current be arranged to USB500 patterns, it is determined that software download is completed and when completing system initialization, described reset is marked Will position is arranged to high level;
Module for reading and writing 404, for receiving clear flag order of the bit, described reset is marked according to the clear flag order of the bit Will position is arranged to low level;
Processing module 405, when being additionally operable to the detection module and detecting USB insertion signal again, software is performed again Flow is downloaded, the charging current of software download is arranged to USB500 patterns.
Optionally, processing module 405, it is additionally operable to after performing software download flow again, by the reseting mark position It is arranged to high level.
Optionally, processing module 405, such as need to perform software download again after performing software download flow again When, the reseting mark position is maintained into low level.
Optionally, methods described also includes:Processing module 405, the failure of software download flow is such as performed again, it is determined that occurring Failure.
Optionally, methods described also includes:Processing module 405, when performing software download failure again, establish failed download Daily record, the failed download daily record include:Download the title of software, the time of download software and the reception speed for downloading software data Rate, when the detection module detects USB insertion signal again, the failed download daily record is passed through into the USB transmission to debugging Platform.
Mainboard provided by the invention realizes i.e. can when needing multiple software download in the debugging stage without load cell Realize that mainboard performs the multiple download of software in the debugging stage.Specifically, it is when performing a software download, due to current The reseting mark position of PBL modules can be arranged to high level by chip platform automatically when performing a software download, so be existed During insertion USB next time, no matter which kind of flow it performs, its be performed both by for USB100 flows, so for performing software again During download, it may appear that software download is unsuccessful again, and technical scheme provided by the invention is needing to perform software download again When, the order of clear flag position is sent to the mainboard of smart machine, causes the mainboard of smart machine by PBL modules according to the order Reseting mark position be arranged to low level, so for next software download when, according to mainstream chip platform setting, due to The reseting mark position of PBL modules is arranged to low level, thus performed when performing software download again for USB500 flows, so Would not be because charging current is too low to cause failed download, it has the advantages of improving debugging efficiency, reducing cost.
Refering to Fig. 5, Fig. 5 provides a kind of smart machine, and the equipment includes one or more processors 501, memory 502nd, transceiver 503 and mainboard 504, and one or more programs, one or more of programs are stored in memory 502 In, and be configured by one or more of computing devices, described program is including being used to perform such as Fig. 3 or as shown in Figure 3 a The instruction of step in method.
Wherein, processor 501 can be processor or controller, such as can be central processing unit (Central Processing Unit, CPU), general processor, digital signal processor (Digital Signal Processor, DSP), Application specific integrated circuit (Application-Specific Integrated Circuit, ASIC), field programmable gate array It is (Field Programmable Gate Array, FPGA) or other PLDs, transistor logic, hard Part part or its any combination.What it can realize or perform with reference to described by the disclosure of invention various exemplary patrols Collect square frame, module and circuit.The processor can also be the combination for realizing computing function, such as include one or more micro- places Manage device combination, combination of DSP and microprocessor etc..Transceiver 503 can be communication interface, transceiver, transmission circuit etc., its In, communication interface is to be referred to as, and can include one or more interfaces.
Fig. 6 is illustrated that the block diagram for the part-structure of server with smart machine provided in an embodiment of the present invention.With reference to Fig. 6, server include:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, sensor 950th, voicefrequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) module 970, application processor AP980 and The grade part of mainboard 990, the mainboard 990 can include USB interface and PBL modules.It will be understood by those skilled in the art that Fig. 6 In the smart machine structure that shows do not form restriction to smart machine, can include than illustrating more or less parts, Either combine some parts or different parts arrangement.
Each component parts of smart machine is specifically introduced with reference to Fig. 6:
AP980 is the control centre of smart machine, utilizes each portion of various interfaces and the whole smart machine of connection Point, by running or performing the software program and/or module that are stored in memory 920, and call and be stored in memory 920 Interior data, the various functions and processing data of smart machine are performed, so as to carry out integral monitoring to smart machine.Optionally, AP980 may include one or more processing units;Optionally, AP980 can integrate application processor and modem processor, its In, application processor mainly handles operating system, user interface and application program etc., and modem processor is mainly handled wirelessly Communication.It is understood that above-mentioned modem processor can not also be integrated into AP980.
In addition, memory 920 can include high-speed random access memory, nonvolatile memory, example can also be included Such as at least one disk memory, flush memory device or other volatile solid-state parts.
RF circuits 910 can be used for the reception and transmission of information.Generally, RF circuits 910 include but is not limited to antenna, at least one Individual amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned radio 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 division it is more Location (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Mainboard 990, for when downloading test, the insertion signal of the USB interface being detected, in the detection module When detecting USB insertion signal, the reseting mark position of the PBL modules is read;It is low level that flag is resetted as described in, is held Row software download flow, the charging current of software download is arranged to USB500 patterns, it is determined that software download is completed and completed During system initialization, the reseting mark position is arranged to high level;Clear flag order of the bit is received, according to the clear flag The reseting mark position is arranged to low level by order of the bit;When the detection module detects USB insertion signal again, again Software download flow is performed, the charging current of software download is arranged to USB500 patterns.
Optionally, mainboard 990, it is additionally operable to after performing software download flow again, the reseting mark position is set For high level.
Optionally, mainboard 990, will when such as needing to perform again software download after performing software download flow again The reseting mark position maintains low level.
Optionally, methods described also includes:Mainboard 990, the failure of software download flow is such as performed again, it is determined that there is event Barrier.
Optionally, methods described also includes:Mainboard 990, when performing software download failure again, establish failed download day Will, the failed download daily record include:Download the title of software, the time of download software and the reception speed for downloading software data Rate, when the detection module detects USB insertion signal again, the failed download daily record is passed through into the USB transmission to debugging Platform.
Smart machine may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of touching display screen, and proximity transducer can close touch-control and show when mobile phone is moved in one's ear Screen and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) and accelerate The size of degree, size and the direction of gravity are can detect that when static, (for example horizontal/vertical screen is cut available for the application of identification mobile phone posture Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as the gyroscope of configuration, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the COBBAIF between user and smart machine.Sound Electric signal after the voice data received conversion can be transferred to loudspeaker 961, is converted to by loudspeaker 961 by frequency circuit 960 Voice signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is received by voicefrequency circuit 960 After be converted to voice data, then after voice data is played into AP980 processing, through RF circuits 910 to be sent to such as another mobile phone, Or voice data is played to memory 920 further to handle.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 6 is shown WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for smart machine, can exist as needed completely Do not change in the essential scope of invention and omit.
Smart machine also includes the power supply 990 (such as battery or power module) to all parts power supply, optionally, power supply Can be logically contiguous with AP980 by power-supply management system, so as to by power-supply management system realize management charging, electric discharge, with And the function such as power managed.
In embodiment shown in earlier figures 3, each step method flow can based on the smart machine structure realize.
In earlier figures 4 or embodiment shown in Fig. 5, each unit function can the structure based on the smart machine realize.
As can be seen that by the embodiment of the present invention, mobile terminal is divided by the recognition sequence to different bio-identifications With different priority, and in setting time, the second application program such as started is different from the type of the first application program, Need to re-execute more bio-identification operations, avoid directly to different types of application program limit priority, influence safety The problem of property.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium is stored for electricity The computer program that subdata exchanges, it is any as described in above-mentioned embodiment of the method that the computer program make it that computer performs A kind of part or all of step for the processing method for downloading test.
The embodiment of the present invention also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer-readable recording medium of machine program, the computer program are operable to make computer perform side as described above The part or all of step of any processing method for downloading test described in method embodiment.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to alternative embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have 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, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of the unit, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, 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 can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, 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 is used as independent production marketing or use When, it can be stored in a computer-readable access to memory.Based on such understanding, technical scheme substantially or Person say the part to be contributed to prior art or the technical scheme all or part can in the form of software product body Reveal and, the computer software product is stored in a memory, including some instructions are causing a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment methods described of the present invention Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
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 To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable memory, memory It can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention is described in detail above, specific case used herein to the principle of the present invention and Embodiment is set forth, and the explanation of above example is only intended to help the method and its core concept for understanding the present invention; Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, can in specific embodiments and applications There is change part, in summary, this specification content should not be construed as limiting the invention.

Claims (11)

1. a kind of processing method for downloading test, it is characterised in that methods described comprises the following steps:
When downloading test, when detecting USB insertion signal, the reseting mark position of primary boot loader PBL modules is read;
It is low level that flag is resetted as described in, performs software download flow, the charging current of software download is arranged to USB500 patterns, it is determined that software download is completed and when completing system initialization, the reseting mark position is arranged to high level;
Clear flag order of the bit is received, the reseting mark position is arranged to low level according to the clear flag order of the bit;
When detecting USB insertion signal again, software download flow is performed again, the charging current of software download is arranged to USB500 patterns.
2. according to the method for claim 1, it is characterised in that methods described also includes:
After performing software download flow again, the reseting mark position is arranged to high level.
3. according to the method for claim 1, it is characterised in that methods described also includes:
When such as needing to perform again software download after performing software download flow again, the reseting mark position is remained low Level.
4. according to the method for claim 1, it is characterised in that methods described also includes:
As performed the failure of software download flow again, it is determined that breaking down.
5. a kind of mainboard, it is characterised in that the mainboard includes:Primary boot loader PBL modules and USB interface;
Detection module, for when downloading test, detecting the insertion signal of the USB interface;
Module for reading and writing, during insertion signal for detecting USB in the detection module, read the reset mark of the PBL modules Will position;
Processing module, it is low level for such as described flag that resets, performs software download flow, by the charging electricity of software download Stream is arranged to USB500 patterns, and it is determined that software download is completed and when completing system initialization, the reseting mark position is set For high level;
The module for reading and writing, for receiving clear flag order of the bit, according to the clear flag order of the bit by the reseting mark Position is arranged to low level;
The processing module, when being additionally operable to the detection module and detecting USB insertion signal again, software download is performed again Flow, the charging current of software download is arranged to USB500 patterns.
6. mainboard according to claim 5, it is characterised in that
The processing module, it is additionally operable to after performing software download flow again, the reseting mark position is arranged to high electricity It is flat.
7. mainboard according to claim 5, it is characterised in that
The processing module, will be described multiple when such as needing to perform again software download after performing software download flow again Bit flag position maintains low level.
8. mainboard according to claim 5, it is characterised in that methods described also includes:
The processing module, the failure of software download flow is such as performed again, it is determined that breaking down.
9. a kind of smart machine, it is characterised in that the equipment includes one or more processors, memory, transceiver and master Plate, and one or more programs, one or more of programs are stored in the memory, and are configured by described One or more processors perform, and described program includes being used to perform the step in the method as described in claim any one of 1-4 Rapid instruction.
A kind of 10. computer-readable recording medium, it is characterised in that it stores the computer program for electronic data interchange, Wherein, the computer program causes computer to perform the method as described in claim any one of 1-4.
11. a kind of computer program product, it is characterised in that the computer program product includes storing computer program Non-transient computer-readable recording medium, the computer program are operable to make computer perform such as claim 1-4 Method described in one.
CN201710773549.8A 2017-08-31 2017-08-31 Processing method for downloading test and related product Active CN107451067B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710773549.8A CN107451067B (en) 2017-08-31 2017-08-31 Processing method for downloading test and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710773549.8A CN107451067B (en) 2017-08-31 2017-08-31 Processing method for downloading test and related product

Publications (2)

Publication Number Publication Date
CN107451067A true CN107451067A (en) 2017-12-08
CN107451067B CN107451067B (en) 2020-12-08

Family

ID=60494851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710773549.8A Active CN107451067B (en) 2017-08-31 2017-08-31 Processing method for downloading test and related product

Country Status (1)

Country Link
CN (1) CN107451067B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608923A (en) * 2017-09-20 2018-01-19 广东欧珀移动通信有限公司 The processing method and Related product of test
CN110366040A (en) * 2019-07-26 2019-10-22 Tcl王牌电器(惠州)有限公司 TV factory reset method, apparatus, computer readable storage medium and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103219556A (en) * 2013-04-01 2013-07-24 广东欧珀移动通信有限公司 Method and system for charging mobile terminal
CN104167789A (en) * 2014-08-12 2014-11-26 Tcl通讯(宁波)有限公司 Method and system for setting charging current in USB data transmission of mobile terminal
CN105786145A (en) * 2016-02-25 2016-07-20 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
WO2016188167A1 (en) * 2015-12-14 2016-12-01 中兴通讯股份有限公司 Charging method, apparatus and terminal for universal serial bus (usb)
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103219556A (en) * 2013-04-01 2013-07-24 广东欧珀移动通信有限公司 Method and system for charging mobile terminal
CN104167789A (en) * 2014-08-12 2014-11-26 Tcl通讯(宁波)有限公司 Method and system for setting charging current in USB data transmission of mobile terminal
WO2016188167A1 (en) * 2015-12-14 2016-12-01 中兴通讯股份有限公司 Charging method, apparatus and terminal for universal serial bus (usb)
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

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608923A (en) * 2017-09-20 2018-01-19 广东欧珀移动通信有限公司 The processing method and Related product of test
CN110366040A (en) * 2019-07-26 2019-10-22 Tcl王牌电器(惠州)有限公司 TV factory reset method, apparatus, computer readable storage medium and system
CN110366040B (en) * 2019-07-26 2023-01-20 Tcl王牌电器(惠州)有限公司 Television delivery resetting method and device, computer readable storage medium and system

Also Published As

Publication number Publication date
CN107451067B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
CN103327102B (en) A kind of method and apparatus recommending application program
CN107273160A (en) A kind of method and device of edition upgrading
CN106020987A (en) Method and device for determining kernel running configurations in processor
CN106502906B (en) A kind of method and apparatus of test application program
CN106066686B (en) A kind of information processing method and terminal device
CN108242837A (en) The method of the charging of electronic equipment and control electronics
CN103810004B (en) Method and device for upgrading embedded system as well as equipment
CN106227588A (en) The creation method of a kind of multi-instance object, device and mobile terminal
CN107613126A (en) UART and USB multiplex circuits and mobile terminal
CN107678989A (en) UART and USB multiplex circuits and mobile terminal
CN107635069B (en) UART and USB multiplex circuit and mobile terminal
CN106354458A (en) Double-screen display method and device
CN106484326B (en) A kind of data transmission processing method and mobile terminal
CN108647160A (en) USB force downloads circuit, mobile terminal, method for down loading and data line
CN107222914A (en) Application control method and related product
CN107092505A (en) The erecting device and method of a kind of application program, storage medium, terminal
CN106775828A (en) Application program installation method and device, computer equipment
CN106170034A (en) A kind of sound effect treatment method and mobile terminal
CN106534288A (en) Data transmission method and mobile terminal
CN106294108A (en) Applied program testing method and device
CN106484771A (en) Different information file generated and application process, device
CN107608923A (en) The processing method and Related product of test
CN107451067A (en) Download the processing method and Related product of test
CN106973138A (en) A kind of control method of mobile terminal, device and mobile terminal
CN106980554A (en) A kind of process handling method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
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