A data transmission method, an out-of-band controller, and an electronic device.
By dynamically allocating USB channels and using differentiated loading, the problem of inflexible data transmission methods for composite devices is solved, achieving reasonable resource allocation and efficient data transmission, thus meeting diverse user needs.
Patent Information
- Application Number
- CN202211426981.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2042-11-15
AI Technical Summary
The data transmission methods of existing composite devices are not flexible enough to meet the diverse needs of users, and the unreasonable resource allocation leads to low data transmission efficiency.
By determining the data transmission capabilities of multiple USB channels, USB channels are dynamically allocated to target devices. Based on the priority of composite devices and the data transmission capabilities of USB channels, target USB channels are allocated to composite devices, thereby achieving differentiated loading and reasonable resource allocation.
It improves the data transmission efficiency of composite devices, meets the diverse needs of users, reduces useless data transmission, and lowers resource occupancy.
Smart Images

Figure CN115905066B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a data transmission method, an out-of-band controller, and an electronic device. Background Technology
[0002] Keyboard, video, and mouse (KVM) switches communicate with the operating system (OS) via a universal serial bus (USB) channel to load and unload virtual devices such as floppy drives, CD-ROM drives, keyboards, and mice, providing various methods for remote server maintenance. In related technologies, virtual USB devices transmitting data through the same USB channel can be grouped into a composite device, with one composite device corresponding to one USB channel, and this mapping is pre-configured. However, in practical use, data transmission must be performed according to the USB channel corresponding to the composite device, and data from all virtual devices within the composite device must be transmitted simultaneously. It can be seen that the data transmission method for composite devices in related technologies is not flexible enough and cannot meet the diverse needs of users. Summary of the Invention
[0003] This application provides a data transmission method, an out-of-band controller, and an electronic device, which can flexibly select the data transmission channel of the composite device to meet the diverse needs of users.
[0004] In a first aspect, this application provides a data transmission method. The server includes an out-of-band controller and an in-band controller. Multiple Universal Serial Bus (USB) channels connect the out-of-band controller and the in-band controller. The out-of-band controller includes multiple composite devices. Each composite device is a virtual device with multiple USB device functions. A composite device communicates with the in-band controller via a USB channel. The method is applied to the out-of-band controller. The method includes: determining the data transmission capabilities of the multiple USB channels; allocating a target USB channel to a target device based on the data transmission capabilities of the multiple USB channels; wherein the target device is any one of the multiple composite devices; the target USB channel is any one of the multiple USB channels; and transmitting the data of the target device to the in-band controller via the target USB channel.
[0005] It is understood that this application can allocate USB channels to composite devices based on the data transmission capabilities of the USB channels. Thus, compared to the method of binding composite devices to USB channels in related technologies, the embodiments of this application can dynamically allocate USB channels to composite devices, making the data transmission method of composite devices more flexible and meeting diverse user needs. Furthermore, by dynamically allocating USB channels to composite devices, for example, assigning USB channels with strong data transmission capabilities to composite devices that generate data frequently, rational resource allocation can be achieved, helping to improve the data transmission efficiency of composite devices.
[0006] In one possible implementation, determining the data transfer capability of multiple USB channels includes: determining the write data capability of each USB channel based on the write success rate and write percentage of each USB channel in a historical time period; determining the read data capability of each USB channel based on the read success rate and read percentage of each USB channel in a historical time period; and determining the data transfer capability of each USB channel based on the write data capability and the read data capability of each USB channel.
[0007] It is understandable that different USB channels have different data transmission quantities and rates. Therefore, the method provided in this application can determine the data transmission capacity of each USB channel based on its write success rate, write percentage, read success rate, and read percentage within a target historical time period. The write success rate and read success rate reflect the USB channel's ability to read and write data; the write percentage and read percentage reflect the USB channel's ability to transmit a large amount of data (e.g., the size of the transmitted data). Therefore, this embodiment of the application determines the data transmission capacity of a USB channel by using write success rate, write percentage, read success rate, and read percentage, which can accurately measure the overall ability of the USB channel to read, write, and transmit data.
[0008] In another possible implementation, the above-mentioned allocation of a target USB channel to the target device based on the data transmission capabilities of multiple USB channels includes: selecting the USB channel with a data transmission capability higher than the preset data transmission capability from among the multiple USB channels as the target USB channel and allocating it to the target device.
[0009] It is understood that, in order to ensure that the data of the target device can be transmitted quickly and efficiently, when allocating a USB channel to the target device, a USB channel with a data transmission capacity higher than the preset data transmission capacity can be selected as the target USB channel and allocated to the target device, thereby ensuring that the data of the target device can be transmitted quickly and efficiently.
[0010] In another possible implementation, allocating a target USB channel to the target device based on the data transmission capabilities of multiple USB channels includes: allocating a target USB channel to the target device based on the priority of the target device and the data transmission capabilities of multiple USB channels, wherein the priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device.
[0011] It is understood that this application can allocate USB channels to composite devices based on their priority and USB channel data transfer capabilities. For example, a high-priority composite device can be allocated a USB channel with strong data transfer capabilities. Thus, compared to the method of binding composite devices to USB channels in related technologies, this application can dynamically allocate USB channels to composite devices, making data transfer more flexible. Furthermore, by dynamically allocating USB channels to composite devices—for example, allocating a high-data-transfer-capability USB channel to composite devices that generate data more frequently—resources can be rationally allocated, helping to improve the data transfer efficiency of composite devices.
[0012] In another possible implementation, the method further includes: receiving a first configuration operation for a target device in an out-of-band controller and determining the priority of the target device.
[0013] It is understood that the first configuration operation described above is used to configure the priority of multiple composite devices. The priority of a composite device refers to the priority when allocating a USB channel to it. Thus, the method provided in this application can allocate USB channels to composite devices based on their priorities.
[0014] In another possible implementation, the target device is remotely controlled by a multi-computer switching device (KVM); the target device includes multiple virtual USB devices; the method further includes: obtaining the identifier of the virtual USB device to be loaded in the target device; sending the identifier to the KVM; and the KVM controlling the loading of the virtual USB device to be loaded in the target device based on the identifier.
[0015] It is understood that the composite devices in the out-of-band controller are all remotely controlled by KVM, such as loading and unloading composite devices. Therefore, in this embodiment, the identifiers of the virtual USB devices that need to be loaded in the target device can be sent to KVM, so that KVM can load only the virtual USB devices that need to be loaded in the target device when loading the target device. In this way, compared with the methods in related technologies that require loading all virtual USB devices in the target device, the method provided by this application can realize differentiated loading of the target device according to user needs, thus meeting the diverse needs of users.
[0016] In another possible implementation, the above-mentioned transmission of data from the target device to the in-band controller via the target USB channel includes: transmitting data of the virtual USB device to be loaded in the target device to the in-band controller via the target USB channel.
[0017] It is understood that the method provided in this application can achieve differentiated loading of the target device according to user needs, loading only the virtual USB devices that need to be loaded in the target device. In this way, when the target device transmits data, only the data of the virtual USB devices that need to be loaded in the target device can be transmitted, which can reduce the transmission of useless data and reduce the resource occupation of the target device's data on the USB channel.
[0018] In another possible implementation, before obtaining the identifier of the virtual USB device to be loaded in the target device, the method further includes: receiving a second configuration operation for the target device in the out-of-band controller, and determining the virtual USB device to be loaded in the target device.
[0019] It is understandable that, since the composite device includes multiple virtual USB devices, this application selects the virtual USB devices that need to be loaded in the composite device through the second configuration operation, so as to realize the differentiated loading of the composite device (that is, only the virtual USB devices that need to be loaded in the composite device need to be loaded), and meet the diverse needs of users.
[0020] Secondly, this application provides a data transmission method, wherein the server includes: an out-of-band controller and an in-band controller; the out-of-band controller includes multiple composite devices; the composite devices are virtual devices with multiple USB device functions; multiple Universal Serial Bus (USB) channels are included between the out-of-band controller and the in-band controller; the out-of-band controller includes multiple composite devices; one composite device communicates with the in-band controller through one USB channel; the method is applied to an electronic device; the electronic device is used to remotely access the out-of-band controller; the method includes: displaying a visual management interface of the out-of-band controller; the visual management interface includes information of multiple composite devices; receiving a first configuration operation for a target device in the visual management interface, and determining the priority of the target device; the target device is any one of the multiple composite devices; the priority of the target device is used by the out-of-band controller to allocate a target USB channel to the target device; wherein the priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device; the target USB channel is any one of the multiple USB channels; all of the multiple USB channels are in an idle state.
[0021] Understandably, because the out-of-band controller's visual management interface provides a way for users to manage and configure the server, users can access the out-of-band controller's visual management interface through electronic devices and then configure information about the composite device on that interface. For example, the priority of a target device can be configured on the visual management interface so that the out-of-band controller can allocate a target USB channel to the target device based on its priority.
[0022] In one possible implementation, the target device includes multiple virtual USB devices; the method further includes: receiving a second configuration operation for the target device in a visual management interface, and determining the virtual USB devices that need to be loaded in the target device.
[0023] It is understandable that, since the composite device includes multiple virtual USB devices, this application can configure the virtual USB devices that need to be loaded in the target device on the visual management interface to achieve differentiated loading of the composite device (i.e., only the virtual USB devices that need to be loaded in the composite device need to be loaded), thus meeting the diverse needs of users.
[0024] Thirdly, this application provides an out-of-band controller, including: an interface and logic circuitry, wherein the logic circuitry is used to execute any of the data transmission methods provided in the first aspect above.
[0025] Fourthly, this application provides an electronic device, including: an interface and logic circuitry, the logic circuitry being used to execute any of the data transmission methods provided in the second aspect above.
[0026] Fifthly, this application provides a computer device, which includes a processor and a memory; the processor is coupled to the memory; the memory is used to store computer instructions, which are loaded and executed by the processor to enable the computer device to implement any of the data transmission methods provided in the first or second aspect above.
[0027] Sixthly, this application provides a computer-readable storage medium storing computer-executable instructions that, when executed on a computer, cause the computer to perform any of the data transmission methods provided in the first or second aspect above.
[0028] In a seventh aspect, this application provides a computer program product comprising computer instructions that, when executed on a computer, cause the computer to perform any of the data transmission methods provided in the first or second aspect described above.
[0029] For a detailed description of aspects three through seven and their various implementations in this application, please refer to the detailed descriptions in aspects one and two and their various implementations; and for a detailed analysis of the beneficial effects of aspects three through seven and their various implementations in aspects one and two and their various implementations, please refer to the beneficial effect analysis in aspects one and two and their various implementations, which will not be repeated here.
[0030] These or other aspects of this application will become more readily apparent in the following description. Attached Figure Description
[0031] Figure 1 A schematic diagram of the hardware operating environment involved in a data transmission method provided in an embodiment of this application;
[0032] Figure 2 A flowchart of a data transmission method provided in this application embodiment Figure 1 ;
[0033] Figure 3 A flowchart of a data transmission method provided in this application embodiment Figure 2 ;
[0034] Figure 4 A schematic diagram of a visual management interface for an out-of-band controller provided in an embodiment of this application. Figure 1 ;
[0035] Figure 5 A schematic diagram of a visual management interface for an out-of-band controller provided in an embodiment of this application. Figure 2 ;
[0036] Figure 6 A schematic diagram of a visual management interface for an out-of-band controller provided in an embodiment of this application. Figure 3 ;
[0037] Figure 7 A flowchart of a data transmission method provided in this application embodiment Figure 3 ;
[0038] Figure 8 A flowchart of a data transmission method provided in this application embodiment Figure 4 ;
[0039] Figure 9 A schematic diagram illustrating a scenario involving a data transmission method provided in an embodiment of this application;
[0040] Figure 10 This is a schematic diagram of the structure of an out-of-band controller provided in an embodiment of this application;
[0041] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0042] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0043] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.
[0044] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.
[0045] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0046] In the description of this application, unless otherwise stated, "multiple" means two or more. For example, the multiple composite devices involved in the embodiments of this application refer to two or more composite devices.
[0047] To address the technical problems existing in related technologies, this application provides a data transmission method. The method involves first determining the data transmission capabilities of multiple USB channels, and then allocating a target USB channel to a target device (any one of multiple composite devices) based on the data transmission capabilities of these USB channels. Data from the target device is then transmitted to the in-band controller via the target USB channel. Thus, compared to the method of binding composite devices to USB channels in related technologies, this application's embodiment can dynamically allocate USB channels to composite devices, making the data transmission method more flexible. Furthermore, by dynamically allocating USB channels to composite devices—for example, allocating USB channels with strong data transmission capabilities to composite devices that generate data frequently—resources can be rationally allocated, helping to improve the data transmission efficiency of composite devices.
[0048] This application can also, based on user needs, feed back the identifiers of the virtual USB devices that need to be loaded on the target device to KVM. This allows KVM to control the loading of the required virtual USB devices on the target device based on these identifiers, achieving differentiated loading of the target device and meeting diverse user needs. Simultaneously, when transmitting data on the target device, only the data of the required virtual USB devices can be transmitted, reducing the transmission of unnecessary data and lowering the resource consumption of the USB channel by the target device's data.
[0049] The embodiments provided in this application will now be described in detail with reference to the accompanying drawings.
[0050] See Figure 1 This is a schematic diagram of a hardware operating environment involved in an embodiment of this application. Figure 1 As shown, the hardware operating environment includes: server 100 and electronic device 200.
[0051] Server 100 includes: out-of-band controller and in-band controller.
[0052] The out-of-band controller is used for out-of-band network management. Out-of-band network management refers to the control, management, and maintenance of server 100 by remote electronic devices through a network physical channel. Optionally, the out-of-band controller can be a baseboard management controller (BMC). The BMC can connect to other hardware devices in server 100 through different interfaces (e.g., connecting to an in-band controller via a USB interface) to manage and control the system hardware within server 100. Examples include power-on / off control, fan speed adjustment, and electronic tag management.
[0053] An in-band controller is a controller used for in-band network management. In-band network management refers to the information processing and program execution of server 100 by a controller within server 100. Optionally, the in-band controller may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and microprocessors, etc.
[0054] In some embodiments, multiple USB channels are included between the out-of-band controller and the in-band controller. These USB channels are virtual channels. The server 100 includes USB interfaces for transmitting data to the in-band controller. As one possible implementation, the USB interface can receive network connection requests sent by the out-of-band controller and establish virtual USB channels between the out-of-band controller and the in-band controller based on these requests. The number of USB channels is the same as the number of USB interfaces in the server 100.
[0055] In some embodiments, the out-of-band controller includes multiple composite devices. These composite devices are virtual devices with various USB device functionalities; for example, a composite device may be composed of multiple virtual USB devices. A virtual USB device is a software application, not an actual hardware device. Examples include a virtual CD-ROM drive, a virtual floppy drive, a virtual keyboard, or a virtual mouse. For instance, a composite device may be a device composed of a virtual CD-ROM drive and a virtual floppy drive; alternatively, a composite device may be a device composed of a virtual CD-ROM drive, a virtual keyboard, and a virtual mouse.
[0056] One of the composite devices communicates with the in-band controller via a USB channel.
[0057] In some embodiments, an operating system (OS) is installed and runs in the in-band controller. For example, the OS may be an Android operating system, a Windows operating system, or a Linux operating system, etc., and this application embodiment does not limit this.
[0058] In some embodiments, the above-described communication between the composite device and the in-band controller via a USB channel refers to the composite device communicating with the OS running on the in-band controller via the USB channel. For example, transferring data from the composite device to the OS via the USB channel.
[0059] In this embodiment, the out-of-band controller is used to control the data transmission of composite devices. Specifically, the out-of-band controller allocates USB channels to multiple composite devices, enabling each composite device to transmit data to the OS according to its corresponding USB channel.
[0060] In this context, "data from a composite device" refers to the data from multiple virtual USB devices within the composite device. It's understood that since a virtual USB device is a software application that simulates a physical USB device, its data is generated by simulating a physical USB device. For example, if the virtual USB device is a virtual keyboard, then the virtual keyboard's data could be data generated by simulating a physical keyboard.
[0061] In some embodiments, the out-of-band controller provided in this application is further configured to determine the data transmission capabilities of multiple USB channels, and then allocate USB channels to multiple composite devices according to the data transmission capabilities of the multiple USB channels.
[0062] In some embodiments, the out-of-band controller provided in this application is further configured to allocate USB channels to multiple composite devices based on the priority of the multiple composite devices configured by the user and the data transmission capability of the multiple USB channels.
[0063] In some embodiments, the out-of-band controller provided in this application is further configured to obtain a USB list of each composite device configured by the user, wherein the USB list of each composite device includes the identifier of the virtual USB device that the composite device needs to load. Thus, the out-of-band controller can transmit the data of the virtual USB devices included in the USB lists of each composite device to the in-band controller according to the USB lists of each composite device.
[0064] In some embodiments, the out-of-band controller further includes a visual management interface, allowing users to control, manage, and maintain the server 100 through this network visualization interface. Optionally, the network visualization interface of the out-of-band controller can be used to display system configuration information, hardware device information, and other information of the server 100. In this embodiment, the visual management interface of the out-of-band controller is also used to display information about the composite device, such as its loading or unloading status and operating status.
[0065] In some embodiments, the out-of-band controller also provides an access interface for a network visualization interface, so that users can access the visualization management interface of the out-of-band controller through the access interface and configure information of the composite device on the visualization management interface, such as configuring the priority of the composite device and configuring the USB list of the composite device.
[0066] Optionally, the above access interface can be a web interface, such as an application programming interface (API).
[0067] In some embodiments, server 100 further includes memory ( Figure 1(Not shown in the text) is used to store data such as instructions or program code. For example, the memory may be read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, random access memory (RAM) or other types of dynamic storage devices capable of storing information and instructions, electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0068] In this embodiment, the memory is mainly used to store software programs such as the OS.
[0069] Electronic device 200 is used for remotely controlling server 100. Specifically, electronic device 200 is used to control server 100 by controlling an out-of-band controller (e.g., BMC) of server 100.
[0070] In some embodiments, the electronic device 200 controls the server 100 via a multi-computer switch (keyboard video mouse, KVM). Specifically, for example... Figure 1 As shown, the KVM includes a control interface and a controlled interface. Electronic device 200 is connected to the control interface (for example, electronic device 200 can be connected to the KVM via wired or wireless means), and server 100 is connected to the controlled interface (for example, server 100 can be connected to the KVM via wired or wireless means). In this way, users can remotely control server 100 through electronic device 100.
[0071] In some embodiments, the electronic device 200 includes a KVM client software program, and the electronic device 200 controls the composite device in the server 100 through the KVM client; for example, the electronic device 200 controls the loading and unloading of the composite device through the KVM client.
[0072] In some embodiments, the electronic device 200 can remotely access the visual management interface of the out-of-band controller of the server 100, and configure information about the composite device on the visual management interface of the out-of-band controller, such as configuring the USB list of the composite device, configuring the priority of the composite device, etc. For example, the electronic device 200 can access the visual management interface of the out-of-band controller through the access interface of the out-of-band controller.
[0073] It should be noted that the system architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0074] The following is a detailed description of a data transmission method provided by an embodiment of this application.
[0075] The data transmission method provided in this application embodiment is applied to, for example, Figure 1 The hardware operating environment is shown. Optionally, the method provided in this application embodiment may include a configuration phase and a transmission phase. The configuration phase refers to configuring information about the composite device; the transmission phase refers to transmitting data generated by the composite device.
[0076] For details regarding the configuration and transmission phases, please refer to the following examples.
[0077] I. Configuration Phase
[0078] In some embodiments, the entity performing the configuration phase can be an out-of-band controller. For example... Figure 2 As shown, the configuration phase may include the following steps:
[0079] S301, Receive a first configuration operation for multiple composite devices in an out-of-band controller.
[0080] The first configuration operation described above is used to configure the priority of multiple composite devices. The priority of a composite device refers to the priority when allocating a USB channel to it; optionally, the higher the priority of a composite device, the stronger the data transfer capability of the USB channel allocated to it.
[0081] S302, in response to the first configuration operation, determine the priority of multiple composite devices.
[0082] In some embodiments, the first configuration operation described above can be a sorting operation for multiple composite devices. In response to the first configuration operation, the out-of-band controller can determine the priority of the multiple composite devices based on the sorting results of the multiple composite devices.
[0083] As one possible implementation, the sorting operation described above can be used to sort multiple composite devices according to the frequency of their data generation. Then, the out-of-band controller can determine the priority of the multiple composite devices based on the sorting results. It is understandable that the more frequently a composite device generates data, the more data needs to be transmitted through its corresponding USB channel; therefore, a USB channel with strong data transmission capabilities needs to be allocated to that composite device.
[0084] For example, suppose multiple composite devices include: composite device 1, composite device 2 and composite device 3, wherein composite device 2 generates data more frequently than composite device 1; composite device 1 generates data more frequently than composite device 3; therefore, the sorting result of multiple composite devices is: composite device 2, composite device 1, composite device 3; then composite device 2 has the highest priority of PR1, composite device 1 has the highest priority of PR2, and composite device 3 has the lowest priority of PR3.
[0085] As another possible implementation, the sorting operation described above can rank multiple composite devices according to the importance of the data generated by the composite devices. Then, the out-of-band controller can determine the priority of the multiple composite devices based on the sorting results. It is understandable that the higher the importance of the data generated by the composite device, the higher the write success rate requirement of the USB channel for data transmission. Therefore, it is necessary to allocate a USB channel with strong output transmission capability to the composite device (the data transmission capability of the USB channel is determined by the write success rate of the USB channel).
[0086] For example, suppose multiple composite devices include: composite device 1, composite device 2 and composite device 3, wherein the data generated by composite device 2 is more important than that generated by composite device 1; the data generated by composite device 1 is more important than that generated by composite device 3; therefore, the ranking result of the multiple composite devices is: composite device 2, composite device 1, composite device 3; then composite device 2 has the highest priority of PR1, composite device 1 has the highest priority of PR2, and composite device 3 has the lowest priority of PR3.
[0087] As another possible implementation, the above sorting operation can be determined by the user. That is, the user can determine the sorting result of multiple composite devices according to actual usage needs. Then, the out-of-band controller can determine the priority of multiple composite devices according to the sorting result of multiple composite devices.
[0088] S303, Receive a second configuration operation for multiple composite devices in an out-of-band controller.
[0089] The first configuration operation mentioned above is used to select the virtual USB device that needs to be loaded in the composite device.
[0090] S304. In response to the second configuration operation, determine the virtual USB device that needs to be loaded in each composite device.
[0091] In some embodiments, the second configuration operation described above can be an operation of configuring a USB list for multiple composite devices. The USB list for the composite devices includes identifiers of the virtual USB devices that the composite device needs to load.
[0092] As one possible implementation, the USB list of the composite device can be set by the user; that is, the user can configure the USB list of the composite device according to actual usage needs.
[0093] It is understood that since the composite device includes multiple virtual USB devices, this embodiment of the application selects the virtual USB devices that need to be loaded in the composite device through the second configuration operation, thereby achieving differentiated loading of the composite device (i.e., only loading the virtual USB devices that need to be loaded in the composite device) to meet the diverse needs of users. Simultaneously, when transmitting data in the composite device, only the data of the virtual USB devices in the composite device's USB list can be transmitted, which can improve transmission efficiency and reduce the resource consumption of the USB channel by the composite device's data.
[0094] In other embodiments, the entity performing the configuration phase can be an electronic device. That is, the user can remotely access the visual management interface of the out-of-band controller through the electronic device, and then configure the information of the composite device through the visual management interface of the out-of-band controller. For example, Figure 3 As shown, the above configuration phase can also be implemented as follows:
[0095] S401, Displays the visual management interface of the out-of-band controller.
[0096] The aforementioned out-of-band controller's visual management interface provides a way for users to manage and configure the server. For example, such as... Figure 4 As shown, the visual management interface of the out-of-band controller can be used to display the server's system configuration information, hardware device information, and composite device information, such as the loading or unloading status and operating status of the composite device. Simultaneously, users can also configure (including adding, modifying, and deleting) relevant server information through the visual management interface of the out-of-band controller, such as modifying the server's system configuration information, modifying the hardware device information within the server, and modifying the information of the composite device within the server.
[0097] In some embodiments, the electronic device can access the visual management interface of the out-of-band controller through the out-of-band controller's access interface and display the visual management interface of the out-of-band controller on the display screen of the electronic device.
[0098] The aforementioned access interface is used to access the visual management interface of the out-of-band controller. Optionally, the access interface can be a web interface, such as an API interface. For example, assuming the API interface is developed based on the Hypertext Transfer Protocol (HTTP), the user can enter the HTTP address of the out-of-band controller's access interface in the browser of the electronic device to enter the visual management interface of the out-of-band controller.
[0099] Understandably, since the visual management interface of the out-of-band controller provides a way for users to manage and configure the server, users can access the visual management interface of the out-of-band controller through electronic devices and then configure the information of the composite device on the interface.
[0100] S402, Receive the first configuration operation of multiple composite devices in the visual management interface for the out-of-band controller.
[0101] For example, electronic devices can be in the form of Figure 4 In the visual management interface of the out-of-band controller shown, you can access the following through the "Priority Configuration" interface of the composite device: Figure 5 The interface for configuring the priority of the composite device is shown, and then the first configuration operation is performed to configure the priority of the composite device.
[0102] S403, in response to the first configuration operation, determines the priority of multiple composite devices.
[0103] In some embodiments, the specific implementation of step S403 can be found in step S302 above, and will not be repeated here.
[0104] S404, Receive a second configuration operation for multiple composite devices in the visual management interface for the out-of-band controller.
[0105] For example, electronic devices can be in the form of Figure 4 In the visual management interface of the out-of-band controller shown, you can access the following through the "USB list configuration" interface of the composite device: Figure 6 The USB list configuration page for the composite device shown allows you to perform a second configuration operation to configure the USB list for the composite device. For example, suppose the virtual USB devices in composite device 1 include a virtual keyboard, a virtual mouse, and a virtual floppy drive; and the virtual USB devices in composite device 2 include a virtual CD-ROM drive and a virtual network adapter. If the virtual USB devices to be loaded in composite device 1 are a virtual keyboard and a virtual mouse, then the USB list for composite device 1 will include both virtual keyboard and virtual mouse. Similarly, if the virtual USB device to be loaded in composite device 2 is a virtual CD-ROM drive, then the USB list for composite device 2 will include the virtual CD-ROM drive.
[0106] S405, in response to the second configuration operation, determine the virtual USB device that needs to be loaded in each composite device.
[0107] In some embodiments, the specific implementation of step S405 can be found in step S304 above, and will not be repeated here.
[0108] In summary, according to the method provided in the embodiments of this application, the out-of-band controller's visual management interface can be accessed through the server's out-of-band controller access interface, and then the information configuration of the composite device can be performed in the out-of-band controller's visual management interface, such as configuring the priority of the composite device and configuring the USB list of the composite device. In this way, during the transmission stage, USB channels can be allocated to the composite device according to the composite device priority, and differentiated loading of the composite device can be achieved according to the USB list of the composite device.
[0109] II. Transmission Phase
[0110] In some embodiments, the execution entity of the transmission phase can be an out-of-band controller of the server, such as... Figure 7 As shown, the transmission phase may include the following steps:
[0111] S501. Determine the data transfer capability of multiple USB channels.
[0112] Among them, all of the aforementioned USB channels are in an idle state.
[0113] In some embodiments, the data transfer capability of the USB channel reflects its data throughput and read / write capabilities. It is understood that the stronger the data transfer capability of the USB channel, the more data it can transfer, and the higher its success rate in reading or writing data.
[0114] In some embodiments, the above method further includes: obtaining the write success rate, write percentage, read success rate, and read percentage of multiple USB channels within a target historical time period.
[0115] The target historical time period can be any time period prior to the current moment. In some embodiments, the out-of-band controller acquires the data transmission status of multiple USB channels according to a preset time period (data transmission status includes: write success rate, write percentage, read success rate, and read percentage, etc.). Thus, the target historical time period can be the time period corresponding to any preset time period prior to the current moment.
[0116] The write success rate mentioned above refers to the ratio of the number of times data was successfully written via the USB channel (i.e., successfully written to the in-band controller) to the total number of write operations within a target historical time period. For example, assuming there were 10 write operations performed via USB channel 1 within the target time period, and 5 of them were successfully written, then the write success rate of USB channel 1 is: 5 / 10 = 0.5.
[0117] The write percentage refers to the ratio of the amount of data written through the USB channel to the total data throughput of the USB channel (including both data written and read) within the target historical time period. For example, assuming the data throughput of USB channel 1 is 8MB within the target time period, and 5MB of data is written through USB channel 1, then the write percentage of USB channel 1 is: 5 / 8 = 0.625.
[0118] The read success rate mentioned above refers to the ratio of the number of times data was successfully read via USB channel (i.e., successfully read from the in-band controller) within the target historical time period to the total number of read operations. For example, assuming that the number of times data was successfully read from the in-band controller via USB channel 1 was 10 times within the target time period, of which 6 times were successfully read via USB channel 1, then the read success rate of USB channel 1 is: 6 / 10 = 0.6.
[0119] The read percentage ratio mentioned above refers to the ratio of the amount of data read through the USB channel to the total data throughput of the USB channel (including the amount of data written and read through the USB channel) within a target historical time period. For example, assuming that the data throughput of USB channel 1 is 8M during the target time period, of which 3M is read through USB channel 1, then the read percentage ratio of USB channel 1 is: 3 / 8 = 0.375.
[0120] In some embodiments, such as Figure 8 As shown, step S501 above can be implemented as follows:
[0121] S5011. Determine the write data capability of each USB channel based on the write success rate and write percentage of each USB channel within the target historical time period.
[0122] In some embodiments, the write capability of each USB channel can be quantified, for example, by characterizing the write capability of each USB channel based on the product of its write success rate and write percentage over a target historical time period. The higher the product of the write success rate and write percentage, the stronger the write capability of the USB channel.
[0123] For example, the write capability of each USB channel can be characterized by the value of "write success rate * write percentage". Assuming that the write success rate of USB channel 1 is 0.5 and the write percentage is 0.625, then the write capability of USB channel 1 can be quantified as: 0.5 * 0.625 = 0.3125.
[0124] S5012. Determine the data reading capability of each USB channel based on the read success rate and read percentage of each USB channel within the target historical time period.
[0125] In some embodiments, the read capability of each USB channel can be quantified, for example, by characterizing the read capability of each USB channel based on the product of its read success rate and read percentage over a target historical time period. The higher the product of the read success rate and read percentage, the stronger the read capability of the USB channel.
[0126] For example, the read capability of each USB channel can be characterized by the value of "read success rate * read percentage". Assuming that the read success rate of USB channel 1 is 0.6 and the read percentage is 0.375, then the read capability of USB channel 1 can be quantified as: 0.6 * 0.375 = 0.225.
[0127] S5013. Determine the data transfer capability of each USB channel based on the write data capability and read data capability of each USB channel.
[0128] In some embodiments, the data transfer capability of each USB channel can be quantified. For example, a weight value for each USB channel can be calculated based on the product of the write success rate and the write percentage rate, and the product of the read success rate and the read percentage rate, within a target historical time period. The data transfer capability of each USB channel can then be characterized based on the weight value of each USB channel.
[0129] For example, the weight value of each USB channel can be determined by "write success rate * write percentage + read success rate * read percentage". Assuming that within the target historical time period, the write success rate * write percentage in USB channel 1 is 0.3125 and the read success rate * read percentage is 0.225, then the weight value of USB channel 1 is "0.3125 + 0.225 = 0.5375".
[0130] It is understood that different USB channels have different data transmission quantities and rates. Therefore, the method provided in this application can determine the data transmission capacity of each USB channel based on its write success rate, write percentage, read success rate, and read percentage within a target historical time period. The write success rate and read success rate reflect the read / write capabilities of a USB channel; the write percentage and read percentage reflect the data transmission capacity (e.g., the size of the transmitted data). Therefore, this application's method of determining the data transmission capacity of a USB channel using write success rate, write percentage, read success rate, and read percentage accurately measures the overall read / write and data transmission capabilities of the USB channel.
[0131] S502. Based on the data transfer capabilities of multiple USB channels, allocate a target USB channel to the target.
[0132] The target device can be any one of multiple composite devices; the target USB channel can be any one of multiple USB channels.
[0133] As one possible implementation, step S502 can be implemented as follows: A USB channel with a data transfer capacity higher than a preset data transfer capacity among multiple USB channels can be selected as the target USB channel and allocated to the target device. It is understood that, to ensure fast and efficient data transmission to the target device, when allocating USB channels to the target device, a USB channel with a data transfer capacity higher than a preset data transfer capacity can be selected as the target USB channel and allocated to the target device, thereby ensuring fast and efficient data transmission to the target device.
[0134] In some embodiments, the method further includes: obtaining the priority of the target device. Optionally, the priority of the target device is proportional to the frequency of data generation by the target device; or, the priority of the target device is proportional to the importance of the data generated by the target device. For example, if the priority of the target device is related to the frequency of data generation by the target device, then the higher the frequency of data generation by the target device, the higher the priority of the target device; if the priority of the target device is related to the importance of the data generated by the target device, then the higher the importance of the data generated by the target device, the higher the priority of the target device; if the priority of the target device is related to both the frequency and importance of data generation by the target device, then the higher both the frequency and importance of data generation by the target device, the higher the priority of the target device.
[0135] As another possible implementation, step S502 above can also be implemented as: allocating a target USB channel to the target device according to the priority of the target device and the data transmission capability of multiple USB channels.
[0136] The higher the priority of the target device, the stronger the data transmission capability of the target USB channel allocated to the target device.
[0137] For example, suppose multiple composite devices include: composite device 1, composite device 2, and composite device 3; wherein the priority order of the multiple composite devices is: composite device 2, composite device 1, composite device 3; suppose multiple USB channels include: USB channel 1, USB channel 2, and USB channel 3; wherein the multiple USB channels are ordered according to data transmission capability as: USB channel 1, USB channel 2, USB channel 3; then, allocating USB channels to the multiple composite devices according to the composite device priority and the data transmission capability of the USB channels includes: allocating USB channel 2 to composite device 1, allocating USB channel 1 to composite device 2, and allocating USB channel 3 to composite device 3. If the target device is composite device 1, then the target USB channel allocated to the target device is USB channel 2.
[0138] It is understood that the embodiments of this application can allocate USB channels to composite devices based on their priority and USB channel data transmission capabilities. For example, high-priority composite devices can be allocated USB channels with strong data transmission capabilities. Thus, compared to the method of binding composite devices to USB channels in related technologies, the embodiments of this application can dynamically allocate USB channels to composite devices, making the data transmission method of composite devices more flexible. Furthermore, by dynamically allocating USB channels to composite devices—for example, allocating high-data-transmission-capability USB channels to composite devices that generate data more frequently—resources can be rationally allocated, helping to improve the data transmission efficiency of composite devices.
[0139] S503: Transmit the data from the target device to the in-band controller via the target USB channel.
[0140] The target device includes multiple virtual USB devices. Therefore, the data of the target device can be the data of all virtual USB devices in the target device; or, the data of the target device can be the data of some virtual USB devices in the target device.
[0141] In some embodiments, the in-band controller includes an OS; therefore, the above method can be implemented to transmit data from the target device to the OS in the in-band controller via the target USB channel.
[0142] In some embodiments, such as Figure 1As shown, the target device can be remotely controlled by an electronic device via KVM, such as controlling the loading and unloading of the target device. Since the target device includes multiple virtual USB devices, the above method also includes controlling the loading and data transfer of all or some of the virtual USB devices in the target device via KVM. Specifically, this can be implemented through the following steps:
[0143] Step a1: The out-of-band controller obtains the identifier of the virtual USB device that needs to be loaded in the target device.
[0144] As one possible implementation, users can access the out-of-band controller's visual management interface through its access interface and configure the USB list of the target device. This USB list includes identifiers of the virtual USB devices to be loaded on the target device. Therefore, the out-of-band controller can obtain the identifiers of the virtual USB devices to be loaded on the target device by retrieving the target device's USB list.
[0145] Step a2: The out-of-band controller sends the identifier of the virtual USB device that needs to be loaded in the target device to KVM.
[0146] For example, such as Figure 9 As shown, assuming the target device includes a virtual mouse and a virtual keyboard, where the virtual USB device to be loaded in the target device is the virtual keyboard, the server's out-of-band controller can send the identifier of the virtual keyboard to the KVM client.
[0147] Step a3: KVM controls the loading of the virtual USB device that needs to be loaded on the target device based on the identifier of the virtual USB device that needs to be loaded on the target device.
[0148] For example, such as Figure 9 As shown, assuming the identifier of the virtual USB device that needs to be loaded in the target device received by the KVM client is the identifier of the virtual keyboard, then the KVM client will only drive the virtual keyboard in the target device to load.
[0149] It is understood that the composite devices in the out-of-band controller are all remotely controlled by KVM, such as loading and unloading composite devices. Therefore, in this embodiment, the identifiers of the virtual USB devices that need to be loaded in the target device can be sent to KVM, so that KVM can load only the virtual USB devices that need to be loaded in the target device when loading the target device. In this way, compared with the methods in related technologies that require loading all virtual USB devices in the target device, the method provided by this embodiment can realize differentiated loading of the target device according to user needs, thereby reducing the resource consumption of the USB channel by the target device's data.
[0150] In some embodiments, step S503 can be implemented as follows: transmitting the data of the virtual USB device to be loaded in the target device to the in-band controller through the target USB channel.
[0151] For example, assuming the target device includes a virtual mouse and a virtual keyboard, and the virtual USB device to be loaded in the target device is the virtual keyboard, then after the target device is loaded, the out-of-band controller will transmit the data of the virtual keyboard in the target device to the in-band controller through the target USB channel.
[0152] Compared to related technologies that require transmitting data from all virtual USB devices in the target device to the in-band controller via the USB channel, this application embodiment can, according to user needs, feed back the identifiers of the virtual USB devices that need to be loaded in the target device to the KVM. This allows the KVM to control the loading of the required virtual USB devices based on these identifiers, achieving differentiated loading of the target device and meeting diverse user needs. Furthermore, when transmitting data from the target device, only the data of the virtual USB devices that need to be loaded can be transmitted, reducing the transmission of useless data and lowering the resource consumption of the USB channel by the target device's data.
[0153] The foregoing primarily describes the solutions of the embodiments of this application from a methodological perspective. It is understood that, in order to achieve the aforementioned functions, the out-of-band controller and electronic device include at least one of the hardware structures and software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0154] This application embodiment can divide the out-of-band controller and electronic device into functional units according to the above method embodiment. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0155] like Figure 10 As shown, this application embodiment provides an out-of-band controller for performing, such as Figure 2or Figure 7 The data transmission method is illustrated. Specifically, the out-of-band controller 600 includes: a determination module 601, an allocation module 602, and a transmission module 603. In some other embodiments, the out-of-band controller 600 further includes: an acquisition module 604 and a transmission module 605.
[0156] The determination module 601 is used to determine the data transmission capabilities of multiple USB channels.
[0157] The allocation module 602 is used to allocate a target USB channel to a target device based on the data transmission capabilities of multiple USB channels; wherein the target device is any one of multiple composite devices; and the target USB channel is any one of multiple USB channels.
[0158] The transmission module 603 is used to transmit data from the target device to the in-band controller via the target USB channel.
[0159] As one possible implementation, the aforementioned determining module 601 is specifically used to determine the write data capability of each USB channel based on the write success rate and write percentage of each USB channel in a historical time period; to determine the read data capability of each USB channel based on the read success rate and read percentage of each USB channel in a historical time period; and to determine the data transmission capability of each USB channel based on the write data capability and the read data capability of each USB channel.
[0160] As another possible implementation, the allocation module 602 is specifically used to allocate the USB channel with a data transmission capacity higher than the preset data transmission capacity among the multiple USB channels to the target device.
[0161] As another possible implementation, the allocation module 602 is specifically used to allocate a target USB channel to the target device according to the priority of the target device and the data transmission capability of multiple USB channels, wherein the priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device.
[0162] As another possible implementation, the determination module 601 described above is also used to receive a first configuration operation for the target device in the out-of-band controller and determine the priority of the target device.
[0163] As another possible implementation, the target device is remotely controlled by a multi-computer switching device (KVM); the target device includes multiple virtual USB devices; the aforementioned acquisition module 604 is used to acquire the identifier of the virtual USB device to be loaded in the target device; the aforementioned sending module 605 is used to send the identifier to the KVM; the KVM is used to control the loading of the virtual USB device to be loaded in the target device according to the identifier.
[0164] As another possible implementation, the aforementioned transmission module 603 is specifically used to transmit the data of the virtual USB device that needs to be loaded in the target device to the in-band controller through the target USB channel.
[0165] As another possible implementation, the determination module 601 described above is also used to receive a second configuration operation for the target device in the out-of-band controller, and to determine the virtual USB device that needs to be loaded in the target device.
[0166] like Figure 11 As shown, this application provides an electronic device for performing the following... Figure 3 The data transmission method is shown. Specifically, the electronic device 700 includes a display module 701 and a determination module 702.
[0167] Display module 701 is used to display the visual management interface of the out-of-band controller; the visual management interface includes information on multiple composite devices.
[0168] The determination module 702 is used to receive a first configuration operation for a target device in the visual management interface and determine the priority of the target device; the target device is any one of multiple composite devices; the priority of the target device is used by the out-of-band controller to allocate a target USB channel to the target device; wherein, the priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device; the target USB channel is any one of multiple USB channels; all multiple USB channels are USB channels in an idle state.
[0169] As one possible implementation, the target device includes multiple virtual USB devices; the determining module 702 is also used to receive a second configuration operation for the target device in the visual management interface, and to determine the virtual USB devices that need to be loaded in the target device.
[0170] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the out-of-band controller and electronic device can be divided into different functional modules to complete all or part of the functions described above.
[0171] This application also provides an out-of-band controller, including an interface and logic circuitry, wherein the logic circuitry is used to execute any of the data transmission methods provided in the above embodiments.
[0172] This application also provides an electronic device, including: an interface and logic circuitry, wherein the logic circuitry is used to execute any of the data transmission methods provided in the above embodiments.
[0173] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The computer-readable storage medium can also be an external storage device of the out-of-band controller or electronic device, such as a pluggable hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the out-of-band controller or electronic device. Further, the computer-readable storage medium can include both internal storage units of the out-of-band controller or electronic device and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the out-of-band controller or electronic device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
[0174] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to perform any of the data transmission methods provided in the above embodiments.
[0175] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0176] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
[0177] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data transmission method, characterized in that, The servers include: The system includes an out-of-band controller and an in-band controller; multiple Universal Serial Bus (USB) channels are connected between the out-of-band controller and the in-band controller; the out-of-band controller includes multiple composite devices; the composite devices are virtual devices with multiple USB device functions. A composite device communicates with the in-band controller via a USB channel; The method is applied to the out-of-band controller; the method includes: The data transmission capabilities of the multiple USB channels are determined, including the ability to write data and read data. The write capability includes write success rate and write percentage; the read capability includes read success rate and read percentage. Based on the data transmission capabilities of the multiple USB channels, a target USB channel is allocated to the target device. The target device is any one of the multiple composite devices; the target USB channel is any one of the multiple USB channels; the target device is remotely controlled by a multi-computer switching device (KVM); the target device includes multiple virtual USB devices. Obtain the identifier of the virtual USB device to be loaded in the target device; The identifier is sent to the KVM; the KVM is used to control the loading of the virtual USB device that needs to be loaded in the target device according to the identifier; The data of the virtual USB device that needs to be loaded in the target device is transmitted to the in-band controller through the target USB channel.
2. The method according to claim 1, characterized in that, Determining the data transmission capabilities of the multiple USB channels includes: The write capability of each USB channel is determined based on the write success rate and write percentage of each USB channel within a historical time period. The read data capability of each USB channel is determined based on the read success rate and read percentage of each USB channel within a historical time period. The data transmission capability of each USB channel is determined based on its write data capability and its read data capability.
3. The method according to claim 1, characterized in that, The step of allocating a target USB channel to the target device based on the data transmission capabilities of the multiple USB channels includes: The USB channel with a data transfer capability higher than the preset data transfer capability among the multiple USB channels is designated as the target USB channel and allocated to the target device.
4. The method according to claim 2, characterized in that, The step of allocating a target USB channel to the target device based on the data transmission capabilities of the multiple USB channels includes: The USB channel with a data transfer capability higher than the preset data transfer capability among the multiple USB channels is designated as the target USB channel and allocated to the target device.
5. The method according to claim 1, characterized in that, The step of allocating a target USB channel to the target device based on the data transmission capabilities of the multiple USB channels includes: Based on the priority of the target device and the data transmission capacity of the multiple USB channels, a target USB channel is allocated to the target device, wherein the priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device.
6. The method according to claim 2, characterized in that, The step of allocating a target USB channel to the target device based on the data transmission capabilities of the multiple USB channels includes: Based on the priority of the target device and the data transmission capacity of the multiple USB channels, a target USB channel is allocated to the target device, wherein the priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device.
7. The method according to claim 5, characterized in that, The method further includes: Receive a first configuration operation for the target device in the out-of-band controller and determine the priority of the target device.
8. The method according to claim 6, characterized in that, The method further includes: Receive a first configuration operation for the target device in the out-of-band controller and determine the priority of the target device.
9. The method according to claim 1, characterized in that, Before obtaining the identifier of the virtual USB device to be loaded in the target device, the method further includes: Receive a second configuration operation for the target device in the out-of-band controller, and determine the virtual USB device that needs to be loaded in the target device.
10. A data transmission method, characterized in that, The servers include: An out-of-band controller and an in-band controller; the out-of-band controller includes multiple composite devices; the composite devices are virtual devices with multiple USB device functions; The out-of-band controller and the in-band controller include multiple Universal Serial Bus (USB) channels; the out-of-band controller includes multiple composite devices; one composite device communicates with the in-band controller through one USB channel; the method is applied to an electronic device; the electronic device is used to remotely access the out-of-band controller; the out-of-band controller is used to determine the data transmission capabilities of the multiple USB channels, the data transmission capabilities including the ability to write data to the USB channels and the ability to read data from the USB channels; The ability to write data includes the success rate and the percentage of write operations. The data reading capability includes read success rate and read percentage; the method includes: The visual management interface of the out-of-band controller is displayed; the visual management interface includes information about the multiple composite devices; The system receives a first configuration operation for a target device in the visual management interface, and determines the priority of the target device. The target device is any one of the plurality of composite devices. The priority of the target device is used by the out-of-band controller to allocate a target USB channel to the target device. The priority of the target device is proportional to the frequency of data generation by the target device; and / or, the priority of the target device is proportional to the importance of the data generated by the target device. The target USB channel is any one of the plurality of USB channels. All of the plurality of USB channels are in an idle state. The target device is remotely controlled by a multi-computer switching device (KVM). The target device includes multiple virtual USB devices. Obtain the identifier of the virtual USB device to be loaded in the target device; send the identifier to the KVM, the KVM is used to control the virtual USB device to be loaded in the target device to load according to the identifier, so that the out-of-band controller transmits the data of the virtual USB device to be loaded in the target device to the in-band controller through the target USB channel.
11. The method according to claim 10, characterized in that, The method further includes: Receive a second configuration operation for the target device in the visual management interface, and determine the virtual USB device that needs to be loaded in the target device.
12. An external controller, characterized in that, include: An interface and logic circuitry, the logic circuitry being used to perform the data transmission method as described in any one of claims 1 to 9.
13. An electronic device, characterized in that, include: An interface and logic circuitry, the logic circuitry being used to perform the data transmission method as described in claim 10 or 11.
Citation Information
Patent Citations
Method and device for transmitting data frame
CN103580773A
Data transmission method and device
CN110418376A
Channel resource allocation method and device, gateway and storage medium
CN115134930A
USB connections
US20180113828A1
