CN117251321A - Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board - Google Patents

Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board Download PDF

Info

Publication number
CN117251321A
CN117251321A CN202311160881.9A CN202311160881A CN117251321A CN 117251321 A CN117251321 A CN 117251321A CN 202311160881 A CN202311160881 A CN 202311160881A CN 117251321 A CN117251321 A CN 117251321A
Authority
CN
China
Prior art keywords
usb
information
line
equipment
output line
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.)
Pending
Application number
CN202311160881.9A
Other languages
Chinese (zh)
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.)
SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD
Original Assignee
SHENZHEN CULTRAVIEW DIGITAL 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 SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD filed Critical SHENZHEN CULTRAVIEW DIGITAL TECHNOLOGY CO LTD
Priority to CN202311160881.9A priority Critical patent/CN117251321A/en
Publication of CN117251321A publication Critical patent/CN117251321A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The application is applicable to the technical field of main board line anomaly detection, and provides an anomaly detection method, device, terminal equipment and medium of a main board USB line, which are applied to the terminal equipment, wherein the input end of the USB line is connected with the USB equipment, a plurality of output ends of the USB line are connected with the terminal equipment, and each output end corresponds to a USB output line, and the method comprises the following steps: transmitting a line switching instruction to the main board, wherein the line switching instruction is used for indicating the main board to switch the USB output line; acquiring equipment information of USB equipment through a USB line; and determining abnormal information of the switched USB output line based on the equipment information. The USB circuit can be detected abnormally through the USB equipment, and the USB circuit is simple and easy to operate.

