A control method, device and product of a universal serial bus port
By obtaining the project number and generating port configuration tables in the server's basic input and output system, and combining the power control of the input and output control chip, precise control of multiple USB ports is achieved, solving the difficulty of precisely managing multiple USB controllers under traditional methods. The problem of USB port improves the efficiency of USB ports.
Patent Information
- Application Number
- CN202410850515.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-06-27
AI Technical Summary
In the server, it is difficult to achieve precise control of multiple USB ports in traditional ways. Especially when the processor does not support the USB protocol, it is difficult for the USB controller to accurately manage multiple USB ports when expanding through PCI to USB chips. Use status.
By executing the first control strategy in the basic input and output system of the server, obtaining the current project number and generating a port configuration table based on the target USB port configuration information, uninstalling the default configuration table and loading the configuration table corresponding to the project number, realizing the multiple USB ports At the same time, the input and output control chip is used to monitor events and execute the second control strategy, and the USB port is enabled or turned off through the power control signal.
It realizes automatic and precise control of multiple USB ports, which is suitable for the USB port configuration requirements of different projects, and improves the efficiency of USB port usage and management accuracy.
Smart Images

Figure CN118445237B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of servers, and in particular, to a method, device and product for controlling a universal serial bus port. Background Art
[0002] USB (Universal Serial Bus) is a computer hardware interface standard used to achieve data transmission and communication between different devices. For example, USB can realize data transmission between computers and other devices, such as keyboards, mice, printers, cameras, USB hard drives, and U disks. The emergence of USB has also greatly improved the scalability and convenience of computers, allowing users to easily connect and use various external devices.
[0003] The core components of USB devices need to have integrated USB interfaces. If there is no hardware link to support the USB port, the USB device cannot be used. In servers, the USB interface is a basic peripheral interface that must exist. However, some processors do not support USB integration. For example, some processors only support the PCI (Peripheral Component Interconnect) protocol and the memory controller does not have the USB protocol. In this case, physical expansion is required through a PCI to USB chip to enable server products that use the current processor to support the USB port function.
[0004] However, in actual applications, when multiple processors are used, the number of USB ports increases exponentially, and not all ports need to be used. Therefore, the USB ports need to be controlled. However, the traditional way is to turn off the USB controller. However, the USB controller manages multiple USB ports, and it is difficult to achieve precise control of the USB ports. Summary of the invention
[0005] The embodiments of the present application provide a method, device and product for controlling a universal serial bus port, aiming to accurately control the universal serial bus port.
[0006] In a first aspect, an embodiment of the present application provides a method for controlling a universal serial bus port, which is applied to a basic input and output system in a server, wherein the server includes a plurality of universal serial bus ports, and the method includes:
[0007] After the server is powered on, a first control strategy is executed, wherein the first control strategy includes:
[0008] The basic input and output system obtains the current project number of the server in the driving execution environment stage;
[0009] Determine, according to the current project number, target universal serial bus port configuration information corresponding to the current project number, and generate, according to the target universal serial bus port configuration information, a port configuration table corresponding to the current project number;
[0010] The default port configuration table in the basic input / output system is unloaded, and the port configuration table corresponding to the current project number is loaded. When the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports.
[0011] Optionally, obtaining the current project number of the server includes:
[0012] Get the status value of one or more target general input and output interfaces;
[0013] In a preset project number configuration table, searching for the current project number of the server according to the state value of the one or more target universal input and output interfaces;
[0014] The project number configuration table includes status values of one or more target universal input and output interfaces corresponding to each of the multiple project numbers.
[0015] Optionally, obtaining the current project number of the server includes:
[0016] Obtain part number information from field replaceable unit information;
[0017] Determining the current project number of the server according to the value of the part number information;
[0018] There is a one-to-one correspondence between the value of the part number information and the item number.
[0019] Optionally, the method further comprises:
[0020] In response to a first configuration operation, creating a region block in the basic input and output system;
[0021] In response to the second configuration operation, obtaining universal serial bus port configuration information corresponding to each of the plurality of item numbers;
[0022] An item number port configuration table is created according to the universal serial bus port configuration information corresponding to each of the plurality of item numbers, and the item number port configuration table is stored in the area block.
[0023] Optionally, determining, according to the current project number, target universal serial bus port configuration information corresponding to the current project number includes:
[0024] According to the current project number, the basic input / output system searches for the target universal serial bus port configuration information corresponding to the current project number in the project number port configuration table stored in the area block of the basic input / output system.
[0025] Optionally, generating a port configuration table corresponding to the current project number according to the target universal serial bus port configuration information includes:
[0026] According to the target USB port configuration information, the configuration information corresponding to each of the multiple USB ports in the first port configuration mode and the second port configuration mode is set in the default port configuration table in the basic input and output system to generate a port configuration table corresponding to the current project number.
[0027] Optionally, setting the configuration information corresponding to each of the plurality of universal serial bus ports in the first port configuration mode in the default port configuration table in the basic input / output system includes:
[0028] In the first port configuration mode of the default port configuration table, according to whether any universal serial bus port is the target port corresponding to the current item number, setting a first variable;
[0029] The second variable is set according to the type of USB protocol supported by any USB port.
[0030] Optionally, setting the configuration information corresponding to each of the plurality of universal serial bus ports in the second port configuration mode in the default port configuration table in the basic input / output system includes:
[0031] In the second port configuration mode of the default port configuration table, according to whether any universal serial bus port is the target port corresponding to the current item number, a third variable is set, wherein the third variable is used to indicate whether any universal serial bus port is visible;
[0032] A fourth variable is set according to a type of USB protocol supported by any USB port, and the fourth variable is used to describe the USB device group to which any USB port belongs.
[0033] Optionally, the server is provided with an input / output control chip, each pin of the input / output control chip is connected to a power control signal of a universal serial bus port, and the method further comprises:
[0034] When a target event is detected, the second control strategy is executed;
[0035] The second control strategy includes:
[0036] In response to a user's selection operation on a universal serial bus port configuration option of the basic input and output system interface, acquiring control information of any universal serial bus port;
[0037] According to the control information of any universal serial bus port, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to control the power control signal of the universal serial bus port.
[0038] Optionally, according to the control information of any universal serial bus port, controlling the output state of the pin on the input / output control chip connected to the universal serial bus port comprises:
[0039] When the control information of any universal serial bus port is enabled, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to be a high level;
[0040] When the control information of any universal serial bus port is closed, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to be a low level.
[0041] Optionally, when a target event is monitored, a second control strategy is executed, including:
[0042] When it is monitored that the basic input and output system fails to obtain the current project number of the server within the first preset time period, the second control strategy is executed.
[0043] Optionally, when a target event is monitored, a second control strategy is executed, including:
[0044] When it is monitored that the basic input / output system has not generated a port configuration table corresponding to the current project number within a second preset time period, a second control strategy is executed.
[0045] Optionally, when a target event is monitored, a second control strategy is executed, including:
[0046] When a selection operation of the user on the basic input and output system interface for the universal serial bus port configuration option is detected, a second control strategy is executed.
[0047] Optionally, when a target event is monitored, a second control strategy is executed, including:
[0048] When a selection operation of a user on the basic input / output system interface for a universal serial bus port configuration strategy is detected, it is determined to execute the first control strategy or the second control strategy.
[0049] In a second aspect, an embodiment of the present application provides a control device for a universal serial bus port, which is applied to a basic input and output system in a server, wherein the server includes a plurality of universal serial bus ports, and the device includes:
[0050] The first control strategy execution module is used to execute a first control strategy after the server is powered on, wherein the first control strategy includes:
[0051] The basic input and output system obtains the current project number of the server in the driving execution environment stage;
[0052] Determine, according to the current project number, target universal serial bus port configuration information corresponding to the current project number, and generate, according to the target universal serial bus port configuration information, a port configuration table corresponding to the current project number;
[0053] The default port configuration table in the basic input / output system is unloaded, and the port configuration table corresponding to the current project number is loaded. When the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports.
[0054] In a third aspect, an embodiment of the present application provides a server, the server comprising a basic input and output system and a plurality of universal serial bus ports, the server being used to execute the universal serial bus port control method described in the first aspect of the embodiment.
[0055] In a fourth aspect, an embodiment of the present application provides a server, comprising a basic input / output system and multiple universal serial bus ports, wherein an input / output control chip is provided in the server, wherein each pin of the input / output control chip is connected to a power control signal of a universal serial bus port, and wherein the server is used to execute the universal serial bus port control method described in the first aspect of the embodiment.
[0056] In a fifth aspect, an embodiment of the present application provides a computer device, comprising: at least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein when the processor executes the computer program, the control method of the universal serial bus port described in the first aspect of the embodiment is executed.
[0057] In a sixth aspect, an embodiment of the present application provides a non-volatile readable storage medium, wherein the non-volatile readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the control method of the universal serial bus port described in the first aspect of the embodiment is executed.
[0058] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the control method of the universal serial bus port described in the first aspect of the embodiment.
[0059] Beneficial effects:
[0060] After the server is powered on, a first control strategy is executed, which includes: the basic input and output system obtains the current project number of the server in the driving execution environment stage; according to the current project number, the target universal serial bus port configuration information corresponding to the current project number is determined, and according to the target universal serial bus port configuration information, a port configuration table corresponding to the current project number is generated; the default port configuration table in the basic input and output system is unloaded, and the port configuration table corresponding to the current project number is loaded. When the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports.
[0061] In the driver execution environment stage, that is, in the DXE stage of BIOS, the basic input and output system obtains the current project number of the server, determines the corresponding target universal serial bus port configuration information according to the current project number, generates a port configuration table corresponding to the current project number according to the target universal serial bus port configuration information, and loads the port configuration table corresponding to the current project number. When the server's operating system, that is, OS, is started, it will call the port configuration table corresponding to the current project number, thereby realizing control of multiple universal serial bus ports, which has the effect of automatically and accurately controlling the USB port according to the current project. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art.
[0063] Figure 1 A flow chart showing the steps of a first control strategy provided by an embodiment of the present application is shown;
[0064] Figure 2 A swimming lane diagram of a first control strategy provided in an embodiment of the present application is shown;
[0065] Figure 3 A flow chart showing the steps of a second control strategy provided by an embodiment of the present application is shown;
[0066] Figure 4 A swimming lane diagram of a second control strategy provided in an embodiment of the present application is shown;
[0067] Figure 5A functional module diagram of a control device for a universal serial bus port provided in an embodiment of the present application is shown;
[0068] Figure 6 A schematic diagram of a server provided in an embodiment of the present application is shown;
[0069] Figure 7 A schematic diagram of a server provided in an embodiment of the present application is shown;
[0070] Figure 8 A schematic diagram of a computer device provided in an embodiment of the present application is shown;
[0071] Fig. 9 A schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application is shown;
[0072] Fig.10 A schematic diagram of a computer program product provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0073] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0074] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not constitute any limitation, and the various embodiments can be combined with each other and referenced to each other without contradiction.
[0075] BIOS: Basic Input Output System, basic input output system;
[0076] OS:Operating System,operating system;
[0077] BMC: Baseboard Management Controller, baseboard management controller;
[0078] PCI: Peripheral Component Interconnect, the abbreviation of the peripheral component interconnect standard
[0079] USB: Universal Serial Bus, universal serial bus;
[0080] ACPI: Advanced Configuration and Power Management Interface, Advanced Configuration and Power Management Interface;
[0081] PCH: Platform Controller Hub, platform control integrator;
[0082] GPIO: General Purpose Input / Output, general input / output;
[0083] DXE: Driver Execution Environment, driver execution environment stage, this stage performs most of the system initialization work. When entering this stage, the memory can be fully used, so a lot of complex work can be done in this stage;
[0084] FRU: Field Replace Unit, field replaceable unit;
[0085] PPN: production part number, generate part number;
[0086] I2C: Inter-Integrated Circuit, integrated circuit bus, a serial communication bus;
[0087] IPMI: Intelligent Platform Management Interface is an industrial standard used by peripheral devices of Intel-based enterprise systems, which can span different operating systems, firmware, and hardware platforms.
[0088] USB, or Universal Serial Bus, is a computer hardware interface standard used to achieve data transfer and communication between different devices. For example, USB can transfer data between computers and other devices, such as keyboards, mice, printers, cameras, USB hard drives, and U disks. The emergence of USB has also greatly improved the scalability and convenience of computers, allowing users to easily connect and use various external devices.
[0089] 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 Host. USB devices are widely used in various electronic products, such as laptops, servers, mobile phones, cameras and other devices.
[0090] The core components of USB devices need to have integrated USB interfaces. If there is no hardware link to support the USB port, the USB device cannot be used. In servers, the USB interface is a basic peripheral interface that must exist. However, some processors do not support USB integration. For example, some processors only support the PCI protocol and the memory controller does not have the USB protocol. In this case, physical expansion is required through a PCI to USB chip to enable server products that use the current processor to support the USB port function.
[0091] For example, early Intel processors integrated the USB link on the PCH chip, and the processor chip did not have the function of integrating the USB port. The USB controller on the PCH directly controlled the settings of the specific USB port, such as turning it on or off. If other architecture processors do not have USB link ports, the USB port can be expanded through a PCI-to-USB chip. The USB port can be controlled by enabling or disabling the registers of the USB interface according to the data manual of the PCI-to-USB chip.
[0092] However, in actual applications, when multiple processors are used, the number of USB ports increases exponentially, and not all ports need to be used. Therefore, the USB ports need to be controlled. However, the traditional way is to turn off the USB controller. However, the USB controller manages multiple USB ports, and it is difficult to achieve precise control of the USB ports.
[0093] Therefore, in order to accurately control the use of each USB port, an embodiment of the present application provides a method for controlling a universal serial bus port.
[0094] An embodiment of the present application provides a method for controlling a universal serial bus port. The method is applied to a basic input / output system in a server. The server includes multiple universal serial bus ports. The method includes executing a first control strategy after the server is powered on.
[0095] Reference Figure 1 , shows a flow chart of the steps of a first control strategy provided by an embodiment of the present application, wherein the first control strategy comprises the following steps:
[0096] S11: The basic input and output system obtains the current project number of the server in the driving execution environment stage.
[0097] In the actual implementation process, a server has different usage methods depending on the application projects, including the usage of the Universal Serial Bus port, that is, the USB port in the server. The number of ports and port positions corresponding to different projects are also different. In the actual implementation process, each USB port can be labeled according to its position.
[0098] For example, Project 1 may use 4 USB ports: USB Port 1, USB Port 2, USB Port 3, and USB Port 4; Project 2 may use 4 USB ports: USB Port 1, USB Port 2, USB Port 6, and USB Port 8; and Project 3 may use 8 USB ports: USB Port 1, USB Port 2, USB Port 6, and USB Port 8.
[0099] In the basic input and output system (BIOS), the driver execution environment stage refers to the next DXE stage after the PEI stage, which is used to implement the construction of the driver environment. In the DXE stage of the BIOS, the current project number of the server is obtained.
[0100] In a feasible implementation manner, obtaining the current project number of the server includes:
[0101] Obtaining the status values of one or more target universal input / output interfaces; and searching the current project number of the server in a preset project number configuration table according to the status values of the one or more target universal input / output interfaces.
[0102] The project number configuration table includes status values of one or more target universal input and output interfaces corresponding to each of the multiple project numbers.
[0103] A project number configuration table may be pre-stored in the BIOS, and the project number configuration table includes status values of one or more target general input / output interfaces corresponding to each of the multiple project numbers. In the actual implementation process, the number of target general input / output interfaces for determining the project number may be customized according to the needs of the actual application. For example, assuming that the project number of the server can be determined by a combination of status values of three GPIO interfaces: GPIO0, GPIO01, and GPIO02, the project number configuration table may be as shown in Table 1.
[0104] Table 1 Project number configuration table
[0105]
[0106] In the DXE stage of BIOS, BIOS obtains the status values of GPIO0, GPIO01 and GPIO02. According to the combination of the status values of GPIO0, GPIO01 and GPIO02, the project number of the server can be determined. For example, if the combination of the status values of GPIO0, GPIO01 and GPIO02 is 011, the current project number corresponding to 011 in the project number configuration table is project 4.
[0107] In another feasible implementation, when obtaining the current project number of the server, the BIOS can obtain the part number information in the information of the field replaceable unit; determine the current project number of the server based on the value of the part number information; wherein the value of the part number information corresponds one-to-one to the project number.
[0108] Specifically, the part number information, i.e., PPN information, in the information of the field replaceable unit, i.e., FRU, can be updated through the BMC in the server to establish a correspondence between the PPN information and the project number. For example, the correspondence between the PPN information and the project number can be: PPN=1 corresponds to project 1, PPN=2 corresponds to project 2, and PPN=N corresponds to project N.
[0109] In the DXE stage of BIOS, BIOS obtains the PPN information in the FRU information through the IPMI protocol. The current project number can be determined based on the value of the PPN information. If PPN=1 is read, the current project number is project 1.
[0110] In other implementations, other methods may be used to obtain the current project number of the server, such as setting an option for the current project number on a BIOS interface. The current project number of the server may be determined in response to a user's selection operation on the option for setting the current project number on a BIOS interface.
[0111] S12: Determine, according to the current project number, target universal serial bus port configuration information corresponding to the current project number.
[0112] In a feasible implementation, a region block may be created in advance in the BIOS, and then an item number port configuration table is stored in the region block, wherein the item number port configuration table stores the USB port configuration information corresponding to each item number.
[0113] Specifically, in response to the first configuration operation, an area block is created in the BIOS; in response to the second configuration operation, USB port configuration information corresponding to each of the multiple project numbers is obtained; based on the USB port configuration information corresponding to each of the multiple project numbers, a project number port configuration table is created, and the project number port configuration table is stored in the area block.
[0114] Then, when determining the target USB port configuration information corresponding to the current project number based on the current project number, the target USB port configuration information corresponding to the current project number is searched in the project number port configuration table stored in the area block of the BIOS based on the current project number.
[0115] For example, the USB port configuration information corresponding to each item number included in the item number port configuration table may only include the number of enabled USB ports. The item number port configuration table is shown in Table 2.
[0116] Table 2 Project number port configuration table
[0117]
[0118] For example, the USB port configuration information corresponding to each item number included in the item number port configuration table may also include the number of enabled USB ports and the USB port positions and the USB port positions. The item number port configuration table is shown in Table 3.
[0119] Table 3 Project number port configuration table
[0120]
[0121] When the USB port configuration information only includes the number of enabled USB ports, the BIOS can arbitrarily configure the corresponding number of USB ports to the enabled state according to the number of USB ports required by the project number; when the USB port configuration information includes the number of enabled USB ports and the USB port positions and the USB port positions, the corresponding USB ports are set to the enabled state according to the USB port positions.
[0122] S13: Generate a port configuration table corresponding to the current project number according to the target universal serial bus port configuration information.
[0123] Specifically, according to the target USB port configuration information, the configuration information corresponding to the multiple USB ports in the first port configuration mode and the second port configuration mode are set in the default port configuration table in the BIOS to generate a port configuration table corresponding to the current project number; specifically, the port configuration table can be an ACPI table, which is used to manage the configuration of all USB ports of the server.
[0124] The USB port settings include a first port configuration mode, such as a UPC mode, and a second port configuration mode, such as a PLD mode. The UPC mode includes two variables: a first variable and a second variable. The first variable is used to define whether the USB port is connected, and the second variable is used to define the supported USB device type.
[0125] In the process of setting the configuration information corresponding to each of the multiple USB ports in the UPC mode in the default ACPI table in the BIOS, in the UPC mode of the default ACPI table, the first variable is set according to whether any USB port is the target port corresponding to the current project number; and the second variable is set according to the universal serial bus protocol supported by any USB port, that is, the USB protocol type.
[0126] For example, when any USB port is the target port corresponding to the current project number, the value of the first variable is set to 0xFF, indicating that the USB port is connected and can be used, that is, the USB port is configured to be enabled; when any USB port is not the target port corresponding to the current project number, the value of the first variable is set to 0x00, indicating that the USB port is not connected and cannot be used, that is, the USB port is configured to be closed.
[0127] When any USB port only supports USB 2.0 devices, the value of the second variable is set to 0x00; when any USB port only supports USB 3.0 devices, the value of the second variable is set to 0x03.
[0128] The PLD mode also includes two variables: a third variable and a fourth variable. The third variable is used to define whether the USB port device is visible, and the fourth variable is used to define the universal serial bus device group to which the device connected to the port belongs.
[0129] In the process of setting the configuration information corresponding to each of the multiple USB ports in the PLD mode in the default ACPI table in the BIOS, in the PLD mode of the default ACPI table, the third variable is set according to whether any USB port is the target port corresponding to the current project number; and the fourth variable is set according to the type of universal serial bus protocol supported by any USB port.
[0130] For example, when any USB port is the target port corresponding to the current project number, the value of the third variable is set to 0x01, indicating that the USB port is visible and can be identified; when any USB port is not the target port corresponding to the current project number, the value of the third variable is set to 0x00, indicating that the USB port is invisible and cannot be identified.
[0131] In the actual implementation process, the first variable and the third variable have a corresponding relationship. Specifically, after the value of the first variable is set in the UPC mode, in the PLD mode, the value of the third variable can be determined according to the value of the first variable; that is, when the value of the first variable is 0xFF, indicating that the USB port is connected and can be used, the value of the third variable is 0x01, indicating that the USB port is visible; when the value of the first variable is 0x00, indicating that the USB port is not connected and cannot be used, the value of the third variable is 0x00, indicating that the USB port is invisible.
[0132] When the USB protocol type supported by any USB port is USB 2.0, the value of the fourth variable is set to 0x00, indicating that the universal serial bus device group to which the device connected to the USB port belongs is the USB 2.0 group; when the USB protocol type supported by any USB port is USB 3.0, the value of the fourth variable is set to 0x01, indicating that the universal serial bus device group to which the device connected to the USB port belongs is the USB 3.0 group.
[0133] In the actual implementation process, the second variable and the fourth variable have a corresponding relationship. Specifically, after the value of the second variable is set in the UPC mode, the value of the fourth variable can be determined according to the value of the second variable in the PLD mode.
[0134] For example, when any USB port only supports USB 2.0 devices, the value of the second variable is set to 0x00, then the value of the fourth variable is 0x00, indicating that the Universal Serial Bus device group to which the device connected to the USB port belongs is the USB 2.0 group; when any USB port only supports USB 3.0 devices, the value of the second variable is set to 0x03, then the value of the fourth variable is 0x01, indicating that the Universal Serial Bus device group to which the device connected to the USB port belongs is the USB 3.0 group.
[0135] By setting corresponding configuration information for multiple USB ports in the UPC mode and the PLD mode in the default ACPI table in the BIOS, an ACPI table corresponding to the current project number can be generated as a port configuration table.
[0136] S14: Unload the default port configuration table in the basic input and output system, and load the port configuration table corresponding to the current project number. When the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports.
[0137] Unload the default port configuration table loaded in the BIOS, and then load the port configuration table corresponding to the current project number. When the server's operating system, i.e., OS, starts, the OS will automatically call the port configuration table corresponding to the current project number, and then control multiple USB ports according to the port configuration table corresponding to the current project number, thereby achieving precise control of multiple USB ports.
[0138] Reference Figure 2 , showing a swimlane diagram of the first control strategy provided in an embodiment of the present application. In the first control strategy, after the server is powered on, the basic input and output system, i.e., BIOS, obtains the current project number in the driver execution environment stage, and then the BIOS determines the target universal serial bus port configuration information corresponding to the current project number based on the current project number.
[0139] Next, in the default port configuration table of BIOS, i.e., the default ACPI table, set the corresponding configuration information of any USB port in the first port configuration mode, set the first variable according to whether any port is the target port corresponding to the current project number, and then set the second variable according to the universal serial bus protocol supported by any port, i.e., the USB protocol type.
[0140] Specifically, when any USB port is the target port corresponding to the current project number, the value of the first variable is 0xFF, indicating that the USB port is connected and can be used; when any USB port is not the target port corresponding to the current project number, the value of the first variable is 0x00, indicating that the USB port is not connected and cannot be used; when any USB port only supports USB2.0 devices, the value of the second variable is 0x00; when any USB port only supports USB 3.0 devices, the value of the second variable is 0x03.
[0141] In the default port configuration table of BIOS, set the corresponding configuration information of any USB port in the second port configuration mode, set the third variable according to whether any port is the target port corresponding to the current project number; set the fourth variable according to the type of universal serial bus protocol supported by any port.
[0142] Specifically, when any USB port is the target port corresponding to the current project number, the value of the third variable is 0x01, indicating that the USB port is visible; when any USB port is not the target port corresponding to the current project number, the value of the third variable is 0x00, indicating that the USB port is invisible; when the USB protocol type supported by any USB port is USB 2.0, the value of the fourth variable is 0x00, indicating that the Universal Serial Bus device group to which the device connected to the USB port belongs is the USB 2.0 group; when the USB protocol type supported by any USB port is USB 3.0, the value of the fourth variable is 0x01, indicating that the Universal Serial Bus device group to which the device connected to the USB port belongs is the USB 3.0 group; and the first variable and the third variable have a corresponding relationship, and the second variable and the fourth variable have a corresponding relationship.
[0143] Finally, the BIOS unloads the default port configuration table and loads the port configuration table corresponding to the current project number.
[0144] In addition to realizing precise control of multiple USB ports in the server through the first control strategy, an input and output control chip, namely a GPIO control chip, can also be set in the server, and each pin of the GPIO control chip is connected to a power control signal of a USB port, and then when the target event is detected, the second control strategy is executed.
[0145] Reference Figure 3 , shows a flow chart of the steps of the second control strategy provided in an embodiment of the present application, wherein the second control strategy includes the following steps:
[0146] S21: In response to a user's selection operation on a USB port configuration option in the BIOS interface, acquiring control information of any USB port.
[0147] A new USB port configuration option is added on the BIOS interface. Users can configure the control information of any USB port in the USB port configuration option on the BIOS interface to determine the enabled or disabled state of the USB port.
[0148] S22: According to the control information of any universal serial bus port, control the output state of the pin on the input / output control chip connected to the universal serial bus port to control the power control signal of the universal serial bus port.
[0149] Specifically, when the control information of any USB port is enabled, the output state of the pin connected to the USB port on the GPIO control chip is controlled to be a high level; when the control information of any USB port is disabled, the output state of the pin connected to the USB port on the GPIO control chip is controlled to be a low level.
[0150] Specifically, the BIOS can control the output state of any pin of the GPIO control chip based on the I2C protocol. When the output state of the pin connected to the USB port on the GPIO control chip controlled by the BIOS is at a high level, the power control signal of the USB port is power supply. When the output state of the pin connected to the USB port on the GPIO control chip controlled by the BIOS is at a low level, the power control signal of the USB port is no power supply. After the BIOS completes the setting of the pins connected to the USB ports on the GPIO control chip, the BIOS enables the output state of the GPIO pins through I2C and starts normally, thereby completing the precise control of each USB port.
[0151] In a feasible implementation, the target event may be whether the BIOS obtains the current project number of the server within a first preset time period. When it is monitored that the BIOS fails to obtain the current project number of the server within the first preset time period, the second control strategy is executed; when it is monitored that the BIOS obtains the current project number of the server within the first preset time period, the first control strategy may be executed.
[0152] In a feasible implementation, the target event may also be whether the BIOS generates a port configuration table corresponding to the current project number within a second preset time period. When it is monitored that the BIOS does not generate a port configuration table corresponding to the current project number within the second preset time period, the second control strategy is executed; when it is monitored that the BIOS generates a port configuration table corresponding to the current project number within the second preset time period, the first control strategy may continue to be executed.
[0153] The second preset time period is longer than the first preset time period.
[0154] In a feasible implementation, the target event may also be to monitor whether the user operates the USB port configuration option on the BIOS interface. When the user's selection operation on the USB port configuration option on the BIOS interface is detected, the second control strategy is executed; when the user's selection operation on the USB port configuration option on the BIOS interface is not detected, the second control strategy continues to be executed.
[0155] In addition, the user can also independently choose to use the first control strategy or the second control strategy to accurately control multiple USB ports. Specifically, when the user's selection operation for the USB port configuration strategy on the BIOS interface is monitored, it is determined to execute the first control strategy or the second control strategy.
[0156] Reference Figure 4, showing a lane diagram of the second control strategy provided by an embodiment of the present application, after the server is powered on, the basic input and output system responds to the user's selection operation on the universal serial bus port configuration option of the basic input and output system interface, obtains the control information of any universal serial bus port; determines whether the control information of any universal serial bus port is enabled; when the control information of any universal serial bus port is enabled, the output state of the pin connected to the universal serial bus port on the control input and output control chip is controlled to be high level; when the control information of any universal serial bus port is closed, the output state of the pin connected to the universal serial bus port on the control input and output control chip is controlled to be low level; determines whether the execution of the control information of all universal serial bus ports is completed, and when the control information of not all universal serial bus ports is completed, continues to determine the control information of the next universal serial bus port; when the control information of all universal serial bus ports is completed, the basic input and output system enables the output state of the pins of the input and output control chip through I2C and starts normally; the basic input and output system continues to start.
[0157] This method uses two USB control strategies to accurately control the USB port. One is to obtain the current project number through BIOS, determine the target USB port configuration information that the current project number needs to use, set the first port configuration mode and the second port configuration mode of any USB port in the default port configuration table, including setting whether any port is connected, the support type, whether it is visible, and the USB device grouping information. The BIOS realizes the control of the USB port by unloading the default port configuration table and loading the port configuration table corresponding to the current project number; the other is to introduce a GPIO control chip in the hardware, and physically link the power supply signal of the USB port through the GPIO control chip pins. In the BIOS interface, by adding a USB port configuration option, the BIOS enables or disables it through the set control information, and sets the output state of the GPIO control chip to a high or low level through the I2C protocol. The high level represents that the USB port is enabled, and the low level represents that the USB port is disabled, thereby realizing the control opening and closing functions of the specific USB port. This method can not only accurately control the enabling or disabling of the USB port, but also be applicable to any architecture server, and has high applicability.
[0158] Reference Figure 5 , shows a functional module diagram of a control device for a universal serial bus port provided in an embodiment of the present application, which is applied to a basic input and output system in a server, wherein the server includes a plurality of universal serial bus ports, and the device includes:
[0159] The first control strategy execution module 100 is used to execute a first control strategy after the server is powered on, wherein the first control strategy includes:
[0160] The basic input and output system obtains the current project number of the server in the driving execution environment stage;
[0161] Determine, according to the current project number, target universal serial bus port configuration information corresponding to the current project number, and generate, according to the target universal serial bus port configuration information, a port configuration table corresponding to the current project number;
[0162] The default port configuration table in the basic input / output system is unloaded, and the port configuration table corresponding to the current project number is loaded. When the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports.
[0163] Optionally, the first control strategy execution module includes a first item number acquisition unit, configured to:
[0164] Get the status value of one or more target general input and output interfaces;
[0165] In a preset project number configuration table, searching for the current project number of the server according to the state value of the one or more target universal input and output interfaces;
[0166] The project number configuration table includes status values of one or more target universal input and output interfaces corresponding to each of the multiple project numbers.
[0167] Optionally, the first control strategy execution module includes a second item number acquisition unit, configured to:
[0168] Obtain part number information from field replaceable unit information;
[0169] Determining the current project number of the server according to the value of the part number information;
[0170] There is a one-to-one correspondence between the value of the part number information and the item number.
[0171] Optionally, the first control strategy execution module includes an item number port configuration table configuration unit, which is used to:
[0172] In response to a first configuration operation, creating a region block in the basic input and output system;
[0173] In response to the second configuration operation, obtaining universal serial bus port configuration information corresponding to each of the plurality of item numbers;
[0174] The item number port configuration table is created according to the universal serial bus port configuration information corresponding to each of the plurality of item numbers, and the item number port configuration table is stored in the area block.
[0175] Optionally, the first control strategy execution module includes a target universal serial bus port configuration information determination unit, which is used to:
[0176] According to the current project number, the basic input / output system searches for the target universal serial bus port configuration information corresponding to the current project number in the project number port configuration table stored in the area block of the basic input / output system.
[0177] Optionally, the first control strategy execution module includes a port configuration table generating unit, which is used to:
[0178] According to the target USB port configuration information, the configuration information corresponding to each of the multiple USB ports in the first port configuration mode and the second port configuration mode is set in the default port configuration table in the basic input and output system to generate a port configuration table corresponding to the current project number.
[0179] Optionally, the port configuration table generating unit includes a first port configuration mode configuring unit, configured to:
[0180] In the first port configuration mode of the default port configuration table, according to whether any universal serial bus port is the target port corresponding to the current item number, setting a first variable;
[0181] The second variable is set according to the type of USB protocol supported by any USB port.
[0182] Optionally, the port configuration table generating unit includes a second port configuration mode configuring unit, configured to:
[0183] In the second port configuration mode of the default port configuration table, according to whether any universal serial bus port is the target port corresponding to the current item number, a third variable is set, wherein the third variable is used to indicate whether any universal serial bus port is visible;
[0184] A fourth variable is set according to a type of USB protocol supported by any USB port, and the fourth variable is used to describe the USB device group to which any USB port belongs.
[0185] Optionally, the server is provided with an input / output control chip, each pin of the input / output control chip is connected to a power control signal of a universal serial bus port, and the device further comprises a second control strategy execution module, which is used to:
[0186] When a target event is detected, the second control strategy is executed;
[0187] The second control strategy includes:
[0188] In response to a user's selection operation on a universal serial bus port configuration option of the basic input and output system interface, acquiring control information of any universal serial bus port;
[0189] According to the control information of any universal serial bus port, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to control the power control signal of the universal serial bus port.
[0190] Optionally, the second control strategy execution module includes a control unit, configured to:
[0191] When the control information of any universal serial bus port is enabled, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to be a high level;
[0192] When the control information of any universal serial bus port is closed, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to be a low level.
[0193] Optionally, the second control strategy execution module includes a first monitoring unit, configured to:
[0194] When it is monitored that the basic input and output system fails to obtain the current project number of the server within the first preset time period, the second control strategy is executed.
[0195] Optionally, the second control strategy execution module includes a second monitoring unit, configured to:
[0196] When it is monitored that the basic input / output system fails to generate a port configuration table corresponding to the current project number within a second preset time period, a second control strategy is executed.
[0197] Optionally, the second control strategy execution module includes a third monitoring unit, configured to:
[0198] When a selection operation of the user on the basic input and output system interface for the universal serial bus port configuration option is detected, a second control strategy is executed.
[0199] Optionally, the second control strategy execution module includes a fourth monitoring unit, configured to:
[0200] When a selection operation of a user on the basic input / output system interface for a universal serial bus port configuration strategy is detected, it is determined to execute the first control strategy or the second control strategy.
[0201] Reference Figure 6 , showing a schematic diagram of a server provided in an embodiment of the present application, the server includes a basic input and output system and multiple universal serial bus ports, the server includes multiple central processing units, such as central processing unit 0 and central processing unit 1, each central processing unit is connected to multiple universal serial bus ports, such as central processing unit 0 is connected to universal serial bus port 0...universal serial bus port m, central processing unit 1 is connected to universal serial bus port 1...universal serial bus port n, the server is used for the first control strategy of the control method of the universal serial bus port described in the embodiment.
[0202] Reference Figure 7 , showing a schematic diagram of a server provided in an embodiment of the present application, the server includes a basic input / output system and a plurality of universal serial bus ports, the server is further provided with an input / output control chip, each pin of the input / output control chip is connected to a power control signal of a universal serial bus port, the basic input / output system accesses the input / output control chip based on the I2C protocol, and the server is used to execute the control method of the universal serial bus port described in this embodiment, including executing the first control strategy and / or the second control strategy.
[0203] Reference Figure 8 , shows a schematic diagram of a computer device provided in an embodiment of the present application, comprising: at least one processor 801, and a memory 802, wherein the memory 802 stores a computer program that can be run on the processor 801, wherein the processor 801 executes the control method of the universal serial bus port described in this embodiment when executing the computer program.
[0204] Reference Fig. 9 , shows a schematic diagram of a non-volatile readable storage medium provided in an embodiment of the present application, wherein the non-volatile readable storage medium 900 stores a computer program 901, wherein when the computer program is executed by a processor, the control method of the universal serial bus port described in this embodiment is executed.
[0205] Reference Fig.10 , shows a schematic diagram of a computer program product provided in an embodiment of the present application, wherein the computer program product 1000 includes a computer program / instruction, and when the computer program / instruction 1001 is executed by a processor, the control method of the universal serial bus port described in the embodiment is implemented.
[0206] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0207] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, devices, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0208] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0209] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0210] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0211] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0212] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0213] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for controlling a universal serial bus port, It is characterized in that A basic input / output system is applied to a server, the server includes a plurality of universal serial bus ports, an input / output control chip is provided in the server, each pin of the input / output control chip is connected to a power control signal of a universal serial bus port, and the method includes: After the server is powered on, a first control strategy is executed, wherein the first control strategy includes: The basic input and output system obtains the current project number of the server in the driving execution environment stage; Determine, according to the current project number, target universal serial bus port configuration information corresponding to the current project number, and generate, according to the target universal serial bus port configuration information, a port configuration table corresponding to the current project number, wherein the universal serial bus port configuration information corresponding to any project number includes the number of universal serial bus ports and the location of the universal serial bus ports; Unloading the default port configuration table in the basic input and output system, and loading the port configuration table corresponding to the current project number, when the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports; When it is monitored that the basic input and output system has not obtained the current project number of the server within a first preset time period, a second control strategy is executed; the second control strategy is used to obtain control information of any universal serial bus port in response to a user's selection operation on the universal serial bus port configuration option on the basic input and output system interface, and control the output state of the pin of the input and output control chip connected to the universal serial bus port through the control information of any universal serial bus port, so as to control the power control signal of any universal serial bus port.
2. The method according to claim 1, It is characterized in that Get the current project number of the server, including: Get the status value of one or more target general input and output interfaces; In a preset project number configuration table, searching for the current project number of the server according to the state value of the one or more target universal input and output interfaces; The project number configuration table includes status values of one or more target universal input and output interfaces corresponding to each of the multiple project numbers.
3. The method according to claim 1, It is characterized in that Get the current project number of the server, including: Obtain part number information from field replaceable unit information; Determining the current project number of the server according to the value of the part number information; There is a one-to-one correspondence between the value of the part number information and the item number.
4. The method according to claim 1, It is characterized in that The method further comprises: In response to a first configuration operation, creating a region block in the basic input and output system; In response to the second configuration operation, obtaining universal serial bus port configuration information corresponding to each of the plurality of item numbers; According to the universal serial bus port configuration information corresponding to each of the plurality of item numbers, an item number port configuration table is created, and the item number port configuration table is stored in the area block.
5. The method according to claim 4, It is characterized in that Determining target universal serial bus port configuration information corresponding to the current project number according to the current project number includes: According to the current project number, the basic input / output system searches for the target universal serial bus port configuration information corresponding to the current project number in the project number port configuration table stored in the area block of the basic input / output system.
6. The method according to claim 1, It is characterized in that Generate a port configuration table corresponding to the current project number according to the target universal serial bus port configuration information, including: According to the target USB port configuration information, the configuration information corresponding to each of the multiple USB ports in the first port configuration mode and the second port configuration mode is set in the default port configuration table in the basic input and output system to generate a port configuration table corresponding to the current project number.
7. The method according to claim 6, It is characterized in that The default port configuration table in the basic input / output system is used to set the configuration information corresponding to each of the plurality of universal serial bus ports in the first port configuration mode, including: In the first port configuration mode of the default port configuration table, according to whether any universal serial bus port is the target port corresponding to the current item number, setting a first variable; The second variable is set according to the type of USB protocol supported by any USB port.
8. The method according to claim 7, It is characterized in that The default port configuration table in the basic input and output system is used to set the configuration information corresponding to each of the plurality of universal serial bus ports in the second port configuration mode, including: In the second port configuration mode of the default port configuration table, according to whether any universal serial bus port is the target port corresponding to the current item number, a third variable is set, wherein the third variable is used to indicate whether any universal serial bus port is visible; A fourth variable is set according to a type of USB protocol supported by any USB port, and the fourth variable is used to describe the USB device group to which any USB port belongs.
9. The method according to claim 1, It is characterized in that The method further comprises: When a target event is detected, the second control strategy is executed; The second control strategy includes: In response to a user's selection operation on a universal serial bus port configuration option of the basic input and output system interface, acquiring control information of any universal serial bus port; According to the control information of any universal serial bus port, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to control the power control signal of the universal serial bus port.
10. The method according to claim 9, It is characterized in that According to the control information of any universal serial bus port, controlling the output state of the pin on the input / output control chip connected to the universal serial bus port comprises: When the control information of any universal serial bus port is enabled, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to be a high level; When the control information of any universal serial bus port is closed, the output state of the pin connected to the universal serial bus port on the input / output control chip is controlled to be a low level.
11. The method according to claim 9, It is characterized in that When the target event is detected, the second control strategy is executed, including: When it is monitored that the basic input / output system has not generated a port configuration table corresponding to the current project number within a second preset time period, a second control strategy is executed.
12. The method according to claim 9, It is characterized in that When the target event is detected, the second control strategy is executed, including: When a selection operation of the user on the basic input and output system interface for the universal serial bus port configuration option is detected, a second control strategy is executed.
13. The method according to claim 9, It is characterized in that When the target event is detected, the second control strategy is executed, including: When a selection operation of a user on the basic input / output system interface for a universal serial bus port configuration strategy is detected, it is determined to execute the first control strategy or the second control strategy.
14. A control device for a universal serial bus port, It is characterized in that A basic input / output system applied to a server, the server comprising a plurality of universal serial bus ports, an input / output control chip being arranged in the server, each pin of the input / output control chip being connected to a power control signal of a universal serial bus port, the device comprising: The first control strategy execution module is used to execute a first control strategy after the server is powered on, wherein the first control strategy includes: The basic input and output system obtains the current project number of the server in the driving execution environment stage; Determine, according to the current project number, target universal serial bus port configuration information corresponding to the current project number, and generate, according to the target universal serial bus port configuration information, a port configuration table corresponding to the current project number, wherein the universal serial bus port configuration information corresponding to any project number includes the number of universal serial bus ports and the location of the universal serial bus ports; Unloading the default port configuration table in the basic input and output system, and loading the port configuration table corresponding to the current project number, when the operating system of the server is started, the operating system calls the port configuration table corresponding to the current project number to control the multiple universal serial bus ports; The second control strategy execution module is used to execute the second control strategy when it is monitored that the basic input and output system has not obtained the current project number of the server within a first preset time period; the second control strategy is used to obtain the control information of any universal serial bus port in response to the user's selection operation on the universal serial bus port configuration option on the basic input and output system interface, and control the output state of the pin of the input and output control chip connected to the universal serial bus port through the control information of any universal serial bus port, so as to control the power control signal of any universal serial bus port.
15. A server, It is characterized in that The server comprises a basic input and output system and a plurality of universal serial bus ports, and the server is used to execute the universal serial bus port control method according to any one of claims 1 to 8.
16. A server, It is characterized in that The server includes a basic input / output system and multiple universal serial bus ports. An input / output control chip is provided in the server. Each pin of the input / output control chip is connected to a power control signal of a universal serial bus port. The server is used to execute the control method of the universal serial bus port described in any one of claims 1 to 13.
17. A computer device, It is characterized in that include: At least one processor, and a memory, wherein the memory stores a computer program that can be run on the processor, wherein the processor executes the control method of the universal serial bus port according to any one of claims 1-13 when executing the computer program.
18. A non-volatile readable storage medium, It is characterized in that The non-volatile readable storage medium stores a computer program, wherein the computer program, when executed by a processor, executes the method for controlling a universal serial bus port according to any one of claims 1 to 13.
19. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instruction is executed by a processor, the control method of the universal serial bus port described in any one of claims 1 to 13 is implemented.
