USBIF authentication triggering method, tested equipment and vehicle

By reading the test information of the USB flash drive in the device to be tested and comparing the trigger information, the test mode is automatically triggered, and the problem of the need for a dedicated test device in the prior art is solved, achieving cost savings and shortening of the R&D cycle of USBIF certification.

CN119668959APending Publication Date: 2025-03-21SHANGHAI PATEO ELECTRONIC EQUIPMENT MANUFACTURING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411761276.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2019-01-23
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, special testing devices are required in USBIF certification testing, resulting in high procurement costs and long cycles, increasing R&D costs and time.

Method used

By reading the test information of the USB drive inserted on the USB interface in the device to be tested, and comparing the pre-written triggering information with the test information, the corresponding test mode is automatically triggered without a dedicated test device.

Benefits of technology

It realizes USBIF certification of the equipment being tested, saves testing costs, shortens the R&D cycle, and avoids the procurement of special testing devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119668959A_ABST
    Figure CN119668959A_ABST
Patent Text Reader

Abstract

The invention provides a USBIF authentication triggering method, tested equipment and a vehicle, the USBIF authentication triggering method is applied to the tested equipment, and comprises the following steps: reading test information of a USB flash disk inserted into a USB interface in the tested equipment; comparing pre-written trigger information with the test information; when the trigger information is consistent with the test information, automatically triggering a corresponding test mode according to the test information; and when the trigger information is inconsistent with the test information, prompting prompt information of replacing different USB flash disks. According to the USBIF authentication triggering method, the tested equipment and the vehicle provided by the invention, USBIF authentication of the tested equipment can be realized, a special test fixture is not needed, the test cost is saved, and the research and development period is shortened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of USBIF authentication technology, and in particular to a USBIF authentication triggering method, a tested device and a vehicle. Background Art

[0002] USBIF (USB Implementers Forum) is a non-profit organization for USB standardization. It is the organization that formulates USB standards, such as USB2.0 / 3.0. USBIF certification test is the organization's standard test. Only by passing this test can the USB logo be affixed. It is also a test to evaluate USB performance.

[0003] In the prior art, in the USBIF certification test, a special test fixture needs to be connected to trigger the test data, but the fixture can only be purchased from the USBIF organization in the United States, the price is high, and the procurement cycle is long, thereby increasing the R&D cost and time.

[0004] In view of the above problems, those skilled in the art have been seeking solutions. Summary of the invention

[0005] In view of this, the present invention provides a USBIF authentication triggering method, a tested device and a vehicle, which can realize USBIF authentication of the tested device without the need for a dedicated test fixture, thus saving test costs and shortening the R&D cycle.

[0006] The present invention provides a USBIF authentication triggering method, which is applied to a device under test, and comprises: the USBIF authentication triggering method is applied to the device under test, and comprises: reading test information of a U disk inserted into a USB interface in the device under test; comparing pre-written trigger information with the test information; when the trigger information is consistent with the test information, automatically triggering a corresponding test mode according to the test information; when the trigger information is inconsistent with the test information, prompting prompt information for changing a different U disk.

[0007] Specifically, before the step of comparing the pre-written trigger information with the test information, the step also includes: receiving different trigger information written for the test information of different U disks; and storing the trigger information in a trigger information list.

[0008] Specifically, the step of receiving different trigger information written for test information of different USB flash drives includes: one-to-one correspondence between multiple test modes in the tested device and test information in multiple USB flash drives, and correspondence between the test information in each USB flash drive and a test mode in the trigger information.

[0009] Specifically, the test information includes the name information, manufacturer information and PID value of the USB flash drive.

[0010] The present invention also provides a device under test, which includes: a memory for storing executable program code; and a processor for calling the executable program code in the memory to implement the steps of executing the USBIF authentication trigger method, including: reading the test information of a U disk inserted into the USB interface of the device under test; comparing the pre-written trigger information with the test information; when the trigger information is consistent with the test information, automatically triggering the corresponding test mode according to the test information; when the trigger information is inconsistent with the test information, prompting a prompt message to change a different U disk.

