A method for self-checking of USB devices on a main board

By generating the parent file and comparing the motherboard USB device information, the problem of low detection efficiency of motherboard USB device is solved, efficient automatic detection and rapid fault positioning are achieved, and the efficiency and maintenance efficiency of the production line are improved.

CN114356672BActive Publication Date: 2025-07-18XIAMEN PRIMA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111661613.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2025-07-18
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently detect and troubleshoot complex USB devices on motherboards, resulting in high inspection pressure and the inability to quickly locate the fault points.

Method used

By generating the parent file, collecting and comparing the USB device information of the motherboard in different working modes, fully automatic detection is achieved and the normality of the device and switching device is judged.

Benefits of technology

It realizes efficient automatic detection of motherboard USB devices, quickly locates fault points, improves production line efficiency, and reduces human intervention and analysis time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356672B_ABST
    Figure CN114356672B_ABST
Patent Text Reader

Abstract

The present invention relates to a method for self-checking USB devices on a main board, which includes: Step 1, making a master copy; taking a normal main board, switching different working modes, and collecting USB device information in each working mode to generate a USB device array table; the USB device array tables in all working modes of the main board form the master copy; Step 2, presetting the master copy information into the self-checking system of the main board, and this self-checking system is used to perform self-checking of the main board under different logics; Step 3, starting the self-checking system to detect the main board, sequentially switching the working modes of the main board, and collecting the number of USB devices and the corresponding USB device information in each working mode; then comparing the information collected in each working mode with the USB device array table in the corresponding working mode in the master copy. If the two are exactly the same, it indicates that the USB devices under this working mode of the main board are normal and the function of the mode switching switch device is also normal. The present invention can achieve efficient inspection of USB devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of motherboard devices, and particularly to a method for self-checking USB devices on a motherboard. Background Art

[0002] Due to the convenience of USB interfaces, more and more USB modules are integrated into the motherboards of current electronic products. As Figure 1 shown, the functions of the motherboard need to support USB touch frames, USB Bluetooth WiFi devices, USB flash drive devices, USB touch output interfaces, USB video and audio acquisition modules, USB interfaces of type-c modules, etc.; due to the limited USB interfaces of the main chip SOC, a USB HUB chip is required; and due to the requirements of multi-systems in electronic products, the USB interface needs to be switched between different systems, and thus a USB multiplexer switch chip needs to be added to the motherboard. Therefore, due to the above various USB requirements, there are a large number of USB devices on the motherboard, making the circuit complex and bringing great pressure to the inspection; so it is necessary to develop a set of USB device stability self-checking system to assist in inspecting the reliability and stability of the production processes of various USB chip modules on the motherboard. Summary of the Invention

[0003] The purpose of the present invention is to provide a method for self-checking USB devices on a motherboard to achieve efficient inspection of USB devices.

[0004] To achieve the above purpose, the technical solution adopted by the present invention is:

[0005] A method for self-checking USB devices on a motherboard, which includes the following steps:

[0006] Step 1, making a master copy;

[0007] Take a normal motherboard, switch different working modes, and collect USB device information in each working mode to generate a USB device array table; the USB device array tables in all working modes of the motherboard are made into a file as the master copy file.

[0008] Step 2, presetting the information of the master copy file into the self-checking system of the motherboard, and this self-checking system is used to perform self-checks on the motherboard under different logics;

[0009] Step 3: Start the self-check system to perform motherboard detection. Sequentially switch the working modes of the motherboard, and collect the number of USB devices and the corresponding USB device information in each working mode. Then compare the information collected in each working mode with the USB device array table in the corresponding working mode in the master copy. If the two are exactly the same, it indicates that the USB devices in this working mode of the motherboard are normal. If they are inconsistent, it means that the USB devices in this working mode of the motherboard are abnormal or the devices for switching modes are abnormal. When the USB devices in all working modes of the motherboard are normal, it means that the motherboard detection is passed.

[0010] The USB device information includes the USB type, USB manufacturer information, and USB product number.

[0011] After adopting the above solution, the present invention can perform fully automatic detection of the functions of the USB devices on the motherboard, without the need for manual intervention and without adding hardware costs, and can achieve efficient inspection of the USB devices. And when there is a fault in the motherboard, the fault point can be directly pointed out, which is convenient for maintenance personnel to repair, reduces the analysis time, and improves the efficiency. At the same time, it can improve the efficiency of the production line and quickly eliminate the faulty motherboards. Brief Description of the Drawings

[0012] Figure 1 It is a schematic diagram of the USB module integrated on the motherboard;

[0013] Figure 2 It is a flowchart of the method of the present invention. Detailed Embodiment

[0014] As Figure 2 shown, the present invention discloses a method for self-checking USB devices on a motherboard, and its working principle is described as follows:

[0015] Taking the android system as an example, when the system starts, it will identify each USB device and load the relevant drivers. At this time, under the USB device tree, the attribute information of each USB device will be recorded, etc. Under the path / sys / kernel / debug / usb / devices of the system, there will be information about each USB device. For example, the following is the information under devices when one of the USB HUBs is working properly:

[0016] T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1

[0017] B: Alloc= 0 / 800 us ( 0%), #Int= 0, #Iso= 0

[0018] D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1

[0019] P: Vendor=1d6b ProdID=0002 Rev= 4.09

[0020] S: Manufacturer=Linux 4.9.44+ ehci_hcd

[0021] S: Product=EHCI Host Controller

[0022] S: SerialNumber=mstar

[0023] C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA

[0024] I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

[0025] E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms

[0026] Based on the above information, the content of Cls (USB type), as well as the information of Vendor (USB manufacturer information) and ProdID (USB product number) can be extracted as keywords and placed into a device in a custom device list group. The Cls = 09 of this device represents a hub, and its Vendor and ProdID are 0x1d6b and 0x0002. Other USB devices are also based on the same principle to establish a group of device lists, which include USB HUB, WIFI, Bluetooth, touch devices, USB flash drives, etc. This can only detect whether the USB device chip is soldered reliably on the motherboard and whether it can work properly, but cannot detect whether the chip of the USB switch (the switch does not require a driver to be loaded, so there is no driver information) is normal. At this time, according to the logic of the device, the USB switch toggles because the switch will switch to different states under different working modes of the device. Due to the switch toggle, the devices in the device list group will increase or decrease; according to this characteristic, the number of known devices under different working modes can be known; also based on this principle, it can be inferred whether the switch is abnormal. For example, if the mode is toggled but the content of the devices in the device list group remains unchanged, it means that the toggle is unsuccessful and the toggle device is abnormal.

[0027] Based on the above principle, the method of the present invention includes the following steps:

[0028] Step 1: Produce a master copy;

[0029] Take a normal main board, switch different working modes (logically switch the USB multiplexer chip), and collect the USB device information in each working mode to generate a USB device array table; the USB device information includes USB type, USB manufacturer information, and USB product number.

[0030] Make the USB device array table of all working modes of the main board into a file as the master copy file.

[0031] Step 2: Preset the information of the master copy file into the self-checking system of the main board, and this self-checking system is used to perform self-checking of the main board under different logics.

[0032] Step 3: Start the self-checking system to detect the main board, sequentially switch the working modes of the main board, and collect the number of USB devices and the corresponding USB device information in each working mode; then compare the information collected in each working mode with the USB device array table in the corresponding working mode in the master copy. If the two are exactly the same, it indicates that the USB devices of the main board in this working mode are normal; if they are inconsistent, it means that the USB devices of the main board in this working mode are abnormal, or the devices for switching modes are abnormal; according to the abnormal conditions of several modes combined with the algorithm, it can be judged whether a certain USB device is abnormal or the USB mode switching device is abnormal; according to the abnormal device information, locate the position of the abnormal USB device and report it to the maintenance personnel to improve the maintenance efficiency; when the USB devices of the main board in all working modes are normal, it indicates that the main board passes the detection.

[0033] In summary, the present invention can perform fully automatic detection of the USB device functions of the main board, without the need for manual intervention and without increasing the hardware cost, and can achieve efficient inspection of USB devices. And when the main board has a fault, it can directly point out the fault point, which is convenient for the maintenance personnel to repair, reduces the analysis time, and improves the efficiency; at the same time, it can improve the efficiency of the production line and quickly eliminate the faulty main board.

[0034] The above is only an embodiment of the present invention, and does not impose any limitation on the technical scope of the present invention. Therefore, any minor modification, equivalent change, and modification made to the above embodiments based on the technical essence of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A method for self-checking a motherboard USB device, characterized in that: The method includes the following steps: Step 1, create a master file; Take a normal main board, switch the different working modes of the main board, and collect the USB device information under each working mode to generate a corresponding USB device array table; make the USB device array tables under all working modes of the main board into a file as the master file; Step 2, preset the information in the master file into the self-checking system of the main board, and this self-checking system is used to perform the self-check of the main board under different logics; Step 3, start the self-checking system to detect the main board, sequentially switch the working modes of the main board, and collect the number of USB devices and the corresponding USB device information under each working mode; then compare the information collected under each working mode with the USB device array table under the corresponding working mode in the master file. If the two are exactly the same, it means that the USB devices under this working mode of the main board are normal; if they are inconsistent, it means that the USB devices under this working mode of the main board are abnormal or the devices used to switch the working mode are abnormal; when the USB devices under all working modes of the main board are normal, it means that the main board passes the detection.

2. The method for self-checking a motherboard USB device according to claim 1, wherein: The USB device information includes the USB type, USB manufacturer information, and USB product number.

Citation Information

Patent Citations

  • Method and system for switching ports of USB (universal serial bus) device

    CN102103555A

  • Vehicular USB device compatibility automated testing method and system

    CN106407067A