Description

Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board
Technical Field
The application belongs to the technical field of detection of motherboard circuit abnormality, and particularly relates to an abnormality detection method, device, terminal equipment and medium for a motherboard USB circuit.
Background
The main board of the display product (e.g., the commercial display product) generally includes a USB circuit. In general, in order to ensure the performance of a motherboard, it is necessary to perform abnormality detection on a USB circuit in the motherboard before the motherboard leaves the factory, and based on this, how to perform abnormality detection on the USB circuit in the motherboard is a technical problem that needs to be solved.
Disclosure of Invention
The embodiment of the application provides an abnormality detection method, device, terminal equipment and medium for a USB line of a main board, wherein the abnormality detection method, device, terminal equipment and medium can be used for detecting the abnormality of the USB line through the USB equipment.
In a first aspect, an embodiment of the present application provides an anomaly detection method for a USB line of a motherboard, which is applied to a terminal device, where an input end of the USB line is connected to the USB device, and a plurality of output ends of the USB line are connected to the terminal device, and each of the output ends corresponds to a USB output line, where the method includes:
transmitting a line switching instruction to a main board, wherein the line switching instruction is used for indicating the main board to switch a USB output line;
acquiring equipment information of the USB equipment through the USB line;
and determining abnormal information of the switched USB output line based on the equipment information.
In a second aspect, an embodiment of the present application provides an abnormality detection device for a USB circuit of a motherboard, the abnormality detection device being applied to a terminal device, an input end of the USB circuit being connected to the USB device, a plurality of output ends of the USB circuit being connected to the terminal device, each of the output ends corresponding to a USB output circuit, the device including:
the instruction sending module is used for sending a line switching instruction to the main board, wherein the line switching instruction is used for indicating the main board to switch the USB output line;
the information acquisition module is used for acquiring equipment information of the USB equipment through the USB line;
and the abnormality determining module is used for determining abnormality information of the switched USB output line based on the equipment information.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method for detecting an abnormality of a USB circuit of a motherboard described in the first aspect when the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement a method for detecting an abnormality of a USB line of a motherboard as described in the first aspect.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when executed on a terminal device, causes the terminal device to execute an abnormality detection method for a USB line of a motherboard as described in the first aspect.
Compared with the prior art, the embodiment of the application has the beneficial effects that: according to the method, after the USB equipment is connected to the input end of the USB line, the terminal equipment is connected to the plurality of output ends of the USB line, the line switching instruction is sent to the main board, the main board is instructed to switch the USB output line corresponding to the output end, the equipment information of the USB equipment is acquired through the USB line, and further based on the equipment information, the abnormal information of the switched USB output line can be rapidly determined.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present 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 an abnormality detection method for a USB circuit of a motherboard according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a USB circuit according to an embodiment of the present disclosure;
fig. 3 is a flowchart of an abnormality detection method for a USB circuit of a motherboard according to another embodiment of the present disclosure;
FIG. 4 is a schematic block diagram of an abnormality detection device for a USB circuit of a motherboard according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Embodiment one:
referring to fig. 1, fig. 1 shows a schematic flow of an abnormality detection method for a USB circuit of a motherboard, where the method may be applied to a terminal device, an input end of the USB circuit is connected to the USB device, a plurality of output ends of the USB circuit are connected to the terminal device, and each output end corresponds to a USB output circuit. It should be noted that, the input end of the USB line may be connected to a plurality of USB devices, and one of the USB devices is selected for performing abnormality detection. In addition, when the number of USB ports on the terminal equipment is insufficient, the terminal equipment can be connected with the output end of the USB line through a USB hub (hub); the USB hub may be integrated in the terminal device, or may be externally connected to the terminal device.
Optionally, the USB line may be a commercial display touch (touch) working circuit, the USB output line may be a touch (touch) line, referring to fig. 2, fig. 2 is a schematic diagram of the USB line, and the touch line may refer to a touch line such as an open pluggable specification (open pluggable specification, OPS) touch line, a high-definition multimedia interface (high definition multimedia interface, HDMI) touch line, a display interface (DP) touch line, and a video graphics array (video graphics array, VGA) touch line. The USB hub is shown for connecting a USB device to a USB switch (switch) that is used to control the switching of the touch line. It should be noted that the USB hub is not necessary, and the USB hub and the USB switch may be added between the USB switch and the touch line according to design requirements.
Alternatively, the USB circuit may be a control circuit for controlling at least two displays by one mouse.
Optionally, the USB device may be a USB disk, or may be a device such as a wireless network card, a mouse, or a keyboard.
Step 101, a line switching instruction is sent to the motherboard, where the line switching instruction is used to instruct the motherboard to switch the USB output line.
Whether the USB device is connected to the USB line is a key of the abnormality detection method in the application, and in order to avoid inaccurate abnormality detection results caused by unsuccessful connection of the USB device to the USB line, a line switching instruction can be sent to the main board after the USB device is connected to the USB line successfully.
Optionally, before sending the line switching instruction to the motherboard, the method further includes: and receiving connection success prompt information from the main board, wherein the connection success prompt information is used for indicating that the USB equipment is successfully connected.
The main board can detect whether the USB equipment is successfully connected with the USB circuit, and after the USB equipment is successfully connected with the USB circuit, the main board can send a connection success prompt message to the terminal equipment through the communication circuit. The communication line is a line for communicating with the terminal device through the motherboard other than the USB line, and by way of example and not limitation, the motherboard and the terminal device may communicate through a connection data line.
Alternatively, the line switching instruction may be sent to the main board through a communication line. The line switching instruction may be used to instruct the motherboard to switch to a target USB output line, where the target USB output line may be specified by a user, or may be determined based on a set line detection order. For example, there are A, B, C three USB output lines, the set line detection order is to detect from a to C in order, and after the line detection is completed, the target USB output line can be determined to be C based on the set line detection order.
Step 102, obtaining device information of the USB device through the USB line.
Alternatively, there may be a case where information is lost when the device information is acquired, and in order to ensure that the device information can be acquired, the device information of the USB device may be acquired multiple times.
Alternatively, in order to ensure that the motherboard has received the line switching instruction or has executed the line switching instruction, after receiving the response information sent by the motherboard in response to the line switching instruction, the device information of the USB device may be obtained through the USB line. The response information indicates that the motherboard has received the line switching instruction or has executed the line switching instruction.
Alternatively, the USB device, for example, a USB disk, stores therein a target file, the device information may be file information of the target file, and the target file may be a multi_usb_touch1.ctv file, and the file information may be a file name, by way of example and not limitation. In addition, the device information may also be device identification information, such as a device name or a device type.
Step 103, determining abnormal information of the switched USB output line based on the device information.
Alternatively, the abnormality information of the switched USB output line may be determined according to whether or not the device information is acquired. As an example, but not by way of limitation, if the device information is acquired, abnormal information indicating that the switched USB output line is normal may be obtained; otherwise, obtaining abnormal information representing abnormal USB output line after switching.
Alternatively, in order to ensure the accuracy of detection, it may be further determined whether the acquired device information is identical to the preset device information. By way of example, but not limitation, when the device information is file information, if the file information is the same as preset file information, obtaining abnormal information indicating that the switched USB output line is normal; otherwise, obtaining abnormal information representing abnormal USB output line after switching.
According to the method, after the USB equipment is connected to the input end of the USB line, the terminal equipment is connected to the plurality of output ends of the USB line, the line switching instruction is sent to the main board, the main board is instructed to switch the USB output line corresponding to the output end, the equipment information of the USB equipment is acquired through the USB line, and further based on the equipment information, the abnormal information of the switched USB output line can be rapidly determined.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Embodiment two:
referring to fig. 3, fig. 3 shows a schematic flow of an abnormality detection method for a USB circuit of a motherboard provided in the present application.
Step 301, a line switching instruction is sent to the motherboard.
Step 302, obtaining device information of the USB device through the USB line.
The relevant content in steps 301-302 may be referred to the relevant description in steps 101-102, and will not be described here again.
Step 303, obtaining the port identifier of the output end of the transmission device information.
When the main board is in line switching, the line switching failure can be caused due to the damage of the USB hub or the USB switch, namely the line switching failure is remained on the original USB output line, at this time, under the condition that the original USB output line is normal, the equipment information can still be obtained through the original USB output line, which can lead to inaccurate test results and erroneous test judgment.
Therefore, in order to avoid the above situation, the present application also acquires the port identifier of the output end of the transmission device information.
The port identification may be pre-set. Alternatively, the port identification may be determined according to the group number (group) and the identification number (id) of the port, and the port identification BS may be calculated according to the formula bs=id+4 (group-1), by way of example and not limitation; the ports can be numbered sequentially according to the set sequence to obtain the port identification.
As an example, assuming that there are four outputs, the groups and ids corresponding to the four outputs may be (group=0, id=1), (group=0, id=2), (group=0, id=3), (group=0, id=4), respectively. Assuming that eight output terminals are provided, the groups and ids corresponding to the eight output terminals may be (group=0, id=1), (group=0, id=2), (group=0, id=3), (group=0, id=4), (group=1, id=1), (group=1, id=2), (group=1, id=3), (group=1, id=4), respectively.
Step 304, determining exception information based on the device information and the port identification.
The USB output line for transmitting the equipment information can be determined by combining the port identification, so that whether the line is successfully switched or not can be determined according to the port identification when the equipment information is acquired, and further, the abnormal information can be determined.
Optionally, determining the anomaly information based on the device information and the port identification includes: if the equipment information is preset equipment information and the port identifier is the identifier of the output end corresponding to the switched USB output line, obtaining abnormal information indicating that the switched USB output line is normal; if the equipment information is preset equipment information and the port identification is not the identification of the output end corresponding to the switched USB output line, obtaining abnormal information representing abnormal switching of the USB output line.
By way of example and not limitation, there are A, B, C three USB output lines, and the line switch instruction instructs to switch line B to C. If the acquired equipment information is the same as the preset equipment information and the port identifier is the port identifier corresponding to the port identifier C, abnormal information indicating that the switched USB output line is normal can be obtained. If the acquired equipment information is the same as the preset equipment information, but the port identifier is the port identifier corresponding to the port identifier B, the abnormal information indicating that the USB output line C is abnormal in switching can be obtained.
Alternatively, if the device information is not acquired, it cannot be determined whether the line is successfully switched, and the abnormality information indicating that the USB line is abnormal may be obtained.
According to the method and the device, based on the equipment information and the port identification, the abnormal information of the switched USB output line is determined, the situation that test misjudgment occurs under the condition that the line is not switched successfully can be avoided, and the situation that the USB output line is switched abnormally can be detected.
Embodiment III:
referring to fig. 4, fig. 4 shows a schematic structure of an abnormality detection device for a USB circuit of a motherboard, where the device is applied to a terminal device, an input end of the USB circuit is connected to the USB device, a plurality of output ends of the USB circuit are connected to the terminal device, and each output end corresponds to a USB output circuit. For ease of illustration, only portions relevant to embodiments of the present application are shown in the drawings.
Referring to fig. 4, the apparatus includes an instruction transmitting module 41, an information acquiring module 42, and an abnormality determining module 43; the specific functions of each module are as follows:
the instruction sending module 41 is configured to send a line switching instruction to the motherboard, where the line switching instruction is used to instruct the motherboard to switch the USB output line;
an information obtaining module 42, configured to obtain device information of the USB device through the USB line;
the abnormality determination module 43 is configured to determine abnormality information of the switched USB output line based on the device information.
Optionally, the USB device stores a target file, the device information is file information of the target file, and the anomaly determination module 43 is specifically configured to:
if the file information is the same as the preset file information, obtaining abnormal information indicating that the switched USB output line is normal; otherwise, obtaining abnormal information representing abnormal USB output line after switching.
Alternatively, the anomaly determination module 43 is specifically configured to:
acquiring a port identifier of an output end of transmission equipment information;
based on the device information and the port identification, anomaly information is determined.
Alternatively, the anomaly determination module 43 is specifically configured to:
if the equipment information is preset equipment information and the port identifier is the identifier of the output end corresponding to the switched USB output line, obtaining abnormal information indicating that the switched USB output line is normal;
if the equipment information is preset equipment information and the port identification is not the identification of the output end corresponding to the switched USB output line, obtaining abnormal information representing abnormal switching of the USB output line.
Optionally, the device further comprises a prompt message receiving module, configured to:
and receiving connection success prompt information from the main board, wherein the connection success prompt information is used for indicating that the USB equipment is successfully connected.
Optionally, the USB output line is a touch line.
Optionally, the USB device is a USB disk.
The abnormality detection device for a USB circuit of a motherboard provided in the embodiment of the present application may be applied to the first and second embodiments of the foregoing method, and details refer to the description of the first and second embodiments of the foregoing method, which are not repeated herein.
Embodiment four:
referring to fig. 5, fig. 5 shows a schematic structure of a terminal device according to an embodiment of the present application. The terminal device 5 of this embodiment includes: at least one processor 50 (only one is shown in fig. 5), a memory 51, and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, wherein the steps of the abnormality detection method for a motherboard USB line in the first and second embodiments described above are implemented when the processor 50 executes the computer program 52.
The terminal device 5 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device 5 may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the terminal device 5 and is not meant to be limiting as the terminal device 5, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 50 may be a central processing unit (Central Processing Unit, CPU), the processor 50 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may in some embodiments be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may in other embodiments also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a terminal device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The utility model provides a mainboard USB circuit's anomaly detection method which characterized in that is applied to terminal equipment, USB equipment is connected to the input of USB circuit, a plurality of output of USB circuit connect terminal equipment, each output corresponds to USB output circuit, the method includes:
transmitting a line switching instruction to a main board, wherein the line switching instruction is used for indicating the main board to switch a USB output line;
acquiring equipment information of the USB equipment through the USB line;
and determining abnormal information of the switched USB output line based on the equipment information.
2. The method of claim 1, wherein the USB device has a target file stored therein, the device information is file information of the target file, and the determining, based on the device information, abnormality information of the switched USB output line includes:
if the file information is the same as the preset file information, obtaining the abnormal information indicating that the switched USB output line is normal; otherwise, obtaining the abnormality information indicating abnormality of the USB output line after switching.
3. The method of claim 1, wherein determining anomaly information for the switched USB output line based on the device information comprises:
acquiring a port identifier of an output end for transmitting the equipment information;
and determining the abnormal information based on the equipment information and the port identification.
4. The method of claim 3, wherein the determining the anomaly information based on the device information and the port identification comprises:
if the equipment information is preset equipment information and the port identifier is the identifier of the output end corresponding to the switched USB output line, obtaining the abnormal information indicating that the switched USB output line is normal;
if the equipment information is preset equipment information, and the port identifier is not the identifier of the output end corresponding to the switched USB output line, obtaining the abnormal information representing abnormal switching of the USB output line.
5. The method of claim 1, wherein prior to sending the line switch instruction to the motherboard, the method further comprises:
and receiving connection success prompt information from the main board, wherein the connection success prompt information is used for indicating that the USB equipment is successfully connected.
6. The method of claim 1, wherein the USB output line is a touch line.
7. The method of claim 1, wherein the USB device is a USB disk.
8. An abnormality detection device for a USB line of a motherboard, which is applied to a terminal device, an input end of the USB line is connected to the USB device, a plurality of output ends of the USB line are connected to the terminal device, and each of the output ends corresponds to a USB output line, the device includes:
the instruction sending module is used for sending a line switching instruction to the main board, wherein the line switching instruction is used for indicating the main board to switch the USB output line;
the information acquisition module is used for acquiring equipment information of the USB equipment through the USB line;
and the abnormality determining module is used for determining abnormality information of the switched USB output line based on the equipment information.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 7.
CN202311160881.9A 2023-09-08 2023-09-08 Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board Pending CN117251321A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311160881.9A CN117251321A (en) 2023-09-08 2023-09-08 Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311160881.9A CN117251321A (en) 2023-09-08 2023-09-08 Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board

