Universal serial bus management method and device, computer equipment and storage medium
By adjusting the preset variable values and stability experiments of the general serial bus, the problem of error information reporting during the general serial bus management process is solved, the stability and rapid data transmission of USB devices are achieved, and the hardware cost is reduced.
Patent Information
- Application Number
- CN202411319905.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-01-14
AI Technical Summary
During the general serial bus management process, after an error message occurs, the USB device cannot be adjusted to avoid the error message again, affecting the copy or transfer of data.
By determining and modifying the preset variable value of the universal serial bus, adjusting the USB signal quality, and conducting stability experiments until no error message occurs during the experiment to ensure the stability of the USB link.
There is no need to modify the hardware, which reduces the cost of R&D hardware and completely solves the error information problem of the universal serial bus in the server system, so that USB devices can quickly transmit data without faults and errors.
Smart Images

Figure CN119311490A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a universal serial bus management method, device, computer equipment and storage medium. Background Art
[0002] Universal Serial Bus (USB) can transfer data between computers and external devices, such as keyboards, mice, printers, cameras, USB hard disks, USB flash drives, etc., which greatly improves the expandability and convenience of computers and allows users to easily connect and use various external devices. In addition to the USB interface of the physical USB, the computer can also provide a USB interface through a virtual USB device. The function of this virtual USB device is exactly the same as that of the physical USB device.
[0003] It is necessary to ensure that the physical USB device and the virtual USB device in the computer function normally. If the USB function is abnormal and an error message appears, the USB needs to be adjusted to ensure the stability of the USB and ensure that no error message is generated. If it is not adjusted, the function of the interface that relies on this USB device for information exchange will be seriously affected. In addition, if the USB function is abnormal or an error message appears, the virtual USB device will be unusable. In addition, if the computer has only a USB interface or the external device connected to it has only a USB interface, data cannot be copied or transferred between the computer and the external device.
[0004] Therefore, the related art has a problem in that, during the management of the universal serial bus, after an error message appears, it is not possible to adjust the USB device to avoid the error message from being generated again, thus affecting the copying or transmission of data. Summary of the invention
[0005] In view of this, the present invention provides a universal serial bus management method, apparatus, computer equipment and storage medium to solve the problem that in the process of managing the universal serial bus, after an error message appears, it is impossible to adjust the USB device to avoid the error message from being generated again, thereby affecting the copying or transmission of data.
[0006] In a first aspect, the present invention provides a universal serial bus management method, comprising:
[0007] In the case of error information of the universal serial bus, determining a preset variable value of the universal serial bus, wherein the preset variable value is used to control the signal quality of the universal serial bus;
[0008] Modify the preset variable value to a preset value to obtain an adjusted universal serial bus;
[0009] A stability experiment is performed on the adjusted universal serial bus. If an error message appears during the experiment, a new preset value is determined, the preset variable value is modified to the new preset value, and subsequent steps are executed starting from the stability experiment on the adjusted universal serial bus until no error message appears during the experiment.
[0010] The universal serial bus management method provided in this embodiment adjusts the universal serial bus by modifying the preset variable value to a preset value when there is error information of the universal serial bus, without changing the hardware, thereby reducing the cost of hardware research and development. In addition, a stability experiment is conducted on the adjusted universal serial bus, and the preset variable value is reset according to the experimental results until no error information appears during the experiment. The problem of error information of the universal serial bus appearing in the server system is completely solved, and this embodiment is applicable to any architecture server and has a wide range of applications, so that the universal serial bus device can quickly transmit data when the universal serial bus is fault-free and error-free. The problem that after the error information appears in the management process of the universal serial bus, it is impossible to adjust the USB device to avoid the error information from being generated again, which affects the copying or transmission of data.
[0011] In some optional implementations, determining a preset variable value of a universal serial bus includes:
[0012] Obtaining a register address of a base address register of a universal serial bus and a preset number of the universal serial bus;
[0013] According to the register address and the preset number, obtain the specific address information of the universal serial bus;
[0014] According to the specific address information, a target register of the universal serial bus is determined, wherein the target register contains a preset variable value.
[0015] In this embodiment, the specific address information of the universal serial bus is obtained according to the register address and the preset number of the universal serial bus, the target register of the universal serial bus is determined according to the specific address information, and the preset variable value is read from the target register, so that the universal serial bus can be adjusted later by modifying the preset variable value to the preset value.
[0016] In some optional implementations, modifying the preset variable value to a preset value to obtain an adjusted universal serial bus includes:
[0017] The first preset bit of the preset variable value is cleared to zero, the value of the second preset bit of the preset variable value is modified to the first value, the first preset field of the preset variable value is modified to the second value, the second preset field of the preset variable value is modified to the third value, and the third preset field of the preset variable value is modified to the fourth value, to obtain the modified preset variable value;
[0018] Writing the modified preset variable value into the target register to obtain the modified target register;
[0019] The modified target register is written into a preset address to obtain an adjusted universal serial bus.
[0020] In this implementation, the universal serial bus is adjusted by modifying the preset variable value to a preset numerical value without changing the hardware, thereby reducing the cost of hardware research and development.
[0021] In some optional implementations, a stability experiment is performed on the adjusted universal serial bus, including:
[0022] After each preset interval, the adjusted universal serial bus is opened, a preset instruction is sent through the adjusted universal serial bus, the adjusted universal serial bus is closed, and it is determined whether the adjusted universal serial bus has an error message within a first time period to obtain first experimental process information;
[0023] Disconnecting and connecting the virtual network card corresponding to the adjusted universal serial bus, determining whether the adjusted universal serial bus has an error message within a second time period, and obtaining second experimental process information;
[0024] Perform a positive network performance test on the adjusted universal serial bus, and determine whether the adjusted universal serial bus has an error message during the test, and then go to the third experimental process information;
[0025] Performing a reverse network performance test on the adjusted universal serial bus, determining whether the adjusted universal serial bus has an error message during the test, and obtaining fourth experimental process information;
[0026] Network performance testing includes:
[0027] Determine a first network card corresponding to a baseboard management controller in the server, and determine a second network card corresponding to an operating system in the server;
[0028] Inputting first address information in the baseboard management controller, connecting to a first device corresponding to the first address information using a first network card, inputting second address information in the operating system, and connecting to a second device corresponding to the second address information using a second network card;
[0029] Check whether there is any error message about the adjusted Universal Serial Bus under the operating system.
[0030] In this embodiment, a stability test is performed on the adjusted USB, and based on the test results, it is determined whether the problem of USB error messages appearing in the server system has been completely solved, so that the USB device can quickly transmit data without failure or error on the USB.
[0031] In some optional implementations, after performing a stability test on the adjusted universal serial bus, the method further includes:
[0032] Determine whether the adjusted universal serial bus meets preset conditions, wherein the preset conditions include that there is no error information in the first experimental process information and the second experimental process information, the similarity between the third experimental process information and the fourth experimental process information is greater than a preset threshold, and there is no error information in the third experimental process information and the fourth experimental process information;
[0033] If it is satisfied, it is determined that no error message appears during the experiment;
[0034] If it is not satisfied, an error message will be displayed during the experiment.
[0035] In some optional implementations, determining a new preset value includes:
[0036] Performing a signal simulation test on the adjusted universal serial bus to obtain a test result;
[0037] According to the test results, determine the new preset value.
[0038] In this embodiment, a signal simulation test is performed on the adjusted universal serial bus, and a new preset value is determined based on the test result, so that the new preset value can ensure the stability of the USB link and improve the success rate of solving the error information problem of the universal serial bus in the server system.
[0039] In some optional implementations, before determining the preset variable value of the universal serial bus, the method further includes:
[0040] Control the server to power on;
[0041] During the server startup process and after entering the operating system, it is determined whether there is error information of the server's universal serial bus in the server, wherein the universal serial bus includes a first port set on the platform path controller and a second port set on the baseboard management controller, the first port and the second port are connected through a data signal line, and the data signal line is connected to an impedance component.
[0042] In a second aspect, the present invention provides a universal serial bus management device, comprising:
[0043] A determination module, used for determining a preset variable value of the universal serial bus when there is error information of the universal serial bus, wherein the preset variable value is used to control the signal quality of the universal serial bus;
[0044] A modification module, used for modifying a preset variable value to a preset value to obtain an adjusted universal serial bus;
[0045] The test module is used to perform a stability experiment on the adjusted universal serial bus. If an error message appears during the experiment, a new preset value is determined, the preset variable value is modified to the new preset value, and subsequent steps are executed starting from the stability experiment on the adjusted universal serial bus until no error message appears during the experiment.
[0046] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the universal serial bus management method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0047] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the universal serial bus management method of the first aspect or any corresponding embodiment thereof.
[0048] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions for causing a computer to execute the universal serial bus management method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is a schematic structural diagram of a server mainboard according to an embodiment of the present invention;
[0051] Figure 2 is a flowchart of a universal serial bus management method according to an embodiment of the present invention;
[0052] Figure 3 is a flowchart of a method for solving USB error reporting and verification in a system according to an embodiment of the present invention;
[0053] Figure 4 It is a swim lane diagram of a method for solving USB error reporting and verification in a system according to an embodiment of the present invention;
[0054] Figure 5 is a schematic diagram of a universal serial bus of a server according to an embodiment of the present invention;
[0055] Figure 6 is a structural block diagram of a universal serial bus management device according to an embodiment of the present invention;
[0056] Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0058] Universal Serial Bus (USB) is a computer hardware interface standard used to implement data transmission and communication between different USB devices. USB devices are divided into two types: Host and Device. Host devices are responsible for controlling and transmitting data, while Device devices are responsible for sending or receiving data to the Host. Therefore, USB devices are widely used in various electronic products. No matter how the USB device is used, the USB interface needs to be integrated in the core components of the electronic device. If there is no hardware link support, the USB interface will not be able to use the USB device. In the server, the USB interface is a basic and necessary basic peripheral interface, such as: Figure 1 This is a schematic diagram of the server motherboard structure. Figure 1As shown, USB is used in many places in the server. The server's BMC (Baseboard Management Controller) and PCH (Platform Controller Hub) use USB to transmit data. The server's CPU (Central Processing Unit) 1 and CPU0 are connected to multiple USB devices through USB protocols, including USB0, USB1, etc. CPU1 and CPU0 use UPI (Ultra Path Interconnect, high-speed interconnect technology), CCIX (Coherent Connectivity Interface Crosspoint, open standard for interconnect interface), GMIX (General Matrix Interconnect, high-speed interconnect technology for connecting multiple computing nodes or accelerators) and other technologies to achieve data transmission. CPU0 uses SPI (Serial Peripheral Interface, synchronous serial communication protocol), QSPI (QuadSerial Peripheral Interface, extended synchronous serial communication protocol), ESPI (Enhanced Serial Peripheral Interface, enhanced synchronous serial communication protocol) and other protocols to transmit data to the BIOS (Basic Input Output System, basic input and output system) system. The CPU realizes data transmission with the BMC and PCH respectively through LPC (Low Pin Count, a bus standard for internal communication in the computer), PCI (Peripheral Component Interconnect, a peripheral component interconnection standard), DMI (Direct Media Interface, direct media interface), etc.
[0059] In addition to the physical USB port, a USB interface can also be provided through a virtual USB device for use. The function of this virtual USB device is exactly the same as that of the physical USB. It is necessary to ensure that the physical USB device and the virtual USB device in the computer function normally. If the USB function is abnormal and an error message appears, the current technical solution cannot adjust the USB to ensure that no error message is generated, so that the USB failure or error message cannot cause data transmission through the USB interface. However, once the server has only a USB interface or other electronic products have only a USB interface, data cannot be copied or transferred.
[0060] Based on the above content, the embodiment of the present invention provides a universal serial bus management method, which performs physical improvements on USB and BIOS-side algorithm improvements respectively, and performs impedance design on the data differential signal pair of the USB2.0 interface through physical hardware design, so as to solve the problem of error reporting of the USB port under the system or other environments. When the link impedance of the physical hardware design does not change, the BIOS end fine-tunes the setting value of the EQ parameter of the USB2.0 on the PCH end, loads the setting value of the EQ parameter when the BIOS starts, and tests and verifies the validity of the EQ parameter on the USB under the server operating system (OS). If it is invalid, the EQ parameter is adjusted continuously and cycled in sequence until there is no error information of the USB interface under the OS. The embodiment of the present invention can completely solve the problem of error reporting of the USB port under the system or other environments, and the above scheme is applicable to any architecture server and has a wide range of applications. In order to reduce the cost of R&D hardware, the USB port error reporting problem can be repaired through BIOS without changing the hardware, and the effect of fast data transmission of USB port devices without faults and errors is improved.
[0061] According to an embodiment of the present invention, a universal serial bus management embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer device with data processing capabilities, such as a computer, a server, etc., and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0062] In this embodiment, a universal serial bus management method is provided, which can be used for the above-mentioned computer device. Figure 2 is a flow chart of a universal serial bus management method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0063] Step S201 : in the case where error information of the universal serial bus exists, determining a preset variable value of the universal serial bus, wherein the preset variable value is used to control the signal quality of the universal serial bus.
[0064] Specifically, the data signal line of the physical link of the USB port 2.0 of the PCH of the server motherboard is connected to the data signal line of the physical link of the USB2.0 of the BMC end, and a 45-ohm impedance component is physically connected to the differential pair of the data signal line. The fault-tolerant impedance value is a ratio of plus or minus 10%, that is, 35 to 55 ohms impedance to achieve link stability. If there is an error message of the USB device in the server operating system (OS), it means that the impedance value of the set impedance component is incorrect, and it needs to be corrected by adjusting the parameters of the BIOS system; if there is no error message of the USB device based on the link of 1, it means that the impedance value setting is normal and there is no problem.
[0065] After the server is powered on, the server BIOS system determines whether there is any error information about the Universal Serial Bus (USB) in the server's operating system (OS) during the server startup process or when entering the operating system. If there is error information about the Universal Serial Bus, the BIOS system determines the preset variable value of the Universal Serial Bus. The preset variable value is, for example, the setting value of the EQ parameter of USB2.0 at the PCH end, where the EQ parameter is a signal quality control variable when the USB is in use, so the stability of the USB link can be guaranteed by adjusting the EQ value.
[0066] Step S202, modifying the preset variable value to a preset value to obtain an adjusted universal serial bus.
[0067] Specifically, the preset variable values are modified to preset values, for example: BIT14 of USB2PP1 (i.e., EQ parameter) of PCH's USB is modified to 1, BIT10:8 is modified to 110, BIT13:11 is modified to 001, and BIT24:23 of USB2PP2 is modified to 10. The preset values are set according to actual needs and are not limited here.
[0068] By adjusting the preset variable value, the universal serial bus is adjusted to obtain the adjusted universal serial bus.
[0069] Step S203, conduct a stability test on the adjusted universal serial bus. If an error message appears during the experiment, determine a new preset value, modify the preset variable value to the new preset value, and execute subsequent steps starting from the stability test on the adjusted universal serial bus until no error message appears during the experiment.
[0070] Specifically, the setting value of the EQ parameter is loaded when the BIOS system is started, and a stability test is performed on the adjusted universal serial bus under the server operating system (OS), and it is determined according to the experimental results whether the modification of the EQ parameter in step S202 is effective in ensuring the error message of no USB interface under the OS. If an error message appears during the experiment, it means that the modification of the EQ parameter in step S202 is invalid for ensuring the error message of no USB interface under the OS, and a new preset value is determined.
[0071] Re-execute step S202, continue to modify the EQ parameter to a new preset value, execute step S203 to verify again, and repeat until no error message appears during the experiment. If no error message appears during the experiment, it is determined that the modification of the EQ parameter in step S202 is effective in ensuring the error message of no USB interface under OS.
[0072] It should be noted that the system of this embodiment has strong replicability and scalability. By setting a fixed impedance value on the differential pair of data signals of the USB2.0 physical link at the BMC end and the PCH end to confirm that the USB interface has no errors or faults during data transmission, if an error still occurs under this premise and the motherboard has been mass-produced, this embodiment adjusts the EQ parameters of the USB2.0 interface of the PCH at the BIOS end. At the same time, a test is performed to verify whether the adjusted EQ parameters are effective to confirm that no USB error information is generated in the system. This embodiment can adjust the actual BIOS settings based on the EQ parameters that are actually verified to have no errors and is not affected by the architecture.
[0073] The universal serial bus management method provided in this embodiment adjusts the universal serial bus by modifying the preset variable value to a preset value when there is error information of the universal serial bus, without changing the hardware, thereby reducing the cost of hardware research and development. In addition, a stability experiment is conducted on the adjusted universal serial bus, and the preset variable value is reset according to the experimental results until no error information appears during the experiment. The problem of error information of the universal serial bus appearing in the server system is completely solved, and this embodiment is applicable to any architecture server and has a wide range of applications, so that the universal serial bus device can quickly transmit data when the universal serial bus is fault-free and error-free. The problem that after the error information appears in the management process of the universal serial bus, it is impossible to adjust the USB device to avoid the error information from being generated again, which affects the copying or transmission of data.
[0074] In some optional implementations, determining a preset variable value of a universal serial bus includes:
[0075] Obtaining a register address of a base address register of a universal serial bus and a preset number of the universal serial bus;
[0076] According to the register address and the preset number, obtain the specific address information of the universal serial bus;
[0077] According to the specific address information, a target register of the universal serial bus is determined, wherein the target register contains a preset variable value.
[0078] Specifically, the register address of the base address register of the universal serial bus (USB) is obtained, and the register address of the base address register is, for example, the BAR (Base Address Register) address of the PCI configuration space of the USB device of the universal serial bus. The preset number of the universal serial bus is obtained, and the preset number is, for example, the BDF (Bus / Device / Function) number of the USB device of the universal serial bus.
[0079] According to the preset number, the offset of the register address is determined, and the specific address information of the USB device of the universal serial bus is determined by adding the register address to the offset.
[0080] According to the specific address information, the target register of the universal serial bus is determined. For example, the target register is the register with an offset address of 0xe0. The data in the target register is read to obtain a preset variable value.
[0081] The above content is as follows Figure 3 As shown, the server restarts and executes the EQ parameter setting of the PCH segment USB of the BIOS; during the BIOS startup process, the BAR address of the PCI configuration space of the USB device is read; the BDF number of the current USB device is obtained to confirm the base address plus the offset to confirm the specific address information of the current USB end device; and the data of the offset address of 0xe0 is read.
[0082] The above content is as follows Figure 4 As shown, the BIOS system executes the following steps: the server restarts and executes the EQ parameter setting of the PCH segment USB of the BIOS; during the BIOS startup process, the BAR address of the PCI configuration space of the USB device is read; the BDF number of the current USB device is obtained to confirm the base address plus the offset to confirm the specific address information of the current USB end device; and the data of the offset address of 0xe0 is read.
[0083] In this embodiment, the specific address information of the universal serial bus is obtained according to the register address and the preset number of the universal serial bus, the target register of the universal serial bus is determined according to the specific address information, and the preset variable value is read from the target register, so that the universal serial bus can be adjusted later by modifying the preset variable value to the preset value.
[0084] In some optional implementations, modifying the preset variable value to a preset value to obtain an adjusted universal serial bus includes:
[0085] The first preset bit of the preset variable value is cleared to zero, the value of the second preset bit of the preset variable value is modified to the first value, the first preset field of the preset variable value is modified to the second value, the second preset field of the preset variable value is modified to the third value, and the third preset field of the preset variable value is modified to the fourth value, to obtain the modified preset variable value;
[0086] Writing the modified preset variable value into the target register to obtain the modified target register;
[0087] The modified target register is written into a preset address to obtain an adjusted universal serial bus.
[0088] Specifically, the preset variable value is, for example, USB2PP1 of the USB of the PCH. The preset values include a first value to a fourth value, and the preset values are set according to actual needs and are not limited here.
[0089] The first preset bit is, for example, the BIT8 bit of the preset variable value. The second preset bit is, for example, the BIT14 bit of the preset variable value. The first preset field is, for example, the 10th bit (BIT) to the 8th bit of the preset variable value. The second preset field is, for example, the 13th bit to the 11th bit of the preset variable value. The third preset field is, for example, the 24th bit and the 23rd bit of the preset variable value. The first numerical value is, for example, 1. The second numerical value is, for example, 110. The third numerical value is, for example, 001. The fourth numerical value is, for example, 10.
[0090] Clear BIT8 of the preset variable value, set BIT14 of the preset variable value to 1, set the 10th to 8th bits of the preset variable value to 110 respectively, set the 13th to 11th bits of the preset variable value to 001 respectively, and set the 24th and 23rd bits of the preset variable value to 10 respectively.
[0091] The target register is, for example, a register with an offset address of 0xe0. The modified preset variable value is written into the target register to obtain the modified target register. The preset address is, for example, 0x0000C422. The modified target register is written into the preset address to obtain the adjusted universal serial bus.
[0092] The above content is as follows Figure 3 As shown, just clear bit 8 of the acquired data, and then write the register 0xe0 to 0x0000C422. Figure 4 As shown, the BIOS system can execute the clearing of bit 8 of the acquired data, and then write the register 0xe0 to 0x0000C422.
[0093] In this implementation, the universal serial bus is adjusted by modifying the preset variable value to a preset numerical value without changing the hardware, thereby reducing the cost of hardware research and development.
[0094] In some optional implementations, a stability experiment is performed on the adjusted universal serial bus, including:
[0095] After each preset interval, the adjusted universal serial bus is opened, a preset instruction is sent through the adjusted universal serial bus, the adjusted universal serial bus is closed, and it is determined whether the adjusted universal serial bus has an error message within a first time period to obtain first experimental process information;
[0096] Disconnecting and connecting the virtual network card corresponding to the adjusted universal serial bus, determining whether the adjusted universal serial bus has an error message within a second time period, and obtaining second experimental process information;
[0097] Perform a positive network performance test on the adjusted universal serial bus, and determine whether the adjusted universal serial bus has an error message during the test, and then go to the third experimental process information;
[0098] Performing a reverse network performance test on the adjusted universal serial bus, determining whether the adjusted universal serial bus has an error message during the test, and obtaining fourth experimental process information;
[0099] Network performance testing includes:
[0100] Determine a first network card corresponding to a baseboard management controller in the server, and determine a second network card corresponding to an operating system in the server;
[0101] Inputting first address information in the baseboard management controller, connecting to a first device corresponding to the first address information using a first network card, inputting second address information in the operating system, and connecting to a second device corresponding to the second address information using a second network card;
[0102] Check whether there is any error message about the adjusted Universal Serial Bus under the operating system.
[0103] Specifically, the setting value of the EQ parameter is loaded when the BIOS system is started, and a stability experiment is performed on the adjusted universal serial bus under the server operating system (OS). According to the experimental results, it is determined whether the modification of the EQ parameter in step S202 is effective in ensuring the error message of no USB interface under the OS.
[0104] Through the above parameter adjustment, it is necessary to verify whether the adjustment of these parameters is effective. If there is no USB fault, it is considered that the adjusted parameters are effective. If there is still a USB fault, it is necessary to readjust the EQ parameter setting value and verify again until the USB has no USB fault error under this test. The present invention can include the problem of verifying whether the USB has a fault.
[0105] The stability test can include three tests, for example:
[0106] Experiment 1: After each preset interval, the adjusted universal serial bus is opened, a preset instruction is sent through the adjusted universal serial bus, the adjusted universal serial bus is closed, and it is determined whether the adjusted universal serial bus has an error message in the first time period, and the first experimental process information is obtained. Among them, the USB channel, that is, the adjusted universal serial bus, is opened by the code ipmitool raw 0x32 0xAA0x00. The USB channel, that is, the adjusted universal serial bus, is closed by the code ipmitool raw 0x32 0xAA 0x01. The preset interval is, for example, 15s, the preset instruction is, for example, an IO (Input / Output, input / output) instruction, and the first time period is, for example, 12 hours. The adjusted universal serial bus is opened and closed, and after each 15s, a preset instruction is sent through the adjusted universal serial bus to determine whether the adjusted universal serial bus has an error message in the first time period, and the judgment result is recorded in the first experimental process information. Therefore, if the adjusted universal serial bus has an error message in the first time period, it will be recorded in the first experimental process information.
[0107] Experiment 2, disconnect and connect the virtual network card corresponding to the adjusted universal serial bus. For example, there will be a USB0 network card under the server BMC. In the process of disconnecting and connecting the virtual network card, it is necessary to use the code ipmitool raw0x32 0xaa 0x03 to determine the virtual USB network card of USB0 under the BMC, and turn off the lan over USB (local area network through USB) function through the code ipmitool raw 0x32 0xaa 0x02. Determine whether the adjusted universal serial bus has an error message in the second time period, and record the judgment result in the second experimental process information. Therefore, if the adjusted universal serial bus has an error message in the second time period, it will be recorded in the second experimental process information.
[0108] Experiment three, perform forward network performance test and reverse network performance test on the adjusted universal serial bus, network performance test, for example: Iperf test. In the process of performing forward network performance test on the adjusted universal serial bus, determine whether the adjusted universal serial bus has error information during the test, and record the determination result in the third experimental process information. Therefore, if the adjusted universal serial bus has error information during the forward network performance test, it will be recorded in the third experimental process information. In the process of performing reverse network performance test on the adjusted universal serial bus, determine whether error information occurs during the reverse network performance test, and record the determination result in the fourth experimental process information. Therefore, if the adjusted universal serial bus has error information during the reverse network performance test, it will be recorded in the fourth experimental process information.
[0109] The process of network performance testing includes the following steps:
[0110] Use the code pmitool raw 0x32 0xaa 0x03 to determine the first network card corresponding to the baseboard management controller (BMC) in the server. For example, there will be a USB0 network card under the BMC. The first network card needs to log in to the BMC through the serial port to view it. Use the code "ifconfig; ifconfig A 169.254.0.10" to confirm the second network card corresponding to the operating system (OS) in the server. For example, the second network card is named enp0s20f0u8u3c2.
[0111] The first address information is, for example, Iperf3-s, and the second address information is, for example, Iperf3-c 169.254.0.17–t1200. The first address information is input into a baseboard management controller (BMC), a first network card is used to connect to a first device corresponding to the first address information, and the second address information is input into an operating system (OS), and a second network card is used to connect to a second device corresponding to the second address information.
[0112] Use the code Dmesg|grep-I usb|grep-I error to check whether there is error information of the adjusted universal serial bus under the operating system (OS).
[0113] The above content is as follows Figure 3 As shown, during the server startup process or when entering the operating system, open and close the USB test channel, with an instruction every 15 seconds; determine whether the error message is reproduced for more than 12 hours. If so, it is in line with expectations and the system or startup process is used normally. If not, readjust the EQ parameters. Disconnect and connect the virtual USB network card; determine whether there is no problem for more than 10 hours. If so, it is in line with expectations and the system or startup process is used normally. If not, readjust the EQ parameters. Iperf tests whether there is no error in the forward or reverse direction and there is no significant difference in the Iperf results. If so, it is in line with expectations and the system or startup process is used normally. If not, readjust the EQ parameters.
[0114] The above content is as follows Figure 4 As shown, the BIOS system executes the server startup process or enters the operating system. The operating system (OS) executes the opening and closing of the USB test channel, with an instruction every 15 seconds; it is determined whether the error message is reproduced for more than 12 hours. If so, it is in line with expectations and the system or the startup process is used normally. If not, the EQ parameters are readjusted. Disconnect and connect the virtual USB network card; it is determined whether there is no problem for more than 10 hours. If so, it is in line with expectations and the system or the startup process is used normally. If not, the EQ parameters are readjusted. Iperf tests whether there is no error in the forward or reverse direction and there is no significant difference in the Iperf results. If so, it is in line with expectations and the system or the startup process is used normally. If not, the EQ parameters are readjusted.
[0115] In this embodiment, a stability test is performed on the adjusted USB, and based on the test results, it is determined whether the problem of USB error messages appearing in the server system has been completely solved, so that the USB device can quickly transmit data without failure or error on the USB.
[0116] In some optional implementations, after performing a stability test on the adjusted universal serial bus, the method further includes:
[0117] Determine whether the adjusted universal serial bus meets preset conditions, wherein the preset conditions include that there is no error information in the first experimental process information and the second experimental process information, the similarity between the third experimental process information and the fourth experimental process information is greater than a preset threshold, and there is no error information in the third experimental process information and the fourth experimental process information;
[0118] If it is satisfied, it is determined that no error message appears during the experiment;
[0119] If it is not satisfied, an error message will be displayed during the experiment.
[0120] Specifically, if the result of any one of the three experiments does not meet expectations, it is determined that the modification of the EQ parameters in step S202 is invalid for ensuring the error message of no USB interface under the OS.
[0121] This embodiment determines whether the experimental results meet expectations based on preset conditions, and the preset conditions include: there is no error information in the first experimental process information and the second experimental process information, that is, during the experimental processes of the above-mentioned experiments one and two, no error information of the adjusted universal serial bus is generated in the OS system. The similarity between the third experimental process information and the fourth experimental process information is greater than a preset threshold value, and it is determined that there is no significant difference in the test results of the forward / reverse Iperf test of the adjusted universal serial bus in experiment three. The preset threshold values are, for example, 95%, 96%, and other values that meet actual needs. There is no error information in the third experimental process information and the fourth experimental process information, that is, during the experimental process of the above-mentioned experiment three, no error information of the adjusted universal serial bus is generated in the OS system.
[0122] It is determined whether the adjusted universal serial bus meets the preset conditions. If so, it is determined that no error message appears during the experiment. The modification of the EQ parameters in step S202 is effective in ensuring that there is no error message of the USB interface under the OS, which completely solves the problem of error message of the universal serial bus appearing in the server system.
[0123] If not, it is determined that an error message appears during the experiment, and it is determined that the modification of the EQ parameters in step S202 is invalid for ensuring that there is no error message of the USB interface under the OS.
[0124] In some optional implementations, determining a new preset value includes:
[0125] Performing a signal simulation test on the adjusted universal serial bus to obtain a test result;
[0126] According to the test results, determine the new preset value.
[0127] Specifically, if any of the experimental results in the above three experiments do not meet expectations, it is determined that the modification of the EQ parameters in step S202 is invalid for ensuring that there is no error message of the USB interface under the OS. A new preset value needs to be determined later, step S202 is re-executed, the EQ parameters are continuously modified to the new preset value, step S203 is executed again for verification, and the cycle is repeated until no error message appears during the experiment. The new preset value is based on the actual signal simulation test result of the adjusted universal serial bus.
[0128] The adjusted universal serial bus is subjected to a signal simulation test to obtain a test result, and a new preset value is determined according to the test result. The new preset value is, for example, that the BIT14 bit of the preset variable value is 0, the 10th bit (BIT) to the 8th bit is 101, the 13th bit to the 11th bit of the preset variable value is 111, and the 24th bit and the 23rd bit of the preset variable value are 00. The new preset value shall be based on the signal simulation test result in the actual process, and no specific limitation is made here.
[0129] In this embodiment, a signal simulation test is performed on the adjusted universal serial bus, and a new preset value is determined based on the test result, so that the new preset value can ensure the stability of the USB link and improve the success rate of solving the error information problem of the universal serial bus in the server system.
[0130] In some optional implementations, the process of performing a signal simulation test on the adjusted universal serial bus includes steps A1 to A7.
[0131] Step A1, determining the test instructions required for the test according to the logic functions that the USB DEVICE Controller to be tested needs to implement, and writing the determined test instructions into a text file.
[0132] Specifically, the adjusted USB device of the universal serial bus mainly consists of two parts: a USB physical transceiver (PHY) and a USB device controller (DEVICEController). The USB DEVICE Controller is tested in the form of code.
[0133] For the USB DEVICE Controller to be tested, the logic functions that need to be implemented can be known in advance. For example, the USB DEVICE Controller may be used in a USB flash drive, a digital camera or other devices. Then, according to the functional requirements of different devices, the logic functions that the USB DEVICE Controller needs to complete can be determined. According to the requirements of the USB2.0 protocol, test instructions for different logic functions are generated.
[0134] Step A2: the simulation model reads the first test instruction in the text file and sends it to the digital logic circuit corresponding to the USBDEVICEController.
[0135] Specifically, a start of frame packet (SOF) is sent to a digital logic circuit corresponding to the USB DEVICE Controller, so as to provide the digital logic circuit corresponding to the USB DEVICE Controller with a timestamp required for operations such as reading and writing.
[0136] In step A3, the simulation model determines whether the sent test instruction is an instruction that requires the recipient to return a test result. If so, execute step A4; otherwise, execute step A5.
[0137] Specifically, for some test instructions in the enumeration process, some test instructions do not need to receive test results, while some test instructions require the receiver to return test results. Therefore, in this step, the simulation model needs to determine whether the test instruction sent to the digital logic circuit corresponding to the USB DEVICE Controller is a test instruction that requires the receiver to return test results, and perform different operations according to different judgment results.
[0138] In step A4, the simulation model receives the test result returned by the digital logic circuit corresponding to the USB DEVICE Controller, and determines whether the test result meets the requirements. If yes, execute step A5; otherwise, execute step A6.
[0139] Specifically, the simulation model determines whether the test results meet the requirements, for example: after the simulation model receives the test results, it can compare them with the pre-saved test results that should theoretically be received to determine whether the two are consistent. If so, it is determined that the received test results meet the requirements; otherwise, it is determined that the received test results do not meet the requirements.
[0140] In step A5, the simulation model determines whether the test instructions in the text file have been read. If so, the process ends and the test result of the signal simulation test on the adjusted universal serial bus is obtained; otherwise, step A7 is executed.
[0141] Step A6, debug the digital logic circuit corresponding to the USB DEVICE Controller, and then execute step A5.
[0142] Specifically, if it is determined that the test result does not meet the requirements, it means that there is a problem with the logic function corresponding to the test result in the digital logic circuit corresponding to the USB DEVICE Controller, so it is necessary to temporarily interrupt the test process and debug the existing problem accordingly; when the problem is overcome, execute step A5.
[0143] Step A7, the simulation model reads the next instruction in the text file and sends it to the digital logic circuit corresponding to USBDEVICEController, and then returns to execute step A3.
[0144] Specifically, after this step, the process from step A3 to step A6 is repeated until all the test instructions in the text file are read, and the process is terminated to obtain the test result of the signal simulation test on the adjusted universal serial bus.
[0145] In this embodiment, during the process of performing signal simulation test on the adjusted universal serial bus, the USB DEVICE Controller of the USB device of the adjusted universal serial bus is implemented in the form of digital logic, and a pure logic simulation model is established. The simulation model is used to test the digital logic circuit corresponding to the USB DEVICE Controller to obtain the test result of the signal simulation test on the adjusted universal serial bus, thereby simplifying the signal simulation test process and improving the accuracy of the simulation test.
[0146] In some optional implementations, before determining the preset variable value of the universal serial bus, the method further includes:
[0147] Control the server to power on;
[0148] During the server startup process and after entering the operating system, it is determined whether there is error information of the server's universal serial bus in the server, wherein the universal serial bus includes a first port set on the platform path controller and a second port set on the baseboard management controller, the first port and the second port are connected through a data signal line, and the data signal line is connected to an impedance component.
[0149] Specifically, Figure 5 As shown, on the server motherboard, a first port is provided on the platform path controller (PCH), and the first port is, for example, a USB 2.0 port. A second port is provided on the baseboard management controller (BMC), and the second port is, for example, a USB 2.0 port. The universal serial bus includes a first port and a second port. The data signal line of the physical link of the USB 2.0 port of the platform path controller (PCH) of the server motherboard and the data signal line of the physical link of the USB 2.0 port on the baseboard management controller (BMC) are connected through USB0. Differential pairs are, for example: Figure 5 The D+ and D- in the PCH and BMC data signal lines all have differential pairs. A 55-ohm impedance component is physically connected to the differential pairs of the PCH and BMC data signal lines. The impedance component is, for example, an electronic component with a resistor. The fault-tolerant impedance value of the impedance component is a ratio of plus or minus 10%, that is, 35 to 55 ohm impedance to achieve link stability.
[0150] The server is powered on and started. During the server startup process and after entering the operating system (OS), the BIOS system is used to determine whether there is error information of the server's universal serial bus in the server.
[0151] The above content is as follows Figure 3 As shown, the server is powered on and started; the data differential signal of the USB2.0 port on the PCH is interconnected with the differential signal of the USB2.0 on the BMC, and a 55 ohm resistor is set between the differential signals. During the server startup process or when entering the operating system, check whether there is any USB error information.
[0152] The above content is as follows Figure 4 As shown, the server is powered on and started; the USB2.0 port data differential signal on the PCH end is interconnected with the USB2.0 differential signal on the BMC end, and a 55 ohm resistor is set between the differential signals. The BIOS system executes the server startup process or enters the operating system to confirm whether there is a USB error message.
[0153] In this embodiment, a universal serial bus management device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0154] This embodiment provides a universal serial bus management device, such as Figure 6 As shown, including:
[0155] A determination module 601 is used to determine a preset variable value of the universal serial bus when there is error information of the universal serial bus, wherein the preset variable value is used to control the signal quality of the universal serial bus;
[0156] A modification module 602, used to modify the preset variable value to a preset value to obtain an adjusted universal serial bus;
[0157] The test module 603 is used to perform a stability test on the adjusted universal serial bus. If an error message appears during the experiment, a new preset value is determined, the preset variable value is modified to the new preset value, and subsequent steps are executed starting from the stability test on the adjusted universal serial bus until no error message appears during the experiment.
[0158] In some optional implementations, the determining module 601 determines the preset variable value of the universal serial bus, including:
[0159] Obtaining a register address of a base address register of a universal serial bus and a preset number of the universal serial bus;
[0160] According to the register address and the preset number, obtain the specific address information of the universal serial bus;
[0161] According to the specific address information, a target register of the universal serial bus is determined, wherein the target register contains a preset variable value.
[0162] In some optional implementations, the modification module 602 modifies the preset variable value to a preset value to obtain an adjusted universal serial bus, including:
[0163] The first preset bit of the preset variable value is cleared to zero, the value of the second preset bit of the preset variable value is modified to the first value, the first preset field of the preset variable value is modified to the second value, the second preset field of the preset variable value is modified to the third value, and the third preset field of the preset variable value is modified to the fourth value, to obtain the modified preset variable value;
[0164] Writing the modified preset variable value into the target register to obtain the modified target register;
[0165] The modified target register is written into a preset address to obtain an adjusted universal serial bus.
[0166] In some optional implementations, the testing module 603 performs a stability test on the adjusted universal serial bus, including:
[0167] After each preset interval, the adjusted universal serial bus is opened, a preset instruction is sent through the adjusted universal serial bus, the adjusted universal serial bus is closed, and it is determined whether the adjusted universal serial bus has an error message within a first time period to obtain first experimental process information;
[0168] Disconnecting and connecting the virtual network card corresponding to the adjusted universal serial bus, determining whether the adjusted universal serial bus has an error message within a second time period, and obtaining second experimental process information;
[0169] Perform a positive network performance test on the adjusted universal serial bus, and determine whether the adjusted universal serial bus has an error message during the test, and then go to the third experimental process information;
[0170] Performing a reverse network performance test on the adjusted universal serial bus, determining whether the adjusted universal serial bus has an error message during the test, and obtaining fourth experimental process information;
[0171] Network performance testing includes:
[0172] Determine a first network card corresponding to a baseboard management controller in the server, and determine a second network card corresponding to an operating system in the server;
[0173] Inputting first address information in the baseboard management controller, connecting to a first device corresponding to the first address information using a first network card, inputting second address information in the operating system, and connecting to a second device corresponding to the second address information using a second network card;
[0174] Check whether there is any error message about the adjusted Universal Serial Bus under the operating system.
[0175] In some optional implementations, after performing a stability test on the adjusted universal serial bus, the device is further used to:
[0176] Determine whether the adjusted universal serial bus meets preset conditions, wherein the preset conditions include that there is no error information in the first experimental process information and the second experimental process information, the similarity between the third experimental process information and the fourth experimental process information is greater than a preset threshold, and there is no error information in the third experimental process information and the fourth experimental process information;
[0177] If it is satisfied, it is determined that no error message appears during the experiment;
[0178] If it is not satisfied, an error message will be displayed during the experiment.
[0179] In some optional implementations, the testing module 603 determines a new preset value, including:
[0180] Performing a signal simulation test on the adjusted universal serial bus to obtain a test result;
[0181] According to the test results, determine the new preset value.
[0182] In some optional implementations, before determining the preset variable value of the universal serial bus, the device is further used to:
[0183] Control the server to power on;
[0184] During the server startup process and after entering the operating system, it is determined whether there is error information of the server's universal serial bus in the server, wherein the universal serial bus includes a first port set on the platform path controller and a second port set on the baseboard management controller, the first port and the second port are connected through a data signal line, and the data signal line is connected to an impedance component.
[0185] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0186] The universal serial bus management device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0187] The embodiment of the present invention also provides a computer device having the above Figure 6 The universal serial bus management device shown.
[0188] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 7 A processor 10 is taken as an example.
[0189] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0190] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0191] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0192] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0193] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0194] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0195] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0196] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined in this application.
Claims
1. A universal serial bus management method, characterized in that: The method comprises: In the case where error information of the universal serial bus exists, determining a preset variable value of the universal serial bus, wherein the preset variable value is used to control the signal quality of the universal serial bus; Modifying the preset variable value to a preset value to obtain an adjusted universal serial bus; A stability experiment is performed on the adjusted universal serial bus. If the error message appears during the experiment, a new preset value is determined, the preset variable value is modified to the new preset value, and subsequent steps are executed starting from the stability experiment on the adjusted universal serial bus until the error message does not appear during the experiment.
2. The method according to claim 1, characterized in that The step of determining a preset variable value of the universal serial bus comprises: Acquire a register address of a base address register of the universal serial bus and a preset number of the universal serial bus; According to the register address and the preset number, obtaining specific address information of the universal serial bus; According to the specific address information, a target register of the universal serial bus is determined, wherein the target register includes the preset variable value.
3. The method according to claim 2, characterized in that The step of modifying the preset variable value to a preset value to obtain an adjusted universal serial bus comprises: The first preset bit of the preset variable value is cleared to zero, the value of the second preset bit of the preset variable value is modified to the first value, the first preset field of the preset variable value is modified to the second value, the second preset field of the preset variable value is modified to the third value, and the third preset field of the preset variable value is modified to the fourth value, to obtain a modified preset variable value; Writing the modified preset variable value into the target register to obtain a modified target register; The modified target register is written into a preset address to obtain the adjusted universal serial bus.
4. The method according to claim 1, characterized in that: The stability test of the adjusted universal serial bus includes: After each preset interval, the adjusted universal serial bus is opened, a preset instruction is sent through the adjusted universal serial bus, the adjusted universal serial bus is closed, and it is determined whether the error message appears on the adjusted universal serial bus within a first time period to obtain first experimental process information; Disconnecting and connecting the virtual network card corresponding to the adjusted universal serial bus, determining whether the error message appears on the adjusted universal serial bus within a second time period, and obtaining second experimental process information; Performing a positive network performance test on the adjusted universal serial bus, and determining whether the adjusted universal serial bus has the error message during the test, and obtaining third experimental process information; Performing a reverse network performance test on the adjusted universal serial bus, determining whether the adjusted universal serial bus has the error message during the test, and obtaining fourth experimental process information; The network performance test includes: Determine a first network card corresponding to a baseboard management controller in a server, and determine a second network card corresponding to an operating system in the server; Inputting first address information into the baseboard management controller, connecting a first device corresponding to the first address information by using the first network card, inputting second address information into the operating system, and connecting a second device corresponding to the second address information by using the second network card; Confirm whether the error message of the adjusted universal serial bus exists in the operating system.
5. The method according to claim 4, characterized in that After performing a stability test on the adjusted universal serial bus, the method further includes: Determine whether the adjusted universal serial bus meets preset conditions, wherein the preset conditions include that the error information does not exist in the first experimental process information and the second experimental process information, the similarity between the third experimental process information and the fourth experimental process information is greater than a preset threshold, and the error information does not exist in the third experimental process information and the fourth experimental process information; If the conditions are met, it is determined that the error message does not appear during the experiment; If not satisfied, it is determined that the error message appears during the experiment.
6. The method according to claim 1, characterized in that The step of determining a new preset value includes: Performing a signal simulation test on the adjusted universal serial bus to obtain a test result; The new preset value is determined according to the test result.
7. The method according to claim 1, characterized in that Before determining the preset variable value of the universal serial bus, the method further includes: Control the server to power on; During the server startup process and after entering the operating system, it is determined whether there is error information of the universal serial bus of the server in the server, wherein the universal serial bus includes a first port set on the platform path controller and a second port set on the baseboard management controller, the first port and the second port are connected through a data signal line, and the data signal line is connected to an impedance component.
8. A universal serial bus management device, characterized in that: The device comprises: A determination module, used for determining a preset variable value of the universal serial bus when there is error information of the universal serial bus, wherein the preset variable value is used to control the signal quality of the universal serial bus; A modification module, used for modifying the preset variable value to a preset value to obtain an adjusted universal serial bus; A test module is used to perform a stability experiment on the adjusted universal serial bus. If the error message appears during the experiment, a new preset value is determined, the preset variable value is modified to the new preset value, and subsequent steps are executed starting from the stability experiment on the adjusted universal serial bus until the error message does not appear during the experiment.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the universal serial bus management method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the universal serial bus management method according to any one of claims 1 to 7.