Method and device for configuring and scheduling virtual I/O (input/output) module
1. A method of configuring and scheduling virtual I/O modules, comprising:
configuring one or more virtual I/O modules and setting predetermined parameters based on the same physical hardware to generate a configuration file;
generating one or more virtual I/O module instances according to the configuration file;
sequencing the one or more virtual I/O module instances according to the configuration file to form an execution queue; and
and scheduling the virtual I/O module instances in the execution queue according to a periodic mode.
2. The method of claim 1, wherein the configuring one or more virtual I/O modules and setting predetermined parameters comprises:
configuring one or more different types and different numbers of virtual I/O modules according to the resource limit of the physical hardware, wherein the resources comprise hardware resources and software resources.
3. The method of claim 1, wherein said generating a virtual I/O module instance from said configuration file comprises:
analyzing the configuration file; and
generating a virtual I/O module instance from the parameters obtained from the parsed configuration file.
4. The method of claim 3, wherein the parsing the configuration file comprises:
matching configuration information acquired from the configuration file, wherein the configuration information comprises: the model, version, input information, output information, and the predetermined parameters of the virtual I/O module.
5. The method of claim 1, wherein said sorting said virtual I/O module instances according to said configuration file, forming an execution queue comprises:
acquiring the operation scheduling period of the one or more virtual I/O modules according to the configuration file;
determining the priority of each corresponding virtual I/O module instance according to the operation scheduling period, wherein the shorter the operation scheduling period is, the higher the priority of the virtual I/O module instance corresponding to the virtual I/O module is; and
and sequencing the virtual I/O module instances according to the priority to form an execution queue.
6. The method of claim 5, wherein said scheduling said virtual I/O module instances in said execution queue in a periodic manner comprises:
and scheduling the virtual I/O module instances in the execution queue according to the operation scheduling period.
7. An apparatus to configure and schedule virtual I/O modules, comprising:
the configuration unit is used for configuring one or more virtual I/O modules and setting predetermined parameters based on the same physical hardware so as to generate a configuration file;
the generating unit is used for generating one or more virtual I/O module instances according to the configuration file;
a forming unit, configured to sort the one or more virtual I/O module instances according to the configuration file, and form an execution queue; and
and the scheduling unit is used for scheduling the virtual I/O module instances in the execution queue according to a periodic mode.
8. The apparatus of claim 7, wherein the configuration unit comprises:
and the configuration subunit is used for configuring one type or a plurality of different types and different numbers of virtual I/O modules according to the resource limit of the physical hardware, wherein the resources comprise hardware resources and software resources.
9. The apparatus of claim 7, wherein the generating unit comprises:
the analysis subunit is used for analyzing the configuration file; and
a generating subunit, configured to generate a virtual I/O module instance according to the parameters obtained from the parsed configuration file.
10. The apparatus of claim 9, wherein the parsing subunit comprises:
a configuration subunit, configured to match configuration information obtained from the configuration file, where the configuration information includes: the model, version, input information, output information, and the predetermined parameters of the virtual I/O module.
11. The apparatus of claim 7, wherein the forming unit comprises:
the obtaining subunit is configured to obtain, according to the configuration file, an operation scheduling period of the one or more virtual I/O modules;
a determining subunit, configured to determine, according to the operation scheduling period, a priority of each corresponding virtual I/O module instance, where the shorter the operation scheduling period is, the higher the priority of the virtual I/O module instance corresponding to the virtual I/O module is; and
and the forming subunit is used for sequencing the virtual I/O module instances according to the priority to form an execution queue.
12. The apparatus of claim 11, wherein the scheduling unit comprises:
and the scheduling subunit is used for scheduling the virtual I/O module instances in the execution queue according to the operation scheduling period.
Background
In the field of automatic control, in order to facilitate production management and differentiated pricing, hardware and software of an Input/Output (I/O) module are generally bound, and one piece of hardware generally only completes one special function and is not universal. However, for users, the binding mode causes waste of performance and interfaces, and particularly, the performance of components is greatly improved due to the development of computer technology. For users who want to improve the production and manufacturing automation level and suffer from the construction cost of the automatic control system, the expansion of different I/O functions can be realized on the basis of reusing the existing hardware resources, and the method becomes a new requirement of the users for improving the resource utilization rate of equipment manufacturers.
Disclosure of Invention
Because the development period of hardware is generally long, once the modification of functions involves hardware, and the design scheme of the hardware is iterated, the investment of equipment manufacturers is extremely high, and even the investment is not in proportion to the output. For equipment manufacturers, a way to reduce the requirement on hardware development is also required, change of user requirements is realized from the aspect of software as much as possible, and sufficient margin is left for subsequent upgrading and expansion under the condition of not changing the existing software and hardware system.
In the prior art, taking a processor module as an example, the performance of the processor module is beyond the performance of completing logical operation, the computing capability is completely redundant, and sufficient margin is left in the data message volume of the ethernet port carried by the processor module during normal operation, so that one or more communication I/O modules can be completely virtualized on the existing processor module through software and configuration, and the ethernet communication functions of a plurality of connected and different third-party communication protocols can be realized by the processor module without affecting the logical operation function.
To this end, we propose a method and apparatus for configuring and scheduling virtual I/O modules that enable different signal processing, input and output functions to be supported on the same physical hardware within the same configuration software framework.
According to a first aspect of the present invention, there is provided a method of configuring and scheduling virtual I/O modules, comprising:
configuring one or more virtual I/O modules and setting predetermined parameters based on the same physical hardware to generate a configuration file;
generating one or more virtual I/O module instances according to the configuration file;
sequencing the one or more virtual I/O module instances according to the configuration file to form an execution queue; and
and scheduling the virtual I/O module instances in the execution queue according to a periodic mode.
According to a second aspect of the present invention, there is provided an apparatus for configuring and scheduling a virtual I/O module, comprising:
the configuration unit is used for configuring one or more virtual I/O modules and setting predetermined parameters based on the same physical hardware so as to generate a configuration file;
the generating unit is used for generating one or more virtual I/O module instances according to the configuration file;
a forming unit, configured to sort the one or more virtual I/O module instances according to the configuration file, and form an execution queue; and
and the scheduling unit is used for scheduling the virtual I/O module instances in the execution queue according to a periodic mode.
By the method and the device for configuring and scheduling the virtual I/O module, one or more communication I/O modules are configured on the same physical hardware through software, and the physical hardware realizes the communication functions of a plurality of connected and different third-party communication protocols on the premise of not influencing the self operation function of the physical hardware. By the method and the device, expansion of different I/O functions is realized on the basis of multiplexing the existing hardware resources, and better utilization rate of the hardware resources is obtained.
Drawings
For further clarity of explanation of the features and technical content of the present invention, reference should be made to the following detailed description of the present invention and accompanying drawings, which are provided for reference and description purposes only and are not intended to limit the present invention.
In the following drawings:
FIG. 1 is a schematic diagram of a virtual I/O module system.
FIG. 2 is a flow diagram of a method of configuring and scheduling virtual I/O modules according to an embodiment of the present invention.
FIG. 3 is a schematic diagram of an apparatus to configure and schedule virtual I/O modules according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention disclosed are described below with reference to specific embodiments, and those skilled in the art can understand the advantages and effects of the present invention from the disclosure of the present specification. The invention is capable of other and different embodiments and its several details are capable of modification and various other changes, which can be made in various details within the specification and without departing from the spirit and scope of the invention. The drawings of the present invention are for illustrative purposes only and are not drawn to scale. The following embodiments will further explain the related art of the present invention in detail, but the disclosure is not intended to limit the scope of the present invention.
FIG. 1 is a schematic diagram of a virtual I/O module system. As shown in FIG. 1, the system includes a component 101, a component 102, and a component 103. The component 101 is a physical hardware, in particular a physical hardware with processor functionality, on which all software functionality is implemented. In a particular embodiment, the physical hardware is a processor module. The physical hardware needs to have sufficient performance and resource capacity to meet the operating requirements of more than one virtual I/O module instance.
Component 102 is a virtual I/O module that multiplexes hardware resources and software resources of component 101, has no hardware entities, and is located within component 101 as a logical existence. The virtual I/O module realizes different I/O functions according to requirements, including external input signal acquisition, signal preprocessing and diagnosis and signal processing result output. The virtual I/O modules may be of many different types and numbers within component 101, but their types and numbers are limited by the hardware and software resources of component 101. In one embodiment, the hardware resources include processing power and memory space of a processor (e.g., CPU) of the physical hardware, and the software resources include upper bounds of semaphores communicated over the physical hardware.
Component 103 is a hardware interface, located within component 101, and is a hardware component thereof. All virtual I/O modules share this hardware interface, and therefore the functional implementation of a virtual I/O module is limited by the hardware interface type. The external input signal acquisition and the output of the signal processing result are realized through the hardware interface.
Based on the above description of the virtual I/O module system, according to one aspect, the present invention provides a method for configuring and scheduling virtual I/O modules based on the virtual I/O module system.
FIG. 2 is a flow diagram of a method of configuring and scheduling virtual I/O modules according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps.
Step S201, configuring one or more virtual I/O modules and setting predetermined parameters based on the same physical hardware to generate a configuration file.
There is a controller or control unit that configures a physical hardware by controlling configuration software to form a configuration file. Wherein the physical hardware may be a processor module. It should be noted that the configuration mode of the configuration software for the virtual IO module is similar to or the same as the configuration mode of the configuration software for the common IO module, and the format of the formed configuration file is also similar to or the same as the configuration mode of the configuration software for the common IO module. The configuration process of the physical hardware based on the configuration software includes configuring which virtual I/O modules (including types and numbers of the virtual I/O modules), where the virtual I/O modules are located (i.e., which slots are occupied), configuring which functions are configured for each virtual I/O module, setting correct operation parameters for implementing the functions, and the like, and then forming a configuration file according to the configuration process of the physical hardware.
According to one embodiment of the invention, configuring one or more virtual I/O modules and setting predetermined parameters includes configuring one or more different types and different numbers of virtual I/O modules based on resource limitations of the physical hardware. Wherein the resources include hardware resources and software resources. Specifically, a piece of physical hardware has hardware resources and software resources, where the hardware resources include processing power and memory space of a processor (e.g., CPU) of the physical hardware, and the software resources include an upper limit of a semaphore for communication on the physical hardware pair. Controlling configuration software to perform virtual I/O module on physical hardware, considering the resource limit of the physical hardware, and stopping configuring the virtual I/O module when the resource required by the configured virtual I/O module exceeds the resource limit of the physical hardware. In addition, the type of the virtual I/O module is determined according to the actual function requirements, and the different actual functions correspond to different application functions, that is, the type of the virtual I/O module is determined according to the application functions. For example, if it is desired to implement the mobuss tcp communication function on the physical hardware, a corresponding virtual IO module is configured on the physical hardware; for another example, if it is desired to implement GOOSE communication function on the physical hardware, a corresponding virtual IO module is configured on the physical hardware. In addition, the parameters set in the configuration file are related to the application functions, and different parameters are set for different application functions. For example, for an application function such as mobusstcp, parameters to be set include an IP address of an access object, an address where data of the access object is stored, and the like; for the application function such as GOOSE, the parameters to be set include the MAC address of the access object, the COID number of the access data, and the like.
Step S202, one or more virtual I/O module instances are generated according to the configuration file.
Under the control of a controller or a control module, the physical hardware reads the configuration file generated and downloaded by the configuration software and then verifies the integrity and validity of the configuration file. Specifically, the generating one or more instances of virtual I/O modules according to the configuration file includes: analyzing the configuration file; and generating a virtual I/O module instance according to the parameters obtained from the parsed configuration file. Wherein the process of parsing the configuration file comprises: the configuration file is verified through a configuration file verification code generated by configuration software and a parameter area verification code in the configuration file, the configuration file is verified firstly during verification, the verification code is calculated and compared by reading the whole configuration file, and the error reporting is stopped; and then reading the check code of the parameter area, checking the parameter, and stopping analysis without error reporting.
According to a specific embodiment, said parsing said configuration file comprises: matching configuration information acquired from the configuration file, wherein the configuration information comprises: the model, version, input information, output information, and predetermined parameters of the virtual I/O module.
In the analysis process, the information such as the model and the version, the input, the output, the parameters and the like of the virtual I/O module in the configuration file is matched and checked, so that instantiation failure and operation abnormity caused by mismatching of configuration (such as version upgrading) are avoided. For example, the current physical hardware supports 2 virtual IO models, but the entire system can support 5 virtual IO models, and if the configuration is of another type, the configuration is not matched with the current physical hardware, so that verification is required to ensure that the wrong configuration is not executed; version, input, output and parameters this is mainly to prevent the same model from mismatching after upgrading, which may bring about errors in functionality.
Step S203, the one or more virtual I/O module instances are sequenced according to the configuration file to form an execution queue.
As described above, where the virtual I/O module is located (i.e., which slots are occupied) is recorded in the configuration file, the management process in the physical hardware needs to place the virtual I/O module instance in the corresponding slot according to the configuration file, and the positions of the slots where the virtual I/O module instance is placed are not repeated. For example, 2 types of virtual IO modules are configured on the same hardware in the configuration file, the first type includes 2 virtual IO modules in slots #1 and #3, respectively, and the second type includes 3 virtual IO modules in slots #2, #4, and #5, respectively. Then, in this step, the management process in the physical hardware may place the corresponding 5 virtual IO module instances in the #1, #2, #3, #4, #5 slots according to the configuration of the configuration file, and the execution queue may be formed by executing sequentially the #1, #2, #3, #4, #5 slots.
According to a preferred embodiment, the virtual I/O modules may be added to the execution queue according to their priority. Specifically, the sorting the virtual I/O module instances according to the configuration file to form an execution queue includes: acquiring the operation scheduling period of the one or more virtual I/O modules according to the configuration file; determining the priority of each corresponding virtual I/O module instance according to the operation scheduling period, wherein the shorter the operation scheduling period is, the higher the priority of the virtual I/O module instance corresponding to the virtual I/O module is; and sorting the virtual I/O module instances according to the priority to form an execution queue.
The operation scheduling period is determined according to the function of the virtual I/O module and the requirement of the input and output refresh rate, that is, the operation scheduling period of the currently configured virtual IO module can be obtained from the configuration file when the configuration file is analyzed.
In order to ensure that each virtual I/O module fully utilizes the existing software and hardware resources, the task priority corresponding to the virtual I/O module with a shorter operation scheduling period (i.e., the faster the operation speed is), i.e., the priority of the corresponding virtual I/O module instance, is higher. According to an embodiment of the present invention, the virtual I/O module instances with the same priority may be put together, specifically, the slot numbers of the respective virtual I/O modules may be known according to the configuration file, and the respective slot numbers of the virtual I/O module instances with the same operation scheduling cycle (i.e., with the same operation speed) are placed in the same priority task queue to form an execution queue, and then are sequentially executed. As described in the above example, the configuration file configures 2 types of virtual IO modules on the same hardware, the first type includes 2 virtual IO modules, the operation scheduling period is 10ms, the priority is set to 1, and the virtual IO modules are respectively in #1 and #3 slots, the second type includes 3 virtual IO modules, the operation scheduling period is 50ms, the priority is set to 2, and the virtual IO modules are respectively in #2, #4 and #5 slots. Then, the priority of the first virtual IO module instance is higher than that of the second virtual IO module instance, and finally, two task queues may be provided, one corresponding to the 10ms operation scheduling period and executed in the order of #1 and # 3; one for the 50ms calculation scheduling period, in the order of #2, #4, # 5. In a preferred embodiment, the higher the priority, the earlier the task queue corresponding to the virtual I/O module instance executes. Then, in the above example, the task queues corresponding to the 10ms operation scheduling period are executed first, and then the task queues corresponding to the 50ms operation scheduling period are executed, and the execution order is #1, #3, #2, #4, # 5.
Step S204, the virtual I/O module instances in the execution queue are scheduled according to a periodic mode.
As described above, when the configuration file is analyzed, the operation scheduling period of the currently configured virtual IO module may be obtained from the configuration file, that is, each virtual IO module has a corresponding operation scheduling period. Then the management process in the physical hardware schedules the virtual I/O module instances that join the execution queue in a periodic manner. Therefore, said scheduling said virtual I/O module instances in said execution queue in a periodic manner comprises: and scheduling the virtual I/O module instances in the execution queue according to the operation scheduling period. As mentioned above, the operation scheduling period is determined according to the virtual I/O module function and the input and output refresh rate requirements.
By the method for configuring and scheduling the virtual I/O module, one or more communication I/O modules are configured on the same physical hardware through software, and the physical hardware realizes the communication functions of a plurality of connected and different third-party communication protocols on the premise of not influencing the self operation function of the physical hardware. By the method, expansion of different I/O functions is realized on the basis of multiplexing the existing hardware resources, and better utilization rate of the hardware resources is obtained.
According to another aspect, the present invention also provides an apparatus for configuring and scheduling virtual I/O modules based on the virtual I/O module system.
FIG. 3 is a schematic diagram of an apparatus to configure and schedule virtual I/O modules according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes the following units.
A configuration unit 301, configured to configure one or more virtual I/O modules and set predetermined parameters based on the same physical hardware, so as to generate a configuration file.
There is a controller or control unit that configures a physical hardware by controlling configuration software to form a configuration file. Wherein the physical hardware may be a processor module. It should be noted that the configuration mode of the configuration software for the virtual IO module is similar to or the same as the configuration mode of the configuration software for the common IO module, and the format of the formed configuration file is also similar to or the same as the configuration mode of the configuration software for the common IO module. The configuration process of the physical hardware based on the configuration software includes configuring which virtual I/O modules (including types and numbers of the virtual I/O modules), where the virtual I/O modules are located (i.e., which slots are occupied), configuring which functions are configured for each virtual I/O module, setting correct operation parameters for implementing the functions, and the like, and then forming a configuration file according to the configuration process of the physical hardware.
According to one embodiment of the invention, the configuration unit 301 comprises: and the configuration subunit is used for configuring one type or a plurality of different types and different numbers of virtual I/O modules according to the resource limit of the physical hardware. Wherein the resources include hardware resources and software resources. Specifically, a piece of physical hardware has hardware resources and software resources, where the hardware resources include processing power and memory space of a processor (e.g., CPU) of the physical hardware, and the software resources include an upper limit of a semaphore for communication on the physical hardware pair. Controlling configuration software to perform virtual I/O module on physical hardware, considering the resource limit of the physical hardware, and stopping configuring the virtual I/O module when the resource required by the configured virtual I/O module exceeds the resource limit of the physical hardware. In addition, the type of the virtual I/O module is determined according to the actual function requirements, and the different actual functions correspond to different application functions, that is, the type of the virtual I/O module is determined according to the application functions. For example, if it is desired to implement the mobuss tcp communication function on the physical hardware, a corresponding virtual IO module is configured on the physical hardware; for another example, if it is desired to implement GOOSE communication function on the physical hardware, a corresponding virtual IO module is configured on the physical hardware. In addition, the parameters set in the configuration file are related to the application functions, and different parameters are set for different application functions. For example, for an application function such as mobusstcp, parameters to be set include an IP address of an access object, an address where data of the access object is stored, and the like; for the application function such as GOOSE, the parameters to be set include the MAC address of the access object, the COID number of the access data, and the like.
A generating unit 302, configured to generate one or more virtual I/O module instances according to the configuration file.
Under the control of a controller or a control module, the physical hardware reads the configuration file generated and downloaded by the configuration software and then verifies the integrity and validity of the configuration file. Specifically, the generation unit 302 includes: the analysis subunit is used for analyzing the configuration file; and a generating subunit, configured to generate a virtual I/O module instance according to the parameters obtained from the parsed configuration file. Wherein the process of parsing the configuration file comprises: the configuration file is verified through a configuration file verification code generated by configuration software and a parameter area verification code in the configuration file, the configuration file is verified firstly during verification, the verification code is calculated and compared by reading the whole configuration file, and the error reporting is stopped; and then reading the check code of the parameter area, checking the parameter, and stopping analysis without error reporting.
According to a specific embodiment, the parsing subunit includes: a matching subunit, configured to match configuration information obtained from the configuration file, where the configuration information includes: the model, version, input information, output information, and predetermined parameters of the virtual I/O module.
In the analysis process, the information such as the model and the version, the input, the output, the parameters and the like of the virtual I/O module in the configuration file is matched and checked, so that instantiation failure and operation abnormity caused by mismatching of configuration (such as version upgrading) are avoided. For example, the current physical hardware supports 2 virtual IO models, but the entire system can support 5 virtual IO models, and if the configuration is of another type, the configuration is not matched with the current physical hardware, so that verification is required to ensure that the wrong configuration is not executed; version, input, output and parameters this is mainly to prevent the same model from mismatching after upgrading, which may bring about errors in functionality.
A forming unit 303, configured to sort the one or more virtual I/O module instances according to the configuration file, and form an execution queue.
As described above, where the virtual I/O module is located (i.e., which slots are occupied) is recorded in the configuration file, the management process in the physical hardware needs to place the virtual I/O module instance in the corresponding slot according to the configuration file, and the positions of the slots where the virtual I/O module instance is placed are not repeated. For example, 2 types of virtual IO modules are configured on the same hardware in the configuration file, the first type includes 2 virtual IO modules in slots #1 and #3, respectively, and the second type includes 3 virtual IO modules in slots #2, #4, and #5, respectively. Then, in this step, the management process in the physical hardware may place the corresponding 5 virtual IO module instances in the #1, #2, #3, #4, #5 slots according to the configuration of the configuration file, and the execution queue may be formed by executing sequentially the #1, #2, #3, #4, #5 slots.
According to a preferred embodiment, the virtual I/O modules may be added to the execution queue according to their priority. Specifically, the forming unit 303 includes: the obtaining subunit is configured to obtain, according to the configuration file, an operation scheduling period of the one or more virtual I/O modules; a determining subunit, configured to determine, according to the operation scheduling period, a priority of each corresponding virtual I/O module instance, where the shorter the operation scheduling period is, the higher the priority of the virtual I/O module instance corresponding to the virtual I/O module is; and a forming subunit, configured to sort the virtual I/O module instances according to the priority, and form an execution queue.
The operation scheduling period is determined according to the function of the virtual I/O module and the requirement of the input and output refresh rate, that is, the operation scheduling period of the currently configured virtual IO module can be obtained from the configuration file when the configuration file is analyzed.
In order to ensure that each virtual I/O module fully utilizes the existing software and hardware resources, the task priority corresponding to the virtual I/O module with a shorter operation scheduling period (i.e., the faster the operation speed is), i.e., the priority of the corresponding virtual I/O module instance, is higher. According to an embodiment of the present invention, the virtual I/O module instances with the same priority may be put together, specifically, the slot numbers of the respective virtual I/O modules may be known according to the configuration file, and the respective slot numbers of the virtual I/O module instances with the same operation scheduling cycle (i.e., with the same operation speed) are placed in the same priority task queue to form an execution queue, and then are sequentially executed. As described in the above example, the configuration file configures 2 types of virtual IO modules on the same hardware, the first type includes 2 virtual IO modules, the operation scheduling period is 10ms, the priority is set to 1, and the virtual IO modules are respectively in #1 and #3 slots, the second type includes 3 virtual IO modules, the operation scheduling period is 50ms, the priority is set to 2, and the virtual IO modules are respectively in #2, #4 and #5 slots. Then, the priority of the first virtual IO module instance is higher than that of the second virtual IO module instance, and finally, two task queues may be provided, one corresponding to the 10ms operation scheduling period and executed in the order of #1 and # 3; one for the 50ms calculation scheduling period, in the order of #2, #4, # 5. In a preferred embodiment, the higher the priority, the earlier the task queue corresponding to the virtual I/O module instance executes. Then, in the above example, the task queues corresponding to the 10ms operation scheduling period are executed first, and then the task queues corresponding to the 50ms operation scheduling period are executed, and the execution order is #1, #3, #2, #4, # 5.
A scheduling unit 304, configured to schedule the virtual I/O module instances in the execution queue according to a periodic manner.
As described above, when the configuration file is analyzed, the operation scheduling period of the currently configured virtual IO module may be obtained from the configuration file, that is, each virtual IO module has a corresponding operation scheduling period. Then the management process in the physical hardware schedules the virtual I/O module instances that join the execution queue in a periodic manner. Therefore, the scheduling unit 304 includes: and the scheduling subunit is used for scheduling the virtual I/O module instances in the execution queue according to the operation scheduling period. As mentioned above, the operation scheduling period is determined according to the virtual I/O module function and the input and output refresh rate requirements.
By the device for configuring and scheduling the virtual I/O module, one or more communication I/O modules are configured on the same physical hardware through software, and the physical hardware realizes the communication functions of a plurality of connected and different third-party communication protocols on the premise of not influencing the self operation function of the physical hardware. By the device, expansion of different I/O functions is realized on the basis of multiplexing the existing hardware resources, and better utilization rate of the hardware resources is obtained.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included therein.