[0011] Specifically, the processor, before executing the step of comparing the pre-written trigger information with the test information, further executes the following steps: receiving different trigger information written for test information of different USB flash drives; and storing the trigger information in a trigger information list.

[0012] Specifically, the processor executes the step of receiving different trigger information written for test information of different U disks, and the specific execution steps include: one-to-one correspondence between multiple test modes in the tested device and test information in multiple U disks, and the test information in each U disk corresponds to a test mode in the trigger information.

[0013] Specifically, the test information includes the name information, manufacturer information and PID value of the USB flash drive.

[0014] The present invention also provides a vehicle, wherein the vehicle comprises the tested device as described above.

[0015] Specifically, the USBIF authentication trigger method, tested device and vehicle provided in this embodiment read the test information of the USB flash drive inserted into the USB interface of the tested device, and compare the pre-written trigger information with the test information, so as to automatically trigger the corresponding test mode according to the test information when the trigger information is consistent with the test information, and prompt the user to replace a different USB flash drive when the trigger information is inconsistent with the test information, thereby achieving USBIF authentication of the tested device without the need for dedicated test fixtures, saving test costs and shortening the R&D cycle.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the following specifically cites a preferred embodiment and describes it in detail with the accompanying drawings as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the flow of a USBIF authentication triggering method according to a first embodiment of the present invention;

[0018] Figure 2 A schematic flow chart of a USBIF authentication triggering method according to a second embodiment of the present invention;

[0019] Figure 3 A schematic flow chart of a USBIF authentication triggering method according to a third embodiment of the present invention;

[0020] Figure 4 is a structural block diagram of a device under test according to a fourth embodiment of the present invention;

[0021] Figure 5 FIG. 5 is a structural block diagram of a vehicle according to a fifth embodiment of the present invention. DETAILED DESCRIPTION

[0022] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the present invention is described in detail below in conjunction with the accompanying drawings and preferred embodiments.

[0023] Figure 1 FIG. 1 is a flow chart of a USBIF authentication triggering method according to a first embodiment of the present invention. This embodiment is a USBIF authentication triggering method executed by a device under test. Figure 1 As shown, the USBIF authentication triggering method of this embodiment may include the following steps:

[0024] Step S11: Read the test information of the USB disk inserted into the USB interface of the device under test.

[0025] Specifically, in one embodiment, when the user inserts a USB flash drive into the USB interface of the device under test, the device under test will read the test information of the USB flash drive. For example, the test information may include but is not limited to the name information, manufacturer information, VID (vendor ID) value and PID (Product ID) value of the USB flash drive, etc.

[0026] Specifically, in one embodiment, the application software in the device under test needs to write the preset PID value for triggering the USB flash drive into the application software in advance. When the PID value of the USB flash drive is obtained and compared with the written preset PID value, if the PID value of the triggered USB flash drive is consistent with the preset PID value, the test mode corresponding to the PID value of the USB flash drive is triggered.

[0027] Specifically, in one implementation, the test information includes the name information, manufacturer information and PID value of the USB flash drive.

[0028] Step S12: Compare the pre-written trigger information with the test information.

[0029] Specifically, in one embodiment, the device under test compares the pre-written trigger information with the test information one by one to determine whether there is a PID value in the trigger information corresponding to the test information.

[0030] Specifically, in one implementation, the trigger information is a fixed preset PID value defined by the USBIF Association. Specifically, each test mode in the device under test corresponds to the preset PID value one by one as follows:

[0031]

[0032] Specifically, when the trigger information is consistent with the test information, step S13 is executed. When the trigger information is inconsistent with the test information, step S14 is executed.

[0033] Step S13: Automatically trigger the corresponding test mode according to the test information.

