CN112084077B - USB equipment aging test method and device, medium and USB equipment - Google Patents

USB equipment aging test method and device, medium and USB equipment Download PDF

Info

Publication number
CN112084077B
CN112084077B CN202010879974.7A CN202010879974A CN112084077B CN 112084077 B CN112084077 B CN 112084077B CN 202010879974 A CN202010879974 A CN 202010879974A CN 112084077 B CN112084077 B CN 112084077B
Authority
CN
China
Prior art keywords
usb
equipment
aging test
usb device
aging
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
CN202010879974.7A
Other languages
Chinese (zh)
Other versions
CN112084077A (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202010879974.7A priority Critical patent/CN112084077B/en
Publication of CN112084077A publication Critical patent/CN112084077A/en
Application granted granted Critical
Publication of CN112084077B publication Critical patent/CN112084077B/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the application provides a method, a device and a medium for aging test of USB equipment and the USB equipment, wherein the method comprises the following steps: after the USB equipment is connected with the peripheral equipment, monitoring whether the USB equipment receives an equipment descriptor request instruction or not; when the USB equipment does not receive the equipment descriptor instruction, the accessed peripheral equipment is power supply equipment such as a power adapter, and whether an aging completion mark exists in the USB equipment is judged; when the aging completion identification does not exist in the USB equipment, according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed. The application can simulate the work of the USB equipment to carry out the aging test without connecting with the host equipment, can prevent the aging test from being triggered in the using stage of a user, has convenient, quick and reliable test and saves the cost.

Description

USB equipment aging test method and device, medium and USB equipment
Technical Field
The embodiment of the application relates to the field of equipment aging test, in particular to an aging test method and device for USB equipment, a medium and the USB equipment.
Background
The USB camera is an electronic device commonly used in daily life, and in order to ensure the normal operation of the USB camera, it is necessary to perform an aging test on the USB camera. The aging test is a process of simulating various factors involved in the actual use condition of the product to perform corresponding condition reinforcing experiments on the aging condition of the product. When the USB camera is subjected to aging test in the conventional technology, the USB camera is connected with a power supply through a power adapter, whether the USB camera can be started or not is judged, and whether the USB camera passes the aging test is judged. Or in some technologies, the USB camera is connected with the host device, and then whether the USB camera can work normally is tested through the host device. In the process of realizing the invention, the inventor finds that the aging test method performed by the power adapter can not judge whether the USB camera can work normally, for example, whether the USB camera can transmit audio and video data or not can not be judged, and the reliability of the aging test result is poor; the method for performing the aging test on the USB cameras by connecting the host equipment has the advantages that each USB camera is required to be connected with the host equipment, the aging test efficiency is low, and the cost is high.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a burn-in test method and device for USB equipment, a medium and the USB equipment, and the burn-in test method and device have the advantages of convenience, rapidness and reliability.
According to a first aspect of an embodiment of the present application, there is provided a burn-in test method for a USB device, including the steps of:
After the USB equipment is connected with the peripheral equipment, monitoring whether the USB equipment receives an equipment descriptor request instruction or not; the device descriptor request instruction is sent to the USB device by the host device through a UVC protocol interface; each of the USB devices has and has only one device descriptor;
Judging whether an aging completion mark exists in the USB equipment or not when the USB equipment does not receive an equipment descriptor request instruction;
Triggering an aging test instruction when the aging completion mark does not exist in the USB equipment; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
According to a second aspect of an embodiment of the present application, there is provided a burn-in test apparatus for a USB device, including:
the monitoring module is used for monitoring whether the USB equipment receives an equipment descriptor request instruction after the USB equipment is connected with the peripheral equipment; the device descriptor request instruction is sent to the USB device by the host device through a UVC protocol interface; each of the USB devices has and has only one device descriptor;
The identification judging module is used for judging whether an aging completion identification exists in the USB equipment or not when the USB equipment does not receive the equipment descriptor request instruction;
the test module is used for triggering an aging test instruction when the aging completion mark does not exist in the USB equipment; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
According to a third aspect of an embodiment of the present application, there is provided an electronic apparatus including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the burn-in test method of a USB device according to any one of the above.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of burn-in testing a USB device as described in any one of the above.
According to the embodiment of the application, whether the USB equipment receives the equipment descriptor request instruction is monitored, so that whether the peripheral equipment accessed by the USB equipment is host equipment or power supply equipment used for connecting a power supply or providing power by the USB equipment is judged, whether the USB equipment is in an aging test stage or a user use stage is further judged by judging whether an aging completion mark exists, and therefore, whether the accessed peripheral equipment is the power supply equipment used for connecting the power supply or providing power by the USB equipment can continuously acquire audio and video data of the USB equipment in the aging test stage is judged, and whether the USB equipment can pass the aging test is further judged, so that the operation of the USB equipment can be simulated to perform the aging test without connecting the host equipment, the aging test can be prevented from being triggered in the user use stage, the test is convenient, quick and reliable, and the cost is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
For a better understanding and implementation, the present invention is described in detail below with reference to the drawings.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a burn-in test method for a USB device according to an embodiment of the present application;
FIG. 2 is a schematic block diagram of a burn-in test apparatus for a USB device according to an embodiment of the present application;
Fig. 3 is a schematic block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application as detailed in the accompanying claims.
In the description of the present application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination". Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The application environment of the aging test method of the USB device includes the USB device, where the USB device may be a device supporting UVC (USB Video Class, simply referred to as UVC, which is a device of a protocol standard protocol defined for a USB Video capturing device), for example, may be a device such as a USB camera, a digital camera, an analog image converter, a television stick, and a still image camera, and in an exemplary embodiment of the present application, the USB device is a USB camera. The USB equipment comprises an audio and video data acquisition unit, a data converter, a processor and the like, wherein the audio and video data acquisition unit acquires audio and video data and then transmits the audio and video data to the data converter, and the data converter converts the audio and video data into data readable by the processor and then transmits the data to the processor. The processor may include one or more processing cores, which may implement the aging test method of the USB device of the present application by using a pure software manner, or may implement the aging test method of the USB device of the present application by using a combination of software and hardware, for example, may be implemented in at least one hardware form of digital signal processing, field programmable gate array, and programmable logic array; one or a combination of several of a central processor, an image processor, a modem, etc. may be integrated. The USB device may be running an application for the burn-in method of the USB device, which may be in a form adapted to the electronic device, for example an APP application, and in some examples may also be in a form such as a system plug-in, a web plug-in, etc.
Example 1
The embodiment of the application discloses a burn-in test method of USB equipment, which is applied to the USB equipment, wherein the USB equipment is a USB camera in the embodiment of the application. The embodiment of the application triggers the aging test through the USB equipment, specifically, judges whether the accessed peripheral equipment is host equipment or a power adapter used for connecting a power supply or power supply equipment capable of providing power by the USB equipment, and judges whether an aging completion mark exists, thereby judging whether the current USB equipment is in an aging test stage or a user use stage, and further, the aging test is carried out in the aging test stage, so that the operation of the USB equipment can be simulated to carry out the aging test without connecting the host equipment, the aging test can be prevented from being triggered in the user use stage, and the reliability of the aging test is improved.
The following describes in detail a method for testing aging of a USB device according to an embodiment of the present application with reference to fig. 1.
The aging test method of the USB equipment comprises the following steps:
step S101: after the USB equipment is connected with the peripheral equipment, whether the USB equipment receives an equipment descriptor request instruction or not is monitored.
In general, the peripheral device to which the USB device is connected is typically a host device for information interaction with the USB device, or a power adapter for connecting a power supply or a power supply device that can supply power itself. The UVC (USB Video Class, UVC for short) protocol is a protocol standard defined for USB Video capture devices. The USB device may be a device supporting UVC protocol, for example, a device such as a camera, a digital camera, an analog image converter, a tv stick, and a still camera, and in an exemplary embodiment of the present application, the USB device is a USB camera. The USB device and the host device such as a computer, a tablet and the like realize information interaction through a UVC protocol, and specifically, the UVC-supported device can be normally used in the host device without installing any driving program by providing UVC driving in the host device. When the USB equipment is connected with the host equipment, the host equipment sends an equipment descriptor request instruction to the equipment descriptor through a UVC protocol interface of the USB equipment, and after receiving the equipment descriptor request instruction, the USB equipment calls the UVC protocol interface of the USB equipment to transmit the equipment descriptor to the host equipment in a continuous data stream mode. The device descriptor includes information that plays a role in the USB device and in the USB device configuration, specifically, the device descriptor includes a manufacturer identification number ID, a product serial number, a class number of the device, a maximum packet length of a default endpoint, and the number of configuration descriptors, etc. A USB device must have and only one device descriptor. In the exemplary embodiment of the present application, by determining whether the USB device receives the device descriptor request instruction, a peripheral device host device connected to the USB device is determined, or a power adapter for connecting a power source or a power supply device capable of providing power itself, and specifically, if the USB device receives the device descriptor request instruction, the peripheral device connected to the USB device is the host device, and at this time, the USB device determines that the USB device is in a user use stage; if the USB device does not receive the device descriptor request instruction, the peripheral device connected with the USB device is a power adapter for connecting a power supply or a power supply device capable of providing power, and at the moment, the USB device judges that the USB device is in a user use stage or an aging test stage and needs to further judge and distinguish.
In an exemplary embodiment of the present application, after the USB device is connected to the peripheral device, information that the USB device is booted is displayed, or information that the USB device cannot be booted is displayed. When the aging test is performed on the USB device, the USB device is connected with a power supply through the power adapter, if the USB device is started normally, the hardware of the USB device is normal, if the USB device cannot be started normally, the hardware of the USB device is abnormal, and at the moment, a tester can quickly judge whether the hardware of the USB device is normal or not. Further, an indicator light for identifying the aging test state may be provided in the USB device; the step of displaying the information started by the USB equipment comprises the following steps: the indicator light is on; the step of displaying the information that the USB equipment cannot be started is as follows: the indicator light is not on.
Step S102: and when the USB equipment does not receive the equipment descriptor request instruction, judging whether an aging completion mark exists in the USB equipment.
When the UVC protocol interface of the USB device is not called, the peripheral device connected with the USB device is not host device, but a power adapter used for connecting a power supply or a power supply device capable of providing electric energy, at the moment, the USB device judges that the USB device is in a user use stage or an aging test stage, and further the USB device needs to further judge whether an aging completion mark exists in the USB device or not so as to determine the current state. In the embodiment of the application, if the aging completion identifier exists in the USB device, the USB device is indicated to pass the aging test, and the USB device is in the use stage of the user at the moment, so that the aging test does not need to be triggered; if the aging completion identifier does not exist in the USB device, the USB device is indicated to be subjected to aging test, and the aging test needs to be triggered when the USB device is in the aging test stage. In the embodiment of the present application, the aging completion identifier may be a character formed by a number, a letter, or a combination of the two, or may be a file, or the aging completion identifier is a specific numerical value, for example, if the aging completion identifier is laohuaceshi identifiers, when laohuaceshi is equal to 1, the aging completion identifier is present, and when laohuaceshi is equal to 0, the aging completion identifier is not present.
Step S103: triggering an aging test instruction when the aging completion mark does not exist in the USB equipment; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
In the embodiment of the application, the aging test file is stored in the USB equipment, and when the aging completion identifier does not exist in the USB equipment, the USB equipment is indicated to be in the aging test stage, at the moment, an aging test instruction is triggered, and the aging test work is executed by calling the aging test file.
In an exemplary embodiment of the present application, the USB device is a USB camera, and the USB camera includes an audio/video data collector, a data converter, a processor, and the like, where the audio/video data collector collects audio/video data and transmits the audio/video data to the data converter, and the data converter converts the audio/video data into data readable by the processor and transmits the data to the processor. According to the aging test instruction, the processor acquires the audio and video data converted by the data converter, when the processor can continuously acquire the converted audio and video data from the data converter within the preset aging test time, the processor displays the information that the aging test passes, and when the processor cannot continuously acquire the converted audio and video data from the data converter within the preset aging test time, the processor displays the information that the aging test fails.
According to the embodiment of the application, whether the USB equipment receives the equipment descriptor request instruction is monitored, so that whether the peripheral equipment accessed by the USB equipment is host equipment or power supply equipment used for connecting a power supply or providing power by the USB equipment is judged, whether the USB equipment is in an aging test stage or a user use stage is further judged by judging whether an aging completion mark exists, and therefore, whether the accessed peripheral equipment is the power supply equipment used for connecting the power supply or providing power by the USB equipment can continuously acquire audio and video data of the USB equipment in the aging test stage is judged, and whether the USB equipment can pass the aging test is further judged, so that the operation of the USB equipment can be simulated to perform the aging test without connecting the host equipment, the aging test can be prevented from being triggered in the user use stage, the test is convenient, quick and reliable, and the cost is saved.
The aging test method of the USB device of the exemplary embodiment of the application further comprises the following steps: and when the USB equipment receives the equipment descriptor request instruction, keeping the USB equipment to normally operate. When the USB equipment receives the equipment descriptor request instruction, the peripheral equipment connected with the USB equipment is indicated to be host equipment, and at the moment, the normal information interaction between the USB equipment and the host equipment is maintained by keeping the normal operation of the USB equipment.
The aging test method of the USB device of the exemplary embodiment of the application further comprises the following steps: and when the USB equipment does not receive the equipment descriptor request instruction, but the aging completion identifier exists in the USB equipment, keeping the USB equipment to normally operate. When the UVC protocol interface of the USB equipment is not called, the accessed peripheral equipment is a power supply equipment which is used for connecting a power supply adapter or can provide power per se, but the USB equipment has an aging completion mark, the USB equipment is indicated to have undergone an aging test, and the USB equipment is used for a user at the moment, so that the USB equipment is kept to operate normally, and the user can use the USB equipment normally.
In the aging test method for a USB device according to the exemplary embodiment of the present application, after the step of displaying the information passed by the aging test, the method further includes the following steps: and writing an aging completion identification in the USB device. By writing the aging completion identification in the USB device, the UVC protocol interface of the USB device is not called, and the USB device is connected with a power adapter for connecting a power supply or a power supply device capable of providing electric energy, so that the USB device cannot enter an aging test mode and can be normally used.
In an exemplary embodiment of the present application, the USB device is provided with an indicator for identifying an aging test status; the step of displaying the information that the aging test passes is as follows: the indicator lamp is normally on; the step of displaying the information that the aging test does not pass is as follows: the indicator light is extinguished. The aging test state is indicated by the setting indicator lamp, so that a tester can intuitively and conveniently acquire the aging test result of the USB equipment.
Example 2
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 2, a schematic structural diagram of an aging test apparatus for a USB device according to an embodiment of the present application is shown. The burn-in test device 200 of the USB device is applied to the USB device. The aging test device of the USB equipment can realize the aging test method of the USB equipment through software, hardware or the combination of the software and the hardware. Specifically, the burn-in test apparatus 200 for a USB device according to an exemplary embodiment of the present application includes:
and the monitoring module 201 is configured to monitor whether the USB device receives a device descriptor request instruction after the USB device connects to a peripheral device.
The identifier judging module 202 is configured to judge whether an aging completion identifier exists in the USB device when the USB device does not receive the device descriptor request instruction.
The test module 203 is configured to trigger an aging test instruction when the aging completion identifier does not exist in the USB device; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
According to the embodiment of the application, whether the USB equipment receives the equipment descriptor request instruction is monitored, so that whether the peripheral equipment accessed by the USB equipment is host equipment or power supply equipment used for connecting a power supply or providing power by the USB equipment is judged, whether the USB equipment is in an aging test stage or a user use stage is further judged by judging whether an aging completion mark exists, and therefore, whether the accessed peripheral equipment is the power supply equipment used for connecting the power supply or providing power by the USB equipment can continuously acquire audio and video data of the USB equipment in the aging test stage is judged, and whether the USB equipment can pass the aging test is further judged, so that the operation of the USB equipment can be simulated to perform the aging test without connecting the host equipment, the aging test can be prevented from being triggered in the user use stage, the test is convenient, quick and reliable, and the cost is saved.
The aging test device for the USB device of the exemplary embodiment of the application further comprises a display module (not shown in the figure), wherein the display module is used for displaying the starting information of the USB device or the starting incapability information of the USB device. When the aging test is performed on the USB device, the USB device is connected with a power supply through the power adapter, if the USB device is started normally, the hardware of the USB device is normal, if the USB device cannot be started normally, the hardware of the USB device is abnormal, and at the moment, a tester can quickly judge whether the hardware of the USB device is normal or not. Further, the display module is an indicator lamp; and when the indicating lamp is on, indicating the starting of the USB equipment. And when the indicator light is not on, indicating that the USB equipment cannot be started. Further, the USB equipment aging test is indicated when the indicator lamp is normally on, and the USB equipment aging test is indicated not to pass when the indicator lamp is off, so that a tester can intuitively and conveniently obtain the aging test result of the USB equipment.
The burn-in test apparatus 200 for a USB device according to an exemplary embodiment of the present application further includes an operation maintaining module (not shown in the figure), where the operation maintaining module is configured to maintain a normal operation of the USB device when the USB device does not receive the device descriptor request instruction, but there is a burn-in completion identifier in the USB device. When the UVC protocol interface of the USB equipment is not called, the accessed peripheral equipment is a power supply equipment which is used for connecting a power supply adapter or can provide power per se, but when an aging completion mark exists in the USB equipment, the USB equipment is indicated to have been subjected to aging test, at the moment, the accessed peripheral equipment of the USB equipment is the USB equipment which is used by a user, and at the moment, the USB equipment is kept to operate normally, so that the user can use the USB equipment normally.
The burn-in test apparatus 200 for a USB device according to an exemplary embodiment of the present application further includes a burn-in completion identification writing module (not shown in the figure) for writing a burn-in completion identification in the USB device after displaying information that the burn-in test passed. By writing the aging completion identification in the USB device, the UVC protocol interface of the USB device is not called, and the USB device is connected with a power adapter for connecting a power supply or a power supply device capable of providing electric energy, so that the USB device cannot enter an aging test mode and can be normally used.
Example 3
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 3, the present application further provides a USB device 300, where the USB device 300 may be a device supporting UVC (USB Video Class, simply referred to as UVC, which is a protocol standard protocol defined for a USB Video capturing device), for example, may be a USB camera, a digital camera, an analog Video converter, a television stick, a still Video camera, etc., and in an exemplary embodiment of the present application, the USB device 300 is a USB camera. The USB device 300 may include: at least one processor 301, at least one memory 302, at least one audio-visual data collector 303, and at least one data converter 304. The audio/video data collector 303 collects audio/video data and transmits the audio/video data to the data converter 304, and the data converter 304 converts the audio/video data into data readable by the processor 301 and transmits the data to the processor 301.
Wherein the processor 301 may comprise one or more processing cores. The processor 301 utilizes various interfaces and lines to connect various portions of the overall electronic device 300, perform various functions of the electronic device 300, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 302, and invoking data stored in the memory 302. Alternatively, the processor 301 may be implemented in at least one hardware form of digital signal Processing (DIGITAL SIGNAL Processing, DSP), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 301 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 301 and may be implemented by a single chip.
The Memory 302 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 302 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 302 may also optionally be at least one storage device located remotely from the aforementioned processor 301. As shown in fig. 3, an operating system, a network communication module, a user may be included in memory 302, which is a type of computer storage medium.
The processor 301 may be used for an application program that invokes the burn-in test method of the USB device stored in the memory 302, and specifically performs the following operations: after the USB equipment is connected with the peripheral equipment, monitoring whether the USB equipment receives an equipment descriptor request instruction or not; judging whether an aging completion mark exists in the USB equipment or not when the USB equipment does not receive an equipment descriptor request instruction; triggering an aging test instruction when the aging completion mark does not exist in the USB equipment; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
According to the embodiment of the application, whether the USB equipment receives the equipment descriptor request instruction is monitored, so that whether the peripheral equipment accessed by the USB equipment is host equipment or power supply equipment used for connecting a power supply or providing power by the USB equipment is judged, whether the USB equipment is in an aging test stage or a user use stage is further judged by judging whether an aging completion mark exists, and therefore, whether the accessed peripheral equipment is the power supply equipment used for connecting the power supply or providing power by the USB equipment can continuously acquire audio and video data of the USB equipment in the aging test stage is judged, and whether the USB equipment can pass the aging test is further judged, so that the operation of the USB equipment can be simulated to perform the aging test without connecting the host equipment, the aging test can be prevented from being triggered in the user use stage, the test is convenient, quick and reliable, and the cost is saved.
The processor 301 may be used for an application program that invokes the burn-in test method of the USB device stored in the memory 302, and specifically performs the following operations: displaying the information that the USB device is started or displaying the information that the USB device cannot be started. When the aging test is performed on the USB device, the USB device is connected with a power supply through the power adapter, if the USB device is started normally, the hardware of the USB device is normal, if the USB device cannot be started normally, the hardware of the USB device is abnormal, and at the moment, a tester can quickly judge whether the hardware of the USB device is normal or not.
In an exemplary embodiment of the present application, the USB device 300 further includes an indicator light 305, where the indicator light 305 is connected to the processor 301, and the processor 301 indicates that the USB device cannot be started by controlling the indicator light 305 to light up, and the processor 301 indicates that the USB device cannot be started by controlling the indicator light 305 to not light up. Further, the processor 301 indicates the aging test of the USB device by controlling the indicator light 305 to be on, and the processor 301 indicates the aging test of the USB device to not pass by controlling the indicator light 305 to be off, so that a tester can intuitively and conveniently obtain the aging test result of the USB device.
The processor 301 may be used for an application program that invokes the burn-in test method of the USB device stored in the memory 302, and specifically performs the following operations: and when the USB equipment does not receive the equipment descriptor request instruction, but the aging completion identifier exists in the USB equipment, keeping the USB equipment to normally operate. When the UVC protocol interface of the USB equipment is not called, the accessed peripheral equipment is a power supply equipment which is used for connecting a power supply adapter or can provide power per se, but when an aging completion mark exists in the USB equipment, the USB equipment is indicated to have been subjected to aging test, at the moment, the accessed peripheral equipment of the USB equipment is the USB equipment which is used by a user, and at the moment, the USB equipment is kept to operate normally, so that the user can use the USB equipment normally.
The processor 301 may be used for an application program that invokes the burn-in test method of the USB device stored in the memory 302, and specifically performs the following operations: after the information that the burn-in test passes is displayed, a burn-in completion identification is written in the USB device. By writing the aging completion identification in the USB device, the UVC protocol interface of the USB device is not called, and the USB device is connected with a power adapter for connecting a power supply or a power supply device capable of providing electric energy, so that the USB device cannot enter an aging test mode and can be normally used.
Example 4
The present application also provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the above-described embodiment, and the specific execution process may refer to the specific description shown in embodiment 1, which is not repeated herein. The storage medium can be an electronic device such as a personal computer, a notebook computer, a smart phone, a tablet personal computer and the like.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (media), such as modulated data signals and carrier waves
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. The aging test method for the USB equipment is characterized by comprising the following steps of:
After the USB equipment is connected with the peripheral equipment, monitoring whether the USB equipment receives an equipment descriptor request instruction or not; the device descriptor request instruction is sent to the USB device by the host device through a UVC protocol interface; each of the USB devices has and has only one device descriptor;
Judging whether an aging completion mark exists in the USB equipment or not when the USB equipment does not receive an equipment descriptor request instruction;
Triggering an aging test instruction when the aging completion mark does not exist in the USB equipment; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
2. The burn-in method of a USB device of claim 1, wherein after the step of displaying information that the burn-in test passed, further comprising:
and writing an aging completion identification in the USB device.
3. The burn-in method of a USB device of claim 1, wherein the USB device is maintained in normal operation when the USB device receives a device descriptor request command.
4. The burn-in method of a USB device of claim 1, wherein when the USB device does not receive a device descriptor request command, but there is a burn-in completion flag in the USB device, the USB device is kept operating normally.
5. The burn-in method of a USB device according to any one of claims 1 to 4, wherein the USB device is provided with an indicator light for identifying a burn-in status; the step of displaying the information that the aging test passes is as follows: the indicator lamp is normally on; the step of displaying the information that the aging test does not pass is as follows: the indicator light is extinguished.
6. The burn-in method of claim 5, wherein after the USB device is connected to the peripheral device, displaying information that the USB device is activated or displaying information that the USB device is not activated.
7. The burn-in method of a USB device of claim 6, wherein said step of displaying information for USB device activation comprises: the indicator lamp is turned on; the step of displaying the information that the USB equipment cannot be started is as follows: the indicator light is not on.
8. A burn-in apparatus for a USB device, comprising:
the monitoring module is used for monitoring whether the USB equipment receives an equipment descriptor request instruction after the USB equipment is connected with the peripheral equipment; the device descriptor request instruction is sent to the USB device by the host device through a UVC protocol interface; each of the USB devices has and has only one device descriptor;
The identification judging module is used for judging whether an aging completion identification exists in the USB equipment or not when the USB equipment does not receive the equipment descriptor request instruction;
the test module is used for triggering an aging test instruction when the aging completion mark does not exist in the USB equipment; according to the aging test instruction, when the audio and video data of the USB equipment can be continuously acquired within the preset aging test time, information that the aging test passes is displayed, and when the audio and video data of the USB equipment cannot be continuously acquired within the preset aging test time, information that the aging test does not pass is displayed.
9. A USB device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform a burn-in test method of a USB device according to any one of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of burn-in testing a USB device according to any one of claims 1 to 7.
CN202010879974.7A 2020-08-27 2020-08-27 USB equipment aging test method and device, medium and USB equipment Active CN112084077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010879974.7A CN112084077B (en) 2020-08-27 2020-08-27 USB equipment aging test method and device, medium and USB equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010879974.7A CN112084077B (en) 2020-08-27 2020-08-27 USB equipment aging test method and device, medium and USB equipment

Publications (2)

Publication Number Publication Date
CN112084077A CN112084077A (en) 2020-12-15
CN112084077B true CN112084077B (en) 2024-06-04

Family

ID=73728073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010879974.7A Active CN112084077B (en) 2020-08-27 2020-08-27 USB equipment aging test method and device, medium and USB equipment

Country Status (1)

Country Link
CN (1) CN112084077B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810684B (en) * 2021-08-06 2024-04-16 东莞市金锐显数码科技有限公司 Method and device for starting aging test

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105870679A (en) * 2016-03-23 2016-08-17 广东欧珀移动通信有限公司 Universal serial bus (USB) connection line and battery detection system
CN205594145U (en) * 2016-04-08 2016-09-21 厦门盈趣科技股份有限公司 USB input power type detection circuitry
CN108566550A (en) * 2018-07-03 2018-09-21 广州视源电子科技股份有限公司 Ageing testing method, device and electronic equipment
CN109361568A (en) * 2018-11-21 2019-02-19 杭州迪普科技股份有限公司 The ageing testing method and device of the network equipment
CN110851308A (en) * 2019-10-21 2020-02-28 香港乐蜜有限公司 Test method, test device, electronic equipment and storage medium
CN111427732A (en) * 2020-03-12 2020-07-17 东莞市金锐显数码科技有限公司 Aging test method, aging test device, terminal and computer-readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105870679A (en) * 2016-03-23 2016-08-17 广东欧珀移动通信有限公司 Universal serial bus (USB) connection line and battery detection system
CN205594145U (en) * 2016-04-08 2016-09-21 厦门盈趣科技股份有限公司 USB input power type detection circuitry
CN108566550A (en) * 2018-07-03 2018-09-21 广州视源电子科技股份有限公司 Ageing testing method, device and electronic equipment
CN109361568A (en) * 2018-11-21 2019-02-19 杭州迪普科技股份有限公司 The ageing testing method and device of the network equipment
CN110851308A (en) * 2019-10-21 2020-02-28 香港乐蜜有限公司 Test method, test device, electronic equipment and storage medium
CN111427732A (en) * 2020-03-12 2020-07-17 东莞市金锐显数码科技有限公司 Aging test method, aging test device, terminal and computer-readable storage medium

Also Published As

Publication number Publication date
CN112084077A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN110162343B (en) Application starting method and device, electronic equipment and storage medium
TWI510913B (en) Testing device and testing method thereof
CN106331975B (en) Fault detection method, device and system for intelligent voice interaction equipment
CN111478798B (en) Fault processing method, fault processing device and storage medium
KR20190021562A (en) Electronic device for displaying application andoperating method thereof
CN111190825A (en) Automatic test method, system and robot
CN112054822B (en) Bluetooth test method and device, electronic equipment and storage medium
CN115547396B (en) Test method and device for eMMC
CN112084077B (en) USB equipment aging test method and device, medium and USB equipment
CN109246423B (en) VR equipment and VR equipment detection method
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN110865920B (en) Startup exception processing method and device, electronic equipment and storage medium
CN111090553B (en) Test system, test method and test device
CN106708705B (en) Terminal background process monitoring method and system
CN113221593A (en) Two-dimensional code information acquisition method, electronic device and storage medium
CN108810525A (en) A kind of combined Intelligent set top box volume production test method and system
CN109739756B (en) Method and equipment for testing application of mobile terminal
CN114398296B (en) Method and terminal equipment for problem location
CN115576737A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium
CN110647433A (en) Function self-checking method and device and computer readable storage medium
CN109522223B (en) Automatic test method and system for vehicle-mounted Android multimedia host
CN112631812A (en) Identification setting method and device, electronic equipment and storage medium
CN111651308A (en) Method and device for acquiring debugging data of DP-to-HDMI chip and intelligent device
CN111339380A (en) Interface time-consuming data processing method and related device
US20140049649A1 (en) Portable device and signal converting method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant