[go: up one dir, main page]

CN110502382B - TYPE-C interface testing method and device, storage medium and electronic equipment - Google Patents

TYPE-C interface testing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110502382B
CN110502382B CN201910789933.6A CN201910789933A CN110502382B CN 110502382 B CN110502382 B CN 110502382B CN 201910789933 A CN201910789933 A CN 201910789933A CN 110502382 B CN110502382 B CN 110502382B
Authority
CN
China
Prior art keywords
pin
determining
type
otg
initial
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
CN201910789933.6A
Other languages
Chinese (zh)
Other versions
CN110502382A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910789933.6A priority Critical patent/CN110502382B/en
Publication of CN110502382A publication Critical patent/CN110502382A/en
Application granted granted Critical
Publication of CN110502382B publication Critical patent/CN110502382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/267Reconfiguring circuits for testing, e.g. LSSD, partitioning
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The application provides a TYPE-C interface testing method, a TYPE-C interface testing device, a storage medium and electronic equipment, wherein the method comprises the steps of determining an initial pin when OTG equipment is inserted into the electronic equipment in a first direction; when the OTG equipment is inserted into the electronic equipment in the second direction, determining a target pin; and performing fool-proof test on the TYPE-C interface according to the initial pin and the target pin. Through this application can effectively avoid artifical discernment error to the tow sides of OTG equipment, promote the test precision of TYPE-C socket function, promote test effect.

Description

TYPE-C interface testing method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a TYPE-C interface testing method and apparatus, a storage medium, and an electronic device.
Background
With the development of electronic devices, more and more electronic devices start to use a Universal Serial Bus (USB) TYPE-C socket, and pins of the TYPE-C socket are generally tested during the manufacturing process of the electronic devices.
In the related art, when testing the pin of the TYPE-C socket, a tester generally inserts the OTG device into the TYPE-C socket of the electronic device, and software in the electronic device tests whether to identify the pin of the corresponding TYPE-C socket, and then the tester manually turns over the OTG device and reversely inserts the OTG device into the TYPE-C socket of the electronic device, and the software in the electronic device tests whether to identify the pin of the corresponding TYPE-C socket for the OTG device on the other side, and identifies whether the TYPE-C socket function of the electronic device is normal through the twice judgment process.
Under this kind of mode, distinguish the tow sides of OTG equipment by the manual work and carry out TYPE-C socket function test, can't effectively avoid the artifical discernment error to the tow sides of OTG equipment, lead to TYPE-C socket function's test not accurate enough, the test effect is not good.
Disclosure of Invention
The present application is directed to solving, at least in part, one of the technical problems in the related art.
Therefore, the aim of the application is to provide a TYPE-C interface testing method, a TYPE-C interface testing device, a storage medium and an electronic device, which can effectively avoid manual identification errors on the front side and the back side of an OTG device, improve the testing accuracy of the function of the TYPE-C socket and improve the testing effect.
To achieve the above object, a TYPE-C interface testing method provided in an embodiment of the first aspect of the present application includes: when the OTG equipment is inserted into the electronic equipment in a first direction, determining an initial pin; when the OTG equipment is inserted into the electronic equipment in a second direction, determining a target pin; and performing fool-proof test on the TYPE-C interface according to the initial pin and the target pin.
According to the TYPE-C interface testing method provided by the embodiment of the first aspect of the application, the initial pin is determined when the OTG equipment is inserted into the electronic equipment in the first direction, the target pin is determined when the OTG equipment is inserted into the electronic equipment in the second direction, and the TYPE-C interface is subjected to foolproof testing according to the initial pin and the target pin, so that the manual identification errors on the front side and the back side of the OTG equipment can be effectively avoided, the testing accuracy of the function of the TYPE-C socket is improved, and the testing effect is improved.
In order to achieve the above object, an embodiment of a second aspect of the present application provides a TYPE-C interface testing apparatus, including: the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining an initial pin when the OTG equipment is inserted into the electronic equipment in a first direction; the second determining module is used for determining a target pin when the OTG equipment is inserted into the electronic equipment in a second direction; and the testing module is used for performing fool-proof testing on the TYPE-C interface according to the initial pin and the target pin.
The TYPE-C interface testing arrangement that this application second aspect embodiment provided, through when inserting electronic equipment with the OTG equipment with the first direction, confirm initial pin, and when inserting electronic equipment with the OTG equipment with the second direction, confirm target pin, and according to initial pin and target pin, prevent slow-witted test to TYPE-C interface, can effectively avoid artifical discernment error to the OTG equipment tow sides, promote the test precision of TYPE-C socket function, promote test effect.
To achieve the above object, a computer-readable storage medium is provided in an embodiment of the present application, where instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform a TYPE-C interface testing method, the method including: the embodiment of the first aspect of the application provides a TYPE-C interface testing method.
According to the computer readable storage medium provided by the embodiment of the third aspect of the application, the initial pin is determined when the OTG device is inserted into the electronic device in the first direction, the target pin is determined when the OTG device is inserted into the electronic device in the second direction, and the TYPE-C interface is subjected to fool-proof test according to the initial pin and the target pin, so that the manual identification errors on the front side and the back side of the OTG device can be effectively avoided, the test accuracy of the function of the TYPE-C socket is improved, and the test effect is improved.
In order to achieve the above object, an electronic device according to an embodiment of a fourth aspect of the present application includes a housing, a processor, a memory, a circuit board, a power circuit, and a TYPE-C interface, where the circuit board is disposed inside a space enclosed by the housing, and the processor, the memory, and the TYPE-C interface are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes, and the processor runs programs corresponding to the executable program codes by reading the executable program codes stored in the memory so as to execute: when the OTG equipment is inserted into the electronic equipment in a first direction, determining an initial pin; when the OTG equipment is inserted into the electronic equipment in a second direction, determining a target pin; and performing fool-proof test on the TYPE-C interface according to the initial pin and the target pin.
The electronic equipment that this application fourth aspect embodiment provided, through when inserting electronic equipment with the OTG equipment with the first direction, confirm initial pin, and when inserting electronic equipment with the OTG equipment with the second direction, confirm target pin, and according to initial pin and target pin, prevent slow-witted test to TYPE-C interface, can effectively avoid artifical discernment error to the OTG equipment tow sides, promote the test precision of TYPE-C socket function, promote test effect.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a TYPE-C interface testing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating pin definition of the TYPE-C socket;
fig. 3 is a schematic flowchart of a TYPE-C interface test setup method according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a TYPE-C interface testing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a TYPE-C interface testing apparatus according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative and are only for the purpose of explaining the present application and are not to be construed as limiting the present application. On the contrary, the embodiments of the application include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
In order to solve the problem that the manual work can not be effectively avoided in the correlation technique to the discernment error of the positive and negative two sides of OTG equipment, the test that leads to TYPE-C socket function is not accurate enough, and the test effect is not good, this application embodiment provides a TYPE-C interface test method, through when inserting the OTG equipment in the first direction into electronic equipment, confirm initial pin, and will when the OTG equipment inserts electronic equipment with the second direction, confirm target pin, and according to initial pin with target pin is right the slow-witted test is prevented to TYPE-C interface, can effectively avoid the manual work to the discernment error of the positive and negative two sides of OTG equipment, promotes the test precision of TYPE-C socket function, promotes test effect.
Fig. 1 is a schematic flowchart of a TYPE-C interface testing method according to an embodiment of the present application.
Referring to fig. 1, the method includes:
s101: upon insertion of the OTG device into the electronic device in a first orientation, an initial pin is determined.
In which, in an initial stage, an OTG device is inserted into an electronic device to perform a socket function test, and the insertion direction may be referred to as a first direction.
In a specific implementation, when the OTG device is inserted into the electronic device in the first direction, a tested pin, which may be referred to as an initial pin, may be determined via a test class application within the electronic device.
In this embodiment of the application, determining the initial pin may specifically be determining a type of the initial pin, or determining an identifier of the initial pin, or determining a name of the initial pin, and the like, where the determined content may be used to uniquely identify the initial pin, which is not limited thereto.
In a specific execution process, when the OTG device is inserted into the electronic device in the first direction, before the initial pin is determined, the electronic device is configured in an engineering mode, when the OTG device is inserted into the electronic device in the first direction, whether the OTG device is inserted is determined through a test application program built in the electronic device, and if the OTG device is determined to be inserted, the initial pin is determined, which can effectively guarantee the consistency of the method execution, effectively avoid manual repeated detection, and reduce influence factors caused by manual judgment.
S102: the target pin is determined when the OTG device is inserted into the electronic device in the second orientation.
When the OTG device is inserted into the electronic device again, the insertion direction may be referred to as a second direction, and when the OTG device is inserted into the electronic device in the second direction, a tested pin may be determined via a test application in the electronic device, where the tested pin may be referred to as a target pin.
It can be understood that, generally, a tester inserts the OTG device into the TYPE-C socket of the electronic device, software in the electronic device tests whether to identify a pin of the corresponding TYPE-C socket, and then the tester manually turns over the OTG device and inserts the OTG device into the TYPE-C socket of the electronic device in a reverse direction, so that when the OTG device is inserted twice, the insertion directions may be the same or may not be the same, if the insertion directions are different, a normal TYPE-C interface test flow may be performed, and if the insertion directions are the same twice, and a test user does not know the insertion error in time, the test flow may be invalid.
Therefore, in the embodiment of the present application, when the OTG device is inserted into the electronic device in the first direction, the initial pin is determined, and when the OTG device is inserted into the electronic device in the second direction, the target pin is determined, that is, when the OTG device is inserted into the electronic device twice, the pins inserted each time are detected, and according to the detected initial pin and target pin, it is determined whether the first direction and the second direction are the same or different, so as to avoid the manual identification error of the front and back sides of the OTG device.
S103: and performing fool-proof test on the TYPE-C interface according to the initial pin and the target pin.
The initial pin is a CC1 pin or a CC2 pin, the target pin is a CC1 pin or a CC2 pin, the definition of the pins of the actual TYPE-C socket can be met, the realization is simple and convenient, and a relatively accurate test effect can be obtained.
Referring to fig. 2, fig. 2 is a pin definition schematic diagram of the TYPE-C socket, and according to the definition of the pin of the TYPE-C socket, when any side of the TYPE-C socket of the electronic device operates, the front side and the back side of the socket are generally distinguished through the CC1 pin or the CC2 pin, so that in this embodiment of the application, when the OTG device is identified by a test application in the electronic device, it is determined that the TYPE-C socket operates through the CC1 pin or the CC2 pin, so as to implement fool-proofing of the test.
Referring to fig. 3, the fool-proof test is performed on the TYPE-C interface according to the initial pin and the target pin, further comprising:
s301: and judging whether the initial pin and the target pin are the same.
When determining whether the initial pin and the target pin are the same, the method may directly compare whether the identifier of the initial pin and the identifier of the target pin are the same, or may also directly compare whether the name of the initial pin and the name of the target pin are the same, which is not limited in this respect.
S302: and if the initial pin is the same as the target pin, determining that the first direction is the same as the second direction.
In the specific execution process, if the initial pin and the target pin are the same, it is determined that the first direction and the second direction are the same, i.e., the manual identification errors on the front and back sides of the OTG device may occur, and at this time, if the TYPE-C socket function test is continued, a good test effect cannot be obtained, and S303 may be triggered and executed.
S303: and determining a third direction opposite to the second direction, and generating prompt information for prompting the test user to insert the OTG equipment into the electronic equipment in the third direction.
In the specific execution process, when the situation that the identification of the front side and the back side of the OTG equipment is missed by manpower is detected, the third direction opposite to the second direction is determined, prompt information is generated and used for prompting a test user to insert the OTG equipment into the electronic equipment in the third direction, so that the test user can timely transfer the insertion direction of the OTG equipment, the normal running of the subsequent TYPE-C socket function test is assisted, the foolproof test is realized, and the occurrence of false judgment events of the front side and the back side of the OTG equipment in manual conversion under the old scheme is effectively avoided.
The prompt message may be, for example, please change the insertion direction of the OTG device to perform the testing again, which is not limited herein.
S304: and if the initial pin is different from the target pin, determining that the first direction is different from the second direction, and determining that the TYPE-C interface fool-proofing test is passed.
In this embodiment, through when inserting electronic equipment with the OTG equipment with the first direction, confirm initial pin to when inserting electronic equipment with the OTG equipment with the second direction, confirm the target pin, and according to initial pin and target pin, prevent slow-witted test to TYPE-C interface, can effectively avoid the artifical discernment error to the OTG equipment tow sides, promote the test precision of TYPE-C socket function, promote test effect.
Fig. 4 is a schematic structural diagram of a TYPE-C interface testing apparatus according to an embodiment of the present application.
Referring to fig. 4, the apparatus 400 includes:
a first determining module 401, configured to determine an initial pin when the OTG device is inserted into the electronic device in a first direction;
a second determining module 402, configured to determine a target pin when the OTG device is inserted into the electronic device in the second direction;
the testing module 403 is configured to perform a fool-proof test on the TYPE-C interface according to the initial pin and the target pin.
Optionally, in some embodiments, referring to fig. 5, the test module 403 includes:
a judgment sub-module 4031 for judging whether the initial pin and the target pin are the same;
if the initial pin is the same as the target pin, determining that the first direction is the same as the second direction;
and the prompt submodule 4032 is configured to determine a third direction opposite to the second direction, and generate prompt information, where the prompt information is used to prompt the test user to insert the OTG device into the electronic device in the third direction.
Optionally, in some embodiments, referring to fig. 5, the determining sub-module 4031 is further configured to:
and if the initial pin is different from the target pin, determining that the first direction is different from the second direction, and determining that the TYPE-C interface fool-proofing test is passed.
Optionally, in some embodiments, referring to fig. 5, the apparatus 400 further comprises:
a configuration module 404 for configuring the electronic device into an engineering mode;
the first determining module 401 is specifically configured to:
when the OTG equipment is inserted into the electronic equipment in a first direction, whether the OTG equipment is inserted or not is confirmed through a test application program built in the electronic equipment;
and if the OTG equipment is determined to be inserted, determining an initial pin.
Optionally, in some embodiments, the initial pin is a CC1 pin or a CC2 pin, and the target pin is a CC1 pin or a CC2 pin.
It should be noted that the explanation of the TYPE-C interface testing method embodiment in fig. 1-3 also applies to the TYPE-C interface testing apparatus 400 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, through when inserting electronic equipment with the OTG equipment with the first direction, confirm initial pin to when inserting electronic equipment with the OTG equipment with the second direction, confirm the target pin, and according to initial pin and target pin, prevent slow-witted test to TYPE-C interface, can effectively avoid the artifical discernment error to the OTG equipment tow sides, promote the test precision of TYPE-C socket function, promote test effect.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 6, the electronic device 60 of the present embodiment includes: the device comprises a shell 601, a processor 602, a memory 603, a circuit board 604, a power supply circuit 605 and a TYPE-C interface 606, wherein the circuit board 604 is arranged inside a space enclosed by the shell, and the processor 602, the memory 603 and the TYPE-C interface 606 are arranged on the circuit board 604; a power supply circuit 605 for supplying power to each circuit or device of the electronic apparatus; the memory 603 is used for storing executable program codes, and the processor 602 runs a program corresponding to the executable program codes by reading the executable program codes stored in the memory 603, so as to execute:
when the OTG equipment is inserted into the electronic equipment in a first direction, determining an initial pin;
when the OTG equipment is inserted into the electronic equipment in a second direction, determining a target pin;
and performing fool-proof test on the TYPE-C interface according to the initial pin and the target pin.
It should be noted that the explanation of the TYPE-C interface testing method in the foregoing embodiments of fig. 1 to fig. 3 is also applicable to the electronic device 60 of this embodiment, and the implementation principle is similar, and is not described herein again.
In this embodiment, through when inserting electronic equipment with the OTG equipment with the first direction, confirm initial pin to when inserting electronic equipment with the OTG equipment with the second direction, confirm the target pin, and according to initial pin and target pin, prevent slow-witted test to TYPE-C interface, can effectively avoid the artifical discernment error to the OTG equipment tow sides, promote the test precision of TYPE-C socket function, promote test effect.
In order to implement the foregoing embodiments, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the TYPE-C interface testing method of the foregoing method embodiments is implemented.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present application, the meaning of "a plurality" is two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried out in the method of implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A TYPE-C interface test method is characterized by comprising the following steps:
when the OTG equipment is inserted into the electronic equipment in a first direction, determining an initial pin;
when the OTG equipment is inserted into the electronic equipment in a second direction, determining a target pin;
performing fool-proofing test on the TYPE-C interface according to the initial pin and the target pin; the method comprises the following steps:
judging whether the initial pin and the target pin are the same;
if the initial pin is the same as the target pin, determining that the first direction is the same as the second direction;
and determining a third direction opposite to the second direction, and generating prompt information, wherein the prompt information is used for prompting a test user to insert the OTG equipment into the electronic equipment in the third direction.
2. The TYPE-C interface testing method of claim 1, wherein after determining whether the initial pin and the target pin are the same, the method further comprises:
and if the initial pin is different from the target pin, determining that the first direction is different from the second direction, and determining that the TYPE-C interface fool-proofing test is passed.
3. The TYPE-C interface testing method of claim 1, wherein before determining the initial pin when the OTG device is inserted into the electronic device in the first direction, further comprising:
configuring the electronic device in an engineering mode;
when the OTG device is inserted into the electronic device in the first direction, determining an initial pin comprises:
when an OTG device is inserted into an electronic device in a first direction, whether the OTG device is inserted or not is confirmed through a test application program built in the electronic device;
and if the OTG equipment is determined to be inserted, determining the initial pin.
4. The TYPE-C interface testing method of any one of claims 1-3, wherein the initial pin is a CC1 pin or a CC2 pin, and the target pin is a CC1 pin or a CC2 pin.
5. The utility model provides a TYPE-C interface testing arrangement which characterized in that includes:
the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining an initial pin when the OTG equipment is inserted into the electronic equipment in a first direction;
the second determining module is used for determining a target pin when the OTG equipment is inserted into the electronic equipment in a second direction;
the testing module is used for performing foolproof testing on the TYPE-C interface according to the initial pin and the target pin;
the test module comprises:
the judgment submodule is used for judging whether the initial pin and the target pin are the same or not;
if the initial pin is the same as the target pin, determining that the first direction is the same as the second direction;
and the prompting submodule is used for determining a third direction opposite to the second direction and generating prompting information, and the prompting information is used for prompting a test user to insert the OTG equipment into the electronic equipment in the third direction.
6. The TYPE-C interface testing apparatus of claim 5, wherein the determining submodule is further configured to:
and if the initial pin is different from the target pin, determining that the first direction is different from the second direction, and determining that the TYPE-C interface fool-proofing test is passed.
7. The TYPE-C interface testing apparatus of claim 5, further comprising:
a configuration module to configure the electronic device to an engineering mode;
the first determining module is specifically configured to:
when an OTG device is inserted into an electronic device in a first direction, whether the OTG device is inserted or not is confirmed through a test application program built in the electronic device;
and if the OTG equipment is determined to be inserted, determining the initial pin.
8. The TYPE-C interface testing apparatus of any of claims 5-7, wherein the initial pin is a CC1 pin or a CC2 pin, and the target pin is a CC1 pin or a CC2 pin.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the TYPE-C interface testing method according to any one of claims 1 to 4.
10. An electronic device comprises a shell, a processor, a memory, a circuit board, a power circuit and a TYPE-C interface, wherein the circuit board is arranged inside a space enclosed by the shell, and the processor, the memory and the TYPE-C interface are arranged on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the electronic equipment; the memory is used for storing executable program codes, and the processor runs programs corresponding to the executable program codes by reading the executable program codes stored in the memory so as to execute:
when the OTG equipment is inserted into the electronic equipment in a first direction, determining an initial pin;
when the OTG equipment is inserted into the electronic equipment in a second direction, determining a target pin;
performing fool-proof test on the TYPE-C interface according to the initial pin and the target pin; the method comprises the following steps: judging whether the initial pin and the target pin are the same; if the initial pin is the same as the target pin, determining that the first direction is the same as the second direction; and determining a third direction opposite to the second direction, and generating prompt information, wherein the prompt information is used for prompting a test user to insert the OTG equipment into the electronic equipment in the third direction.
CN201910789933.6A 2019-08-26 2019-08-26 TYPE-C interface testing method and device, storage medium and electronic equipment Active CN110502382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910789933.6A CN110502382B (en) 2019-08-26 2019-08-26 TYPE-C interface testing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910789933.6A CN110502382B (en) 2019-08-26 2019-08-26 TYPE-C interface testing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110502382A CN110502382A (en) 2019-11-26
CN110502382B true CN110502382B (en) 2023-04-07

Family

ID=68589550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910789933.6A Active CN110502382B (en) 2019-08-26 2019-08-26 TYPE-C interface testing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110502382B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111881072B (en) * 2020-07-30 2021-11-23 武汉精立电子技术有限公司 High-speed USB TYPE-C interface device supporting bidirectional transmission and graphic signal generator
CN112037443B (en) * 2020-11-06 2021-12-03 南京研利科技有限公司 Money collection prompting device, method for prompting money collection, and storage medium
CN113590402B (en) * 2021-07-30 2024-11-29 深圳市广和通无线股份有限公司 Pin testing device, method, control equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239177A (en) * 2013-06-19 2014-12-24 鸿富锦精密工业(深圳)有限公司 Serial interface signal test fixture
CN104678197A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Test circuit
CN204407554U (en) * 2015-03-02 2015-06-17 广东欧珀移动通信有限公司 BTB connector and COB touch-screen
CN105514716A (en) * 2015-12-31 2016-04-20 深圳市鑫桐源科技有限公司 USB plug, signal switching circuit and USB data line
CN105677611A (en) * 2015-12-31 2016-06-15 北京小鸟看看科技有限公司 Portable device and method for controlling HDMI signal outputting
CN106294244A (en) * 2016-08-11 2017-01-04 深圳慧能泰半导体科技有限公司 A kind of USB Type C interface circuit
CN106681231A (en) * 2017-03-03 2017-05-17 南京异或科技有限公司 Type-C detection method
CN106712179A (en) * 2016-12-27 2017-05-24 努比亚技术有限公司 Method and device realizing reverse charging
CN107543994A (en) * 2017-08-31 2018-01-05 华勤通讯技术有限公司 The test system of Type C interface
CN206975081U (en) * 2017-07-18 2018-02-06 深圳盛凌电子股份有限公司 Type C test adaptor seats
CN108957289A (en) * 2018-06-15 2018-12-07 江西兴泰科技有限公司 A kind of circuit board testing pin system and test method
CN109298266A (en) * 2018-10-29 2019-02-01 Oppo广东移动通信有限公司 Test system, test method, test apparatus, and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104239177A (en) * 2013-06-19 2014-12-24 鸿富锦精密工业(深圳)有限公司 Serial interface signal test fixture
CN104678197A (en) * 2013-11-29 2015-06-03 深圳富泰宏精密工业有限公司 Test circuit
CN204407554U (en) * 2015-03-02 2015-06-17 广东欧珀移动通信有限公司 BTB connector and COB touch-screen
CN105514716A (en) * 2015-12-31 2016-04-20 深圳市鑫桐源科技有限公司 USB plug, signal switching circuit and USB data line
CN105677611A (en) * 2015-12-31 2016-06-15 北京小鸟看看科技有限公司 Portable device and method for controlling HDMI signal outputting
CN106294244A (en) * 2016-08-11 2017-01-04 深圳慧能泰半导体科技有限公司 A kind of USB Type C interface circuit
CN106712179A (en) * 2016-12-27 2017-05-24 努比亚技术有限公司 Method and device realizing reverse charging
CN106681231A (en) * 2017-03-03 2017-05-17 南京异或科技有限公司 Type-C detection method
CN206975081U (en) * 2017-07-18 2018-02-06 深圳盛凌电子股份有限公司 Type C test adaptor seats
CN107543994A (en) * 2017-08-31 2018-01-05 华勤通讯技术有限公司 The test system of Type C interface
CN108957289A (en) * 2018-06-15 2018-12-07 江西兴泰科技有限公司 A kind of circuit board testing pin system and test method
CN109298266A (en) * 2018-10-29 2019-02-01 Oppo广东移动通信有限公司 Test system, test method, test apparatus, and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
USB 3.1 Type C信号完整性分析与研究;张涛;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180815;全文 *

Also Published As

Publication number Publication date
CN110502382A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110502382B (en) TYPE-C interface testing method and device, storage medium and electronic equipment
CN110658400B (en) Embedded test method, microcontroller and system
CN106547653B (en) Computer system fault state detection method, device and system
CN113434355B (en) Module verification method, UVM verification platform, electronic equipment and storage medium
CN107391333B (en) A kind of OSD disk failure testing method and system
CN113219320B (en) BMS circuit board verification method, system, readable storage medium and terminal equipment
CN114996069A (en) A motherboard testing method, device and medium
CN102521132A (en) Automated testing method and automated testing system for real-time output logs
CN108089961A (en) One kind is based on MOC boards hardware reboot test methods and system
CN114564903B (en) Chip simulation design verification method, device, equipment and medium
CN115033298B (en) Multi-scene adaptation method and system for interface resources of industrial Internet equipment
CN117711478A (en) Method, device and medium for power-on and power-off test of solid state disk
CN113407408B (en) Data transmission rule verification method, device, equipment and storage medium
CN114064373B (en) Test system, test method, test device and test equipment for USB platelet
CN110377477B (en) Electronic equipment, functional module, main board of electronic equipment and detection method
TWI637177B (en) System and method for testing semiconductor elements
CN117910401B (en) Method, apparatus, device, storage medium and program product for configuring operation mode
CN114688679B (en) Air conditioner parameter reading method and air conditioner
US11486926B1 (en) Wearout card use count
CN117873797B (en) Digital circuit chip fault confirmation method and related device
CN117330942B (en) Chip debugging method and related device
CN118675603B (en) Flash memory controller prototype firmware, prototype verification method, system and hardware platform
CN112270153B (en) Waveform acquisition method and device, test equipment, and computer-readable storage medium
TW201135450A (en) Power testing system for server and a method for testing server's power
CN116627739A (en) I2C controller detection method, device, switch and storage medium

Legal Events

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