[0034] Specifically, in one embodiment, when the trigger information is consistent with the test information, for example, the PID value of the triggered USB flash drive is consistent with the preset PID value, the device under test automatically triggers the test mode corresponding to the PID value of the USB flash drive according to the test information, thereby enabling USBIF certification of the device under test without the need for dedicated test fixtures, saving testing costs.

[0035] Step S14: prompting information to change to a different USB flash drive.

[0036] Specifically, in one embodiment, when the trigger information is inconsistent with the test information, for example, when the trigger information does not contain a preset PID value corresponding to the PID value of the USB flash drive, the tested device generates a prompt message and displays the prompt message to remind the user to change to a different USB flash drive for USBIF certification testing to improve the user experience.

[0037] Please refer to Figure 2 , Figure 2 FIG. 2 is a flow chart of a USBIF authentication triggering method according to a second embodiment of the present invention. Figure 1 to Figure 2 As shown, the USBIF authentication triggering method provided in this embodiment further includes the following steps before the step of comparing the pre-written triggering information with the test information:

[0038] Step S21: receiving different trigger information written for test information of different USB flash drives.

[0039] Specifically, in one embodiment, the device under test receives setting information triggered by the user to set different trigger information for writing test information for different USB flash drives. For example, the application software in the device under test needs to write the preset PID value for triggering the USB flash drive into the application software in advance, so that it can be triggered by the USB flash drive. The number of USB flash drives can be, but is not limited to, 4. For example, when the test mode of the device under test increases, the number of USB flash drives also increases with the test mode of the device under test. Specifically, when 4 USB flash drives are inserted into the USB interface of the device under test one by one, the PID value of the USB flash drive read by the device under test corresponds to the PID value of the test fixture respectively, so that the USB interface in the device under test enters different test modes when different USB flash drives are inserted, thereby achieving the purpose of USBIF certification testing without the need for dedicated test fixtures, saving testing costs.

[0040] Step S22: Store the trigger information into a trigger information list.

[0041] Specifically, in one embodiment, the device under test stores all preset PID values ​​in the trigger information and the PID values ​​in each USB flash drive in correspondence with each other in the trigger information list.

[0042] Please refer to Figure 3 , Figure 3 FIG. 4 is a flow chart of a USBIF authentication triggering method according to a third embodiment of the present invention. Figures 1 to 3 As shown, the USBIF authentication trigger method provided in this embodiment, the step of receiving different trigger information written for test information of different USB flash drives specifically includes the following steps:

[0043] Step S31: multiple test modes in the tested device are matched one by one with the test information in multiple USB flash drives, and each piece of test information in the USB flash drive is matched with a test mode in the trigger information.

[0044] Specifically, in one embodiment, the device under test corresponds multiple test modes in the device under test to test information in multiple USB flash drives one by one, and the test information in each USB flash drive corresponds to a test mode in the trigger information. Specifically, each test mode corresponds to a preset PID value in the trigger information, and each preset PID value corresponds to a PID value of a USB flash drive, so that when the USB flash drive is inserted into the USB interface of the device under test, the device under test searches for the corresponding preset PID value according to the PID value of the test information in the USB flash drive, and then triggers the corresponding test mode according to the preset PID value, thereby achieving the purpose of USBIF certification testing without the need for a dedicated test fixture, saving testing costs.

[0045] Specifically, in one embodiment, the USBIF authentication trigger method provided in this embodiment does not need to determine the VID value. For example, the preset PID values ​​triggered by the functional test in the tested device are 0x0101, 0x0102, 0x0103, and 0x0104. Then, it is necessary to select four USB disks to correspond to them respectively. Specifically, the PID value 0x12A0 in the first USB disk corresponds to the preset PID value 0x0101. The PID value 0xA012 in the second USB disk corresponds to the preset PID value 0x0102, and so on.