Publications (1)

Publication Number Publication Date
CN117251321A true CN117251321A (en) 2023-12-19

Family

ID=89134190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311160881.9A Pending CN117251321A (en) 2023-09-08 2023-09-08 Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board

Country Status (1)

Country Link
CN (1) CN117251321A (en)

Similar Documents

Publication Publication Date Title
CN111026367B (en) Micro-service arrangement method, device, terminal equipment and storage medium
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN112235370B (en) Equipment information synchronization method, synchronization device, main equipment and storage medium
CN107748718B (en) Application program testing method and device and server
CN111211929A (en) Fault positioning method, fault positioning device, control equipment and intelligent equipment
CN112527582A (en) Detection method, detection device, detection equipment and storage medium of server cable
EP4270198A1 (en) Fault diagnosis circuit, method and apparatus, and computer-readable storage medium
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN113132522A (en) Test method, device, server and medium
CN117251321A (en) Method, device, terminal equipment and medium for detecting abnormality of USB circuit of main board
CN107731154B (en) LED display screen data backup device and method and terminal equipment
CN111220899A (en) CEC circuit testing method and device of HDMI interface and terminal
CN108763053B (en) Method for generating buried point name and terminal equipment
CN115643172A (en) Abnormity detection method, abnormity detection device, terminal equipment and storage medium
CN115729872A (en) Computing device and detection method for PCIE cable connection
CN116048889A (en) Detection method and related device for cable connection of cabinet server
CN113886302A (en) Serial port number obtaining method and device of application equipment, terminal equipment and storage medium
CN113778482A (en) Dynamic updating method of running program, embedded controller and electronic equipment
CN113873026A (en) Dynamic timeout response method, device, terminal equipment and storage medium
CN108629175B (en) Access control method and access control device of USB mass storage equipment
CN117971608B (en) Method, device, equipment and medium for acquiring and sending hard disk logs
CN211628234U (en) Multi-serial port extension circuit and multi-serial port television board card
CN113141603B (en) Data communication method, system, master terminal device and slave terminal device
CN112214486B (en) Data storage method, system and device
CN114070659B (en) Equipment locking method and device and terminal equipment

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