[0046] Specifically, in one embodiment, after the device under test corresponds the PID value of the USB flash drive to the application software of the device under test, after the user inserts the corresponding USB flash drive into the USB interface of the device under test, the device under test detects the PID value of the USB flash drive. If the PID value is 0x12A0, the device under test determines the test fixture with a VID value of 0x1a0a and a preset PID value of 0x0101, and triggers the test mode TEST_SE0_NAK_PID corresponding to the preset PID value of 0x0101 for testing.

[0047] Specifically, the USBIF authentication trigger method provided in this embodiment reads the test information of the U disk inserted into the USB interface of the tested device, and compares the pre-written trigger information with the test information, so as to automatically trigger the corresponding test mode according to the test information when the trigger information is consistent with the test information, and prompt the user to replace a different U disk when the trigger information is inconsistent with the test information, thereby realizing USBIF authentication of the tested device without the need for dedicated test fixtures, saving test costs, and shortening the R&D cycle.

[0048] Figure 4 FIG. 1 is a structural block diagram of a device under test 100 according to a fourth embodiment of the present invention. Figure 4 As shown, the device under test 100 provided in this embodiment includes a memory 110 and a processor 120 .

[0049] Specifically, in one embodiment, the memory 110 is used to store executable program codes. The processor 120 is used to call the executable program codes in the memory 110 to implement the steps executed by the USBIF authentication trigger method, including: reading the test information of the USB disk inserted into the USB interface of the tested device; comparing the pre-written trigger information with the test information; when the trigger information is consistent with the test information, automatically triggering the corresponding test mode according to the test information; when the trigger information is inconsistent with the test information, prompting a prompt message to change a different USB disk.

[0050] Specifically, in one embodiment, the processor 120, before executing the step of comparing the pre-written trigger information with the test information, further executes the following steps: receiving different trigger information written for the test information of different USB flash drives; and storing the trigger information in a trigger information list.

[0051] Specifically, in one embodiment, the processor 120 executes the step of receiving different trigger information written for test information of different USB flash drives. The specific execution steps include: one-to-one correspondence between multiple test modes in the tested device and test information in multiple USB flash drives, and the test information in each USB flash drive corresponds to a test mode in the trigger information.

[0052] Specifically, in one embodiment, the test information includes the name information, manufacturer information and PID value of the USB flash drive.

[0053] Specifically, in one implementation, the trigger information is a fixed preset PID value defined by the USBIF Association. Specifically, each test mode in the device under test corresponds to the preset PID value one by one as follows:

[0054] #define TEST_SE0_NAK_PID 0x0101;

[0055]

[0056] Specifically, in one embodiment, the USBIF authentication trigger method provided in this embodiment does not need to determine the VID value. For example, the preset PID values ​​triggered by the functional test in the tested device are 0x0101, 0x0102, 0x0103, and 0x0104. Then, it is necessary to select four USB disks to correspond to them respectively. Specifically, the PID value 0x12A0 in the first USB disk corresponds to the preset PID value 0x0101. The PID value 0xA012 in the second USB disk corresponds to the preset PID value 0x0102, and so on.

[0057] Specifically, in one embodiment, after the device under test corresponds the PID value of the USB flash drive to the application software of the device under test, after the user inserts the corresponding USB flash drive into the USB interface of the device under test, the device under test detects the PID value of the USB flash drive. If the PID value is 0x12A0, the device under test determines the test fixture with a VID value of 0x1a0a and a preset PID value of 0x0101, and triggers the test mode TEST_SE0_NAK_PID corresponding to the preset PID value of 0x0101 for testing.

[0058] For the specific process of implementing the functions of each functional unit of the device under test 100 in this embodiment, please refer to the above Figures 1 to 3 The specific contents described in the illustrated embodiments will not be repeated here.

[0059] Specifically, the tested device provided in this embodiment reads the test information of the USB flash drive inserted into the USB interface of the tested device, and compares the pre-written trigger information with the test information, so as to automatically trigger the corresponding test mode according to the test information when the trigger information is consistent with the test information, and prompt the user to replace a different USB flash drive when the trigger information is inconsistent with the test information, thereby achieving USBIF certification of the tested device without the need for dedicated test fixtures, saving test costs, and shortening the R&D cycle.

[0060] Figure 5 FIG. 2 is a structural block diagram of a vehicle 200 according to a fifth embodiment of the present invention. Figure 5 As shown, the vehicle 200 provided in this embodiment includes a device under test 210. Specifically, the specific structure of the device under test 210 is shown in FIG. Figure 4 The description of the device under test 100 in the illustrated embodiment will not be repeated here.

[0061] Specifically, the vehicle provided in this embodiment reads the test information of the USB flash drive inserted into the USB interface of the device under test, and compares the pre-written trigger information with the test information, so as to automatically trigger the corresponding test mode according to the test information when the trigger information is consistent with the test information, and prompts to replace a different USB flash drive when the trigger information is inconsistent with the test information, thereby achieving USBIF certification of the device under test, without the need for dedicated test fixtures, saving test costs, and shortening the R&D cycle.

[0062] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-readable storage medium is, for example, a non-volatile memory such as an optical disk, a hard disk, or a flash memory. The computer-executable instructions are used to enable a computer or a similar computing device to complete various operations in the USBIF authentication triggering method.

[0063] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the terminal type embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

Claims

1. A USBIF authentication triggering method, wherein: Applied to the device under test, the method comprises: Reading test information of a USB flash drive inserted into a USB interface of the device under test; Compare the trigger information pre-written into the trigger information list of the device under test with the test information, wherein the trigger information is different information written for the test information of different USB flash drives; When information consistent with the test information exists in the trigger information, a corresponding test mode is automatically triggered according to the test information.

2. The USBIF authentication triggering method according to claim 1, wherein: The method further comprises: When there is no information consistent with the test information in the trigger information, a prompt message is displayed to prompt to replace the USB flash drive.

3. The USBIF authentication triggering method according to claim 1, wherein: The test information includes a PID value of the USB flash drive, and the trigger information includes a preset PID value.

4. The USBIF authentication triggering method according to claim 3, wherein: The automatically triggering of the corresponding test mode according to the test information includes: Determine the preset PID value of the corresponding test fixture according to the PID value in the test information of the U disk; A test mode corresponding to the preset PID value is triggered.

5. The USBIF authentication triggering method according to claim 3, wherein: The test information of different U disks contains different PID values, and each of the U disks is used to trigger a test mode corresponding to the PID value. The number of the U disks corresponds to the number of the test modes.

6. The USBIF authentication triggering method according to any one of claims 1 to 5, wherein: Each of the test modes corresponds to one of the trigger information in the trigger information list, and each of the trigger information corresponds to the test information in a U disk.

7. A device under test, wherein: The device under test comprises: A memory for storing executable program code; and The processor is used to call the executable program code in the memory to implement the steps of executing the USBIF authentication triggering method, including: Reading test information of a USB flash drive inserted into a USB interface of the device under test; Compare the trigger information pre-written into the trigger information list of the device under test with the test information, wherein the trigger information is different information written for the test information of different USB flash drives; When information consistent with the test information exists in the trigger information, a corresponding test mode is automatically triggered according to the test information.

8. The device under test according to claim 7, wherein: The processor is further configured to: when there is no information consistent with the test information in the trigger information, prompt a prompt message to replace the USB flash drive.

9. The device under test according to claim 7, wherein: Each of the test modes corresponds to one of the trigger information in the trigger information list, and each of the trigger information corresponds to the test information in a U disk.

10. The device under test according to any one of claims 7 to 9, wherein: The test information includes a PID value of the USB flash drive, and the trigger information includes a preset PID value.

11. A vehicle, wherein: The vehicle comprises the device under test according to any one of claims 7-10.