CN117251328A - USB peripheral remote adaptation method and system - Google Patents

USB peripheral remote adaptation method and system Download PDF

Info

Publication number
CN117251328A
CN117251328A CN202311531381.1A CN202311531381A CN117251328A CN 117251328 A CN117251328 A CN 117251328A CN 202311531381 A CN202311531381 A CN 202311531381A CN 117251328 A CN117251328 A CN 117251328A
Authority
CN
China
Prior art keywords
usb
tested
test
peripheral
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311531381.1A
Other languages
Chinese (zh)
Other versions
CN117251328B (en
Inventor
王文成
张要辉
张文艳
祁立学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced Operating System Innovation Center Tianjin Co ltd
Original Assignee
Advanced Operating System Innovation Center Tianjin Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced Operating System Innovation Center Tianjin Co ltd filed Critical Advanced Operating System Innovation Center Tianjin Co ltd
Priority to CN202311531381.1A priority Critical patent/CN117251328B/en
Publication of CN117251328A publication Critical patent/CN117251328A/en
Application granted granted Critical
Publication of CN117251328B publication Critical patent/CN117251328B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The method comprises the steps of constructing a cloud host resource pool, connecting a plurality of USB peripherals with a local USB access host to obtain USB peripheral resource pools corresponding to the USB peripherals, constructing a cloud host to be tested corresponding to a remote host to be tested based on a cloud host resource pool according to test tasks input by a tester, determining the USB peripherals to be tested from the USB peripheral resource pools, testing the USB peripherals to be tested and the cloud host to be tested based on the test tasks, completing the test, collecting test data, giving a test report, releasing the cloud host to be tested, disconnecting the USB peripherals to be tested from the local USB access host, and achieving the effect of remote suitability test by establishing the effect of the connection between the USB peripherals to be tested and the remote host to be tested.

Description

USB peripheral remote adaptation method and system
Technical Field
The application relates to the technical field of suitability testing, in particular to a USB peripheral remote adaptation method and system.
Background
The adaptation of the computer peripheral equipment to the chip and the operating system involves the physical connection between the devices, while in the peripheral products, the peripheral equipment of the USB interface occupies most part. The USB peripheral device is greatly influenced by space factors because of the interface characteristics of the USB peripheral device and the process of carrying out the adapting operation.
The current working and developing flow of the adaptation test of the computer USB peripheral is as follows:
(1) Selecting a computer corresponding to the CPU chip and the operating system according to the application scene of the peripheral equipment;
(2) Starting a computer in the test physical space, connecting the computer with a peripheral through a USB (universal serial bus) line, and installing a peripheral driver by the computer;
(3) And the tester develops the test according to the test case and sends out a test report.
The adaptation test process is only suitable for a single adaptation test of a simple scene. In complex scenarios, it is often difficult to implement, for example:
(1) In the research and development of peripheral products, compatibility of different operating systems and CPU chips is often considered, so that adaptation tests are carried out on different operating systems aiming at different CPU chips;
(2) In the iterative development process of the CPU chip and the operating system, large-scale centralized adaptation test is required to be carried out aiming at the storage adapted peripheral equipment;
(3) The peripheral equipment and the computer are stored in different places and cannot be directly and physically connected;
namely, the existing USB peripheral adaptation method requires direct physical connection between the USB peripheral and the computer, and brings a series of difficulties for development of USB peripheral adaptation work. Under the scenes (1) and (2), the existing adaptation test method needs to repeatedly plug and pull the connection between the USB peripheral and the computer to replace the connection object. But scenario (3) is not directly implemented, and requires that the USB peripheral or computer be transported to the same location and then tested. In addition, in a limited physical space, there are also many inconveniences in storage movement of devices, connection wiring, and the like.
Disclosure of Invention
In order to solve the defects existing in the prior art, the invention provides a USB peripheral remote adaptation method, which comprises the following steps:
the method comprises the steps that a cloud host resource pool is built, a plurality of USB peripheral devices are connected with a local USB access host to obtain a USB peripheral device resource pool corresponding to the USB peripheral devices, wherein a USB client, a USB host controller and a USB host controller driver are configured on the local USB access host, the USB client comprises a first communication module, the USB host controller is used for transmitting device data of the USB peripheral devices to be tested, which are required to be subjected to suitability testing, to the USB client, the USB client is used for transmitting the device data to a remote host to be tested, which is required to be subjected to suitability testing, through the built-in first communication module, the USB host controller driver is used for informing the local USB access host that the USB peripheral devices exist, and correct device information can be obtained after a driver of corresponding USB devices is installed on the local USB access host, so that the effect that the local USB access host sends out the device data of the USB peripheral devices is achieved;
according to a test task input by a tester, constructing a cloud host to be tested corresponding to a remote host to be tested based on the cloud host resource pool, and determining the USB peripheral to be tested from the USB peripheral resource pool, wherein the cloud host to be tested is provided with a USB server and a USB device driver, the USB server comprises a virtual USB host controller driver and a second communication module, the second communication module is used for receiving device data of the USB peripheral to be tested, notifying the cloud host to be tested that the USB peripheral to be tested exists through the virtual USB host controller driver, and the USB device driver is used for reading the device data of the USB peripheral to be tested;
based on the test task, testing the USB peripheral to be tested and the cloud host to be tested;
and after the test is completed, collecting test data, giving a test report, releasing the cloud host to be tested, and disconnecting the USB peripheral to be tested from the local USB access host.
In another possible implementation manner, the building a cloud host resource pool includes:
carrying out computing resource virtualization on a plurality of physical servers with different CPU architectures by using a cloud computing technology to obtain a plurality of different virtualized CPU architectures;
constructing an operating system mirror library;
and obtaining the cloud host resource pool based on the operating system mirror image library and the plurality of different virtualized CPU architectures.
In another possible implementation manner, the connecting the plurality of USB peripherals with the local USB access host to obtain a USB peripheral resource pool corresponding to the plurality of USB peripherals includes:
connecting the local USB access host with a USB server;
connecting the USB server with a USB docking station to expand a USB interface;
and connecting the plurality of USB peripherals to the USB docking station to obtain a USB peripheral resource pool corresponding to the plurality of USB peripherals.
The application provides a USB peripheral equipment remote adaptation system, includes:
the USB peripheral virtualization module comprises a device access side module and a computer side module, wherein the device access side module comprises a USB client, the device access side module is arranged on a local USB access host and is used for identifying an accessed USB peripheral to be tested and sharing the USB peripheral to be tested to the computer side module, the computer side module comprises a USB server, and the computer side module is arranged on a cloud host to be tested and is used for acquiring the USB peripheral to be tested which is shared to the cloud host to be tested, and a communication channel between the USB peripheral to be tested and the cloud host to be tested is established through the built-in USB server;
the USB peripheral resource pool is used for centrally managing accessed USB peripheral resources and uniformly managing all accessed USB peripherals to be tested;
the cloud host resource pool is used for providing various configuration cloud hosts to be tested for testers, wherein the cloud hosts to be tested are required to be tested by the cloud host resource Chi Jiyu cloud computing technology, supported CPU chips comprise Intel, AMD, sea light, feiteng, loongson, megacore, kunpeng and Shenwei, and the operating systems comprise Windows operating systems, galaxy kylin operating systems and general information UOS operating systems;
the adaptation service platform is used for carrying out adaptation test service, after determining a cloud host to be tested and a USB peripheral to be tested which are required to be subjected to adaptation test, matching a test scheme for the cloud host to be tested and the USB peripheral to be tested, creating a test task, carrying out automatic test, collecting test data, and generating a test report after the test is completed.
In another possible implementation manner, the device access side module includes the USB client, an application form of the USB client includes a USB server and a USB Web plug-in, and a forming process of the USB server and the USB Web plug-in includes:
the USB client is burnt to a development board and connected with a USB docking station to obtain the USB server, wherein the USB server is used for centralizing a plurality of USB peripherals and comprises a plurality of USB input ports and an output network port, and the USB peripherals are uniformly accessed and then shared to the cloud host to be tested;
and integrating the USB client into a browser of the local USB access host to obtain a USB Web plug-in, wherein the USB Web plug-in is used for managing and sharing the accessed USB peripheral through the USB Web plug-in when the USB peripheral is connected with the local USB access host.
In another possible implementation manner, the peripheral remote test is a suitability test between a USB peripheral to be tested and a cloud host to be tested, and when the peripheral remote test is performed, the USB peripheral remote system is used as follows:
step S101, a tester physically connects the USB peripheral to be tested to a local USB access host through a USB line;
step S102, a tester logs in the adaptation service platform, starts a USB Web plug-in, determines that the USB peripheral to be tested is connected with the local USB access host, and shares the USB peripheral to be tested;
step S103, a tester creates an adaptation test task in the adaptation service platform, selects a test task type as a peripheral remote test in the test task, sets the specification of a cloud host to be tested, selects the USB peripheral to be tested, configures a test mode, matches a test plan, initiates the test task, wherein the specification of the cloud host to be tested comprises an operating system and a CPU architecture, and the test mode comprises a manual test and an automatic test;
step S1041, if the test mode is manual test, based on the test task, manually testing a cloud host accessing a human-computer interface, writing a test report after the test is completed, uploading the test report to the USB peripheral remote adaptation system, and completing the test, wherein the cloud host accessing the human-computer interface is an interface for manually testing a tester provided by the USB peripheral remote adaptation system when the test mode is detected to be manual test;
in step S1042, if the test mode is an automatic test, the tester stops operating, and the test task is executed by the USB peripheral remote adaptation system.
In another possible implementation manner, when the test mode is an automated test, the execution steps of the USB peripheral remote adaptation system are as follows:
installing the script of the test plan to a cloud host to be tested;
developing an automated test based on the script;
and after the test is completed, collecting test data, automatically generating a test report, releasing the cloud host to be tested, and disconnecting the cloud host to be tested from the USB peripheral to be tested.
In another possible implementation manner, the large-scale centralized test is a suitability test for the stock of the adapted peripheral when the operating system is up-scaled, when the large-scale centralized test is performed, the remote adaptation system of the USB peripheral is automatically performed, and when the test task category selected by the tester is detected to be the large-scale centralized test, the following steps are performed:
step S201, a cloud host resource pool builds a cloud host to be tested which is required to be subjected to adaptation test at present based on a test task input by the tester, and equipment application side software is installed on the cloud host to be tested;
step S202, establishing connection between the cloud host to be tested and a USB peripheral to be tested, wherein the USB peripheral to be tested is determined by the tester from a USB peripheral resource pool;
step 203, matching a test scheme to the cloud host to be tested and the USB peripheral to be tested, and performing an adaptation test to the cloud host to be tested and the USB peripheral to be tested based on the test scheme;
step S204, after the test is completed, collecting test data, generating a test report, releasing the cloud host to be tested, and disconnecting the cloud host to be tested from the USB peripheral to be tested;
and step S201, step S202, step S203 and step S204 are circularly executed until the test of a plurality of groups of test objects included in the test task is completed, wherein the test objects comprise a cloud host to be tested and a USB peripheral to be tested.
In summary, the invention has the following beneficial technical effects:
the remote connection of the cloud host to be tested and the USB peripheral to be tested is realized through the USB client and the USB server of the installation equipment, the problem of space limitation in the prior art is broken through, and by constructing the cloud host resource pool and the USB peripheral resource pool, a tester can pull up the cloud host to be tested and the USB peripheral to be tested according to requirements, so that the problem of repeated connection and disconnection of connecting wires is avoided.
Drawings
Fig. 1 is a schematic flow chart of a remote adaptation method of a USB peripheral device in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of data interaction between a USB peripheral to be tested and a cloud host to be tested in the embodiment of the present application.
Fig. 3 is a schematic structural diagram of a USB peripheral remote adaptation system in an embodiment of the present application.
Fig. 4 is a flow chart of a method for using a USB peripheral remote adaptation system in peripheral remote testing in an embodiment of the present application.
Fig. 5 is a flowchart of an execution process of the USB peripheral remote adaptation system during a large-scale centralized test in the embodiment of the present application.
Detailed Description
In order to further understand the technical scheme and beneficial effects of the present invention, the technical scheme and beneficial effects thereof will be described in detail with reference to the accompanying drawings.
In view of the drawbacks of the prior art, as shown in fig. 1, the present invention provides a remote adaptation method for a USB peripheral device, including:
step Sa, a cloud host resource pool is built, and a plurality of USB peripheral devices are connected with a local USB access host to obtain a USB peripheral device resource pool corresponding to the plurality of USB peripheral devices.
The USB access host is configured with a USB client, a USB host controller and a USB host controller driver, the USB client comprises a first communication module, the USB host controller is used for transmitting device data of a USB peripheral to be tested, which is required to be subjected to suitability test at present, to the USB client, the USB client is used for transmitting the device data to a remote host to be tested, which is required to be subjected to the suitability test, through the built-in first communication module, the USB host controller driver is used for informing the local USB access host that the USB peripheral exists, and correct device information can be obtained after a driver of corresponding USB device is installed on the local USB access host, so that the effect that the local USB access host transmits the device data of the USB peripheral is realized.
And step Sb, constructing a cloud host to be tested (particularly relating to creating the cloud host to be tested with a specified CPU architecture, an operating system and other parameter configurations) corresponding to the remote host to be tested based on the cloud host resource pool according to the test task input by the tester, and determining the USB peripheral to be tested from the USB peripheral resource pool.
The cloud host to be tested is provided with a USB server and a USB device driver, the USB server comprises a virtual USB host controller driver and a second communication module, the second communication module is used for receiving device data of the USB peripheral to be tested and informing the cloud host to be tested of the existence of the USB peripheral to be tested through the virtual USB host controller driver, and the USB device driver is used for reading the device data of the USB peripheral to be tested.
And step Sc, testing the USB peripheral to be tested and the cloud host to be tested based on the test task.
And Sd, after the test is completed, collecting test data, giving a test report, releasing the cloud host to be tested, and disconnecting the USB peripheral to be tested from the local USB access host.
For the embodiment of the application, through constructing the USB peripheral resource pool, unified management is conveniently carried out on a plurality of USB peripheral devices connected with a local USB access host, a cloud host resource pool is constructed, a cloud host to be tested which needs to be subjected to suitability test can be conveniently constructed based on the cloud host resource pool, meanwhile, based on the USB peripheral virtualization technology, through setting a USB client on the local USB access host and setting a USB server on the cloud host to be tested, data interaction between the local USB access host and the cloud host to be tested is realized, all USB signaling is converted and transparent transmitted through redirection through a first communication module and a second communication module, and therefore a remote logic connection method for connecting the cloud host to be tested with the USB peripheral devices and local physical is provided, the cloud host resources in the adaptation work and the USB peripheral resources can be free from being limited by space distance and are freely combined and connected, repeated plug-in-out is avoided, and the efficiency of the adaptation test is improved.
The method and the device have the advantages that the cloud host resource pool and the USB peripheral resource pool are built, the USB peripheral to be tested and the cloud host to be tested are tested based on the test task, test data are collected after the test is completed, and a test report is provided, namely, both sides of the device for testing are virtualized devices, and the effect of suitability test without being limited to physical positions is achieved.
Further, fig. 2 is a schematic structural diagram of data interaction between a USB peripheral to be tested and a cloud host to be tested, as shown in fig. 2, a communication channel is established between a USB client of a local USB access host and a USB server on the cloud host to be tested through a network protocol. The local USB access host machine redirects in a virtualization mode, so that the distance is shortened, the two connected parties still keep direct connection logically, and remote logical connection equivalent to physical direct connection is realized.
More specifically, the specific process of obtaining device data of the USB peripheral to be tested by the cloud host to be tested is as follows: the USB host controller of the local USB access host acquires equipment data of the USB peripheral to be tested through a physical connecting wire, the equipment data is transmitted to the USB client, the USB client transmits the equipment data to a second communication module of the cloud host to be tested through a network protocol through an embedded first communication module, the second communication module transmits the equipment data to a virtual USB host controller driver, and the virtual USB host controller driver informs the cloud host to be tested that the USB peripheral to be tested currently exists, and the equipment data of the USB peripheral to be tested is acquired through a USB equipment driver.
When the cloud host to be tested needs to send control signaling to the USB external device to be tested, the specific process is as follows: the cloud host to be tested issues control signaling, the control signaling is driven by the USB equipment and transmitted to the USB server, so that the control signaling is transmitted to a first communication module of the local USB access host through a network protocol by a second communication module embedded in the USB server, and the first communication module in the local USB client receives the signaling and then transmits the signaling to the host USB controller, thereby realizing control communication with the USB peripheral to be tested.
Furthermore, in the embodiment of the present application, the feasibility of the present invention is verified from two aspects of technical demonstration and actual measurement contrast verification, and the technical demonstration is specific: according to the invention, peripheral virtualization is realized through a USB peripheral redirection technology, the purpose of remote access of the USB peripheral is achieved, and in the process of redirecting the USB peripheral, the USB peripheral is connected through a virtual USB host controller interface, and the complete adaptation relation between a host operating system and a USB device driver and an upper layer external application is still reserved, so that the USB peripheral is still effective for suitability test; actual measurement contrast verification: the adaptation test carried out by the method and the adaptation test carried out by the physical direct connection method are used for comparing the process data with the test results, and the results are completely matched, namely the suitability test scheme provided by the method is effective.
In one possible implementation manner of the embodiment of the present application, when the step Sa builds a cloud host resource pool, the method specifically includes:
step Sa1, using cloud computing technology to virtualize computing resources of a plurality of physical servers with different CPU architectures, and obtaining a plurality of different virtualized CPU architectures.
Step Sa2, constructing an operating system mirror library.
Step Sa3, obtaining a cloud host resource pool based on the operating system mirror image library and a plurality of different virtualized CPU architectures.
For the embodiments of the present application, a number of different CPU architectures include Intel, AMD, sea light, feiteng, loongson, megacore, shenwei, and Kunpeng. The operating system comprises a Windows operating system, a Galaxy kylin operating system and a unified message UOS operating system. In the embodiment of the present application, step Sa1 may be performed simultaneously with step Sa2, may be performed before step Sa2, or may be performed after step Sa 2.
In one possible implementation manner of the embodiment of the present application, when step Sa connects a plurality of USB peripherals with a local USB access host to obtain a USB peripheral resource pool corresponding to the plurality of USB peripherals, the method specifically includes:
step Sa4, connecting the local USB access host with the USB server.
Step Sa5, connect USB server with USB docking station, expand USB interface.
Step Sa6, connecting the plurality of USB peripheral devices to the USB docking station to obtain a USB peripheral device resource pool corresponding to the plurality of USB peripheral devices.
For the embodiment of the present application, step Sa4 may be performed before step Sa1, may be performed after step Sa1, or may be performed simultaneously with step Sa 1.
As shown in fig. 3, an embodiment of the present application provides a USB peripheral remote adaptation system, including:
the device comprises a USB peripheral virtualization module, wherein the USB peripheral virtualization module comprises a device access side module and a computer side module, the device access side module comprises a USB client, the device access side module is arranged on a local USB access host and used for identifying an accessed USB peripheral and sharing the USB peripheral to be tested to the computer side module, the computer side module comprises a USB service end, the computer side module is arranged on a cloud host to be tested and used for acquiring the USB peripheral to be tested which is shared to the cloud host to be tested, and a communication channel between the USB peripheral to be tested and the cloud host to be tested is established through the built-in USB service end;
the USB peripheral resource pool is used for centrally managing accessed USB peripheral resources and uniformly managing all accessed USB peripherals to be tested;
the cloud host resource pool and cloud host resource Chi Jiyu cloud computing technology provide various configuration cloud hosts to be tested for testers, wherein supported CPU chips comprise Intel, AMD, sea light, feiteng, loongson, megacore, kunpeng and Shenwei, and operating systems comprise Windows operating systems, galaxy kylin operating systems and general information UOS operating systems;
the adaptation service platform is used for developing an adaptation test service, after determining a cloud host to be tested and a USB peripheral to be tested which are required to be subjected to the adaptation test, matching a test scheme for the cloud host to be tested and the USB peripheral to be tested, creating a test task, developing an automatic test, collecting test data, and generating a test report after the test is completed.
For the embodiment of the application, the USB peripheral virtualization module includes a device access side module and a computer side module, the device access side module includes a USB client, the device access side module is used for identifying an accessed USB peripheral to be tested and sharing the USB peripheral to the computer side module, the computer side module includes a USB server and a software SDK (software tool kit), the USB server is used for obtaining device data shared by the USB client so as to achieve an effect of establishing a communication channel between the USB peripheral to be tested and a cloud host to be tested, the software SDK is used for integrating with a test task, and a target USB device is dynamically connected or disconnected based on an execution process of the test task.
And the USB peripheral resource pool is used for managing the peripherals which are accessed in a large-scale centralized way. The USB peripheral resource pool comprises an access unit and a management unit. The access unit consists of 3 sets of 16-port USB servers, so that 48 USB peripheral devices can be accessed at the same time at most, and each set of USB peripheral devices supports 8 USB2.0 interfaces and 8 USB3.0 interfaces. In addition, the access unit can flexibly increase the number of the USB servers according to actual needs, so that the access capability is further expanded. The management unit may manage the accessed USB server. When the USB server is newly added, the device management module of the unit is used for configuring the name of the server, accessing the user name and password, and the like, and setting the network parameters of the server, so that the connection of the USB server can be completed. Keep alive is detected through heartbeat between the management unit and the accessed USB server, early warning is automatically triggered when abnormal connection occurs, and an administrator is notified through mail. The management unit can perform unified management on all accessed USB peripheral devices, including checking peripheral information, setting whether the peripheral device is allowed to be found, and the like.
And the cloud host resource pool dynamically provides cloud host resources with required specifications for the adaptation test work in a cloud service mode. The adaptation test work can be carried out in a cloud host environment. The platform comprises an infrastructure layer and a cloud management software layer. The infrastructure layer mainly provides an infrastructure physical facility for the whole platform to run, and comprises 1 control node and N computing nodes. In this embodiment, considering the diversity of the adaptation test environment, the computing nodes are configured with physical servers of various different CPU architectures, the CPU architectures totally cover Intel, AMD, sea light, feiter, loongson, megacore, shenwei and kunpeng eight-big series, the number of the computing nodes is 24, 3 physical servers of each CPU architecture series are respectively configured with 1 control node, and the sea light server is selected. And the cloud management software layer is mainly used for carrying out nanotube and virtualization on all computing nodes by applying kylin cloud software and providing a cloud host for upper-layer adaptation service. Meanwhile, cloud management software supports expansion, and the configuration of the computing nodes can be dynamically expanded according to the subsequent service expansion requirement.
The adaptation service platform is used for carrying out USB peripheral adaptation test by applying various testing means based on the virtualized USB peripheral resources and cloud host resources. In the embodiment of the application, the adaptive service platform comprises five units, namely test task management, test plan management, test case management, task monitoring and message notification.
The test task management function is to achieve maintenance of the test task, a tester manually creates a new test task in the unit, after selecting a test category, test peripherals, test cloud host specifications and a test mode, the adaptation service platform can automatically prepare a test environment according to configuration of the test task, after the test environment is prepared to be completed, the tester can start to execute the test task, after the test task is executed, the platform gathers test data and test reports to complete the test, and the adaptation service platform monitors the state of the test task and feeds the state back to the tester in real time.
The test plan management is used for realizing maintenance of the test plan, a tester can draw up a standard test plan and a non-standard test plan corresponding to the peripheral according to the peripheral type in the unit, the test plan is composed of test cases, when the tester creates the test plan, the tester can call good test cases maintained in a test case library, or can directly write the test cases when the test plan is created, and the test cases written in the test case library are automatically reversely filled into the test case library. Test plans created by testers may be referenced by test tasks. Standard test plans are used as benchmarks and can be referenced by multiple test tasks. Non-standard test plans are applied to certain specific required test scenarios that are not met by standard test plans.
The function of test case management is to realize the maintenance of test cases. The tester can write test cases in the unit. Test cases may be referenced by a test plan. The tester can check the specific cited and executed condition of each test case, thereby dynamically adjusting and perfecting the content of the test case library.
The task monitoring function is to ensure the correct execution of the test task, and the unit monitors the whole process of the test process. The status, progress, and abnormal conditions of the test task execution are collected and recorded, and a message notification bill is called to inform relevant personnel.
The message notification function is that the message in the platform can be sent to the user for reminding in a mail, short message and other modes. In order to ensure timely and accurate access of the message, a reminding strategy can be set according to the importance degree of the message, including a channel for sending the message and a reminding frequency. Furthermore, the unit can be integrated with OA, IM and other business systems in a butt joint way through standard APIs.
In one possible implementation manner of the embodiment of the present application, the device access side module includes a USB client, an application form of the USB client includes a USB server and a USB Web plug-in, and a forming process of the USB server and the USB Web plug-in includes:
the USB client is burnt to the development board and connected with the USB docking station to obtain a USB server, wherein the USB server is used for centralizing a plurality of USB peripherals and comprises a plurality of USB input ports and an output network port, and the USB peripherals are uniformly accessed and then shared to a cloud host to be tested;
the USB client is integrated into a browser of a local USB access host to obtain a USB Web plug-in, and the USB Web plug-in is used for managing and sharing the accessed USB peripheral through the USB Web plug-in when the USB peripheral is connected with the local USB access host.
For the embodiment of the application, the development board is an ARM A55 development board, and a plurality of USB peripheral devices can be accessed simultaneously in a mode of connecting a USB docking station, so that the effect of centralized processing of a large number of USB peripheral devices is achieved.
As shown in fig. 4, in one possible implementation manner of the embodiment of the present application, the peripheral remote test is a suitability test between a USB peripheral to be tested and a cloud host to be tested, and when the peripheral remote test is performed, the USB peripheral remote system is used as follows:
step S101, a tester physically connects a USB peripheral to be tested to a local USB access host through a USB line.
For the embodiment of the application, the tester firstly physically connects the USB peripheral to be tested to the local USB access host through the USB so as to achieve the effect of establishing the communication channel between the local USB access host and the USB peripheral to be tested, thereby achieving the effect that the local USB access host and the USB peripheral to be tested can perform data interaction.
Step S102, a tester logs in the adaptation service platform, starts the USB Web plug-in, determines that the USB peripheral to be tested is connected with the local USB access host, and shares the USB peripheral to be tested.
For the embodiment of the application, after the USB Web plug-in is started, a tester can check the condition that the USB peripheral to be tested is connected to the local USB access host based on the USB Web plug-in, that is, determine that the current USB peripheral to be tested is shared.
Step S103, a tester creates an adaptation test task in the adaptation service platform, selects a test task class as a peripheral remote test in the test task, sets the specification of a cloud host to be tested, selects a USB peripheral to be tested, configures a test mode, matches a test plan, and initiates the test task.
The specification of the cloud host to be tested comprises an operating system and a CPU architecture, and the testing mode comprises manual testing and automatic testing.
For the embodiment of the application, the tester manually creates the test task on the adaptation service platform, namely, the USB peripheral to be tested and the cloud host to be tested which are required to be tested currently are characterized, the test task type is further selected as the peripheral remote test in the test task, other testers and the USB peripheral remote adaptation system are convenient to determine the test type of the test required to be performed currently, and therefore follow-up accurate testing can be performed. Setting the specification of the cloud host to be tested, checking the USB peripheral to be tested, facilitating the definition of the USB peripheral to be tested by other testers and the USB peripheral remote adaptation system, and facilitating the construction of the cloud host to be tested by the subsequent USB peripheral remote adaptation system based on the specification of the cloud host to be tested, configuring the test mode, matching the test plan and initiating the test task, and facilitating the suitability test by the subsequent testers or the USB peripheral remote adaptation system based on the test task.
Step S1041, if the test mode is manual test, based on the test task, the cloud host accesses the human-computer interface to perform manual test, and after the test is completed, the test report is written and uploaded to the USB peripheral remote adaptation system, and the test is completed.
The cloud host accesses the human-computer interface to be an interface for a tester to perform manual testing when the USB peripheral remote adaptation system detects that the testing mode is manual testing.
For the embodiment of the application, when the testing mode is manual testing, the fact that the tester needs to manually control the adaptability test is explained, so that when the USB peripheral remote adaptation system detects that the testing mode is manual testing, the cloud host is jumped to access the man-machine interface, and the tester can conveniently access the man-machine interface at the cloud host to develop manual testing according to the testing requirement. In order to facilitate other testers to know the test condition, a test report needs to be written after the test is completed, and the test report is manually written by the testers and uploaded to the USB peripheral remote adaptation system for manual test, so that the test is completed.
In step S1042, if the test mode is an automatic test, the tester stops operating, and the test task is executed by the USB peripheral remote adaptation system.
For the embodiment of the application, when the test mode is automatic test, a tester does not need to continue to operate after the configuration of the test task is completed, and the USB peripheral remote adaptation system can carry out adaptation test on the USB peripheral to be tested and the cloud host to be tested, which need to be tested, according to the test task.
In the embodiment of the present application, after the execution of step S103 is completed, any one of step S1041 and step S1042 is executed.
In one possible implementation manner of the embodiment of the present application, when the test mode is an automatic test in step S1042, the executing steps of the USB peripheral remote adaptation system are as follows:
step S10421, installing the script of the test plan to the cloud host to be tested.
Step S10422, performing an automated test based on the script.
And step S10423, after the test is completed, collecting test data, automatically generating a test report, releasing the cloud host to be tested, and disconnecting the cloud host to be tested from the USB peripheral to be tested.
As shown in fig. 5, in one possible implementation manner of the embodiment of the present application, the large-scale centralized test is a suitability test for the storage-adapted peripheral when the operating system is up-scaled, when the large-scale centralized test is performed, the remote adaptation system of the USB peripheral is automatically performed, and when it is detected that the test task class selected by the tester is the large-scale centralized test, the following steps are performed:
step S201, a cloud host resource pool builds a cloud host to be tested which is required to be subjected to adaptation test at present based on a test task input by a tester, and a computer side module is installed on the cloud host to be tested;
step S202, establishing connection between a cloud host to be tested and a USB peripheral to be tested, wherein the USB peripheral to be tested is determined by a tester from a USB peripheral resource pool;
step 203, matching the cloud host to be tested and the USB peripheral to be tested with a test scheme, and performing an adaptation test on the cloud host to be tested and the USB peripheral to be tested based on the test scheme;
step S204, after the test is completed, collecting test data, generating a test report, releasing the cloud host to be tested, and disconnecting the cloud host to be tested from the USB peripheral to be tested;
and step S201, step S202, step S203 and step S204 are circularly executed until the test of a plurality of groups of test objects included in the test task is completed, wherein the test objects comprise a cloud host to be tested and a USB peripheral to be tested.
For the embodiment of the application, when the large-scale centralized test is performed, only automatic test is supported so as to accelerate the test speed, after a tester creates collocation to complete the test task, the USB peripheral remote adaptation system automatically performs the test, specifically, a cloud host to be tested with required configuration is created by a cloud host resource pool, and a computer side module is automatically installed on the cloud host to be tested and connected with the USB peripheral to be tested, the USB peripheral remote adaptation system performs the adaptation test according to the test task, automatically collects test data after the test is completed, generates a test report, releases the cloud host to be tested and disconnects the connection with the USB peripheral to be tested so as to facilitate the next round of test, and steps S201, S202, S203 and S204 are circularly executed until all the cloud hosts to be tested and the USB peripheral to be tested are tested.
In the embodiment of the application, the automatic test is realized through the automatic test script, specifically, the automatic test script controls the test process through the SDK software, when the completion of the test is detected, the connection between the cloud host to be tested and the USB peripheral to be tested is automatically disconnected, the cloud host to be tested is released, the connection between the cloud host to be tested and the USB peripheral to be tested, which is required to be tested, of the next group is established, and the next round of test is started.
Although the present invention has been described with reference to the above preferred embodiments, it should be understood that the present invention is not limited to the above embodiments, and that various changes and modifications can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A method for remote adaptation of a USB peripheral device, comprising:
the method comprises the steps that a cloud host resource pool is built, a plurality of USB peripheral devices are connected with a local USB access host to obtain a USB peripheral device resource pool corresponding to the USB peripheral devices, wherein a USB client, a USB host controller and a USB host controller driver are configured on the local USB access host, the USB client comprises a first communication module, the USB host controller is used for transmitting device data of the USB peripheral devices to be tested, which are required to be subjected to suitability testing, to the USB client, the USB client is used for transmitting the device data to a remote host to be tested, which is required to be subjected to suitability testing, through the built-in first communication module, the USB host controller driver is used for informing the local USB access host that the USB peripheral devices exist, and correct device information can be obtained after a driver of corresponding USB devices is installed on the local USB access host, so that the effect that the local USB access host sends out the device data of the USB peripheral devices is achieved;
according to a test task input by a tester, constructing a cloud host to be tested corresponding to a remote host to be tested based on the cloud host resource pool, and determining the USB peripheral to be tested from the USB peripheral resource pool, wherein the cloud host to be tested is provided with a USB server and a USB device driver, the USB server comprises a virtual USB host controller driver and a second communication module, the second communication module is used for receiving device data of the USB peripheral to be tested, and notifying the cloud host to be tested that the USB peripheral to be tested exists through the virtual USB host controller driver, and the USB device driver is used for reading the device data of the USB peripheral to be tested;
based on the test task, testing the USB peripheral to be tested and the cloud host to be tested;
and after the test is completed, collecting test data, giving a test report, releasing the cloud host to be tested, and disconnecting the USB peripheral to be tested from the local USB access host.
2. The method for remote adaptation of USB peripheral device according to claim 1, wherein said constructing a cloud host resource pool comprises:
carrying out computing resource virtualization on a plurality of physical servers with different CPU architectures by using a cloud computing technology to obtain a plurality of different virtualized CPU architectures;
constructing an operating system mirror library;
and obtaining the cloud host resource pool based on the operating system mirror image library and the plurality of different virtualized CPU architectures.
3. The method for remote adaptation of USB peripheral devices according to claim 1, wherein said connecting a plurality of USB peripheral devices to a local USB access host to obtain a USB peripheral device resource pool corresponding to said plurality of USB peripheral devices comprises:
connecting the local USB access host with a USB server;
connecting the USB server with a USB docking station to expand a USB interface;
and connecting the plurality of USB peripherals to the USB docking station to obtain a USB peripheral resource pool corresponding to the plurality of USB peripherals.
4. A USB peripheral remote adaptation system, comprising:
the USB peripheral virtualization module comprises a device access side module and a computer side module, wherein the device access side module comprises a USB client, the device access side module is arranged on a local USB access host and is used for identifying an accessed USB peripheral to be tested and sharing the USB peripheral to be tested to the computer side module, the computer side module comprises a USB server, and the computer side module is arranged on a cloud host to be tested and is used for acquiring the USB peripheral to be tested which is shared to the cloud host to be tested, and a communication channel between the USB peripheral to be tested and the cloud host to be tested is established through the built-in USB server;
the USB peripheral resource pool is used for centrally managing accessed USB peripheral resources and uniformly managing all accessed USB peripherals to be tested;
the cloud host resource pool is used for providing various configuration cloud hosts to be tested for testers, wherein the cloud hosts to be tested are required to be tested by the cloud host resource Chi Jiyu cloud computing technology, supported CPU chips comprise Intel, AMD, sea light, feiteng, loongson, megacore, kunpeng and Shenwei, and the operating systems comprise Windows operating systems, galaxy kylin operating systems and general information UOS operating systems;
the adaptation service platform is used for carrying out adaptation test service, after determining a cloud host to be tested and a USB peripheral to be tested which are required to be subjected to adaptation test, matching a test scheme for the cloud host to be tested and the USB peripheral to be tested, creating a test task, carrying out automatic test, collecting test data, and generating a test report after the test is completed.
5. The remote adaptation system of a USB peripheral device according to claim 4, wherein the device access side module includes the USB client, an application form of the USB client includes a USB server and a USB Web plug-in, and a forming process of the USB server and the USB Web plug-in includes:
the USB client is burnt to a development board and connected with a USB docking station to obtain the USB server, wherein the USB server is used for centralizing a plurality of USB peripherals and comprises a plurality of USB input ports and an output network port, and the USB peripherals are uniformly accessed and then shared to the cloud host to be tested;
and integrating the USB client into a browser of the local USB access host to obtain a USB Web plug-in, wherein the USB Web plug-in is used for managing and sharing the accessed USB peripheral through the USB Web plug-in when the USB peripheral is connected with the local USB access host.
6. The remote adaptation system for USB peripheral according to claim 4, wherein the remote testing for peripheral is a suitability test between a USB peripheral to be tested and a cloud host to be tested, and the steps of using the remote system for USB peripheral when the remote testing for peripheral is performed are as follows:
step S101, a tester physically connects the USB peripheral to be tested to a local USB access host through a USB line;
step S102, a tester logs in the adaptation service platform, starts a USB Web plug-in, determines that the USB peripheral to be tested is connected with the local USB access host, and shares the USB peripheral to be tested;
step S103, a tester creates an adaptation test task in the adaptation service platform, selects a test task type as a peripheral remote test in the test task, sets the specification of a cloud host to be tested, selects the USB peripheral to be tested, configures a test mode, matches a test plan, initiates the test task, wherein the specification of the cloud host to be tested comprises an operating system and a CPU architecture, and the test mode comprises a manual test and an automatic test;
step S1041, if the test mode is manual test, based on the test task, manually testing a cloud host accessing a human-computer interface, writing a test report after the test is completed, uploading the test report to the USB peripheral remote adaptation system, and completing the test, wherein the cloud host accessing the human-computer interface is an interface for manually testing a tester provided by the USB peripheral remote adaptation system when the test mode is detected to be manual test;
in step S1042, if the test mode is an automatic test, the tester stops operating, and the test task is executed by the USB peripheral remote adaptation system.
7. The remote adaptation system of claim 6, wherein when the test mode is an automated test, the remote adaptation system of the USB peripheral device is performed as follows:
installing the script of the test plan to a cloud host to be tested;
developing an automated test based on the script;
and after the test is completed, collecting test data, automatically generating a test report, releasing the cloud host to be tested, and disconnecting the cloud host to be tested from the USB peripheral to be tested.
8. The remote adaptation system of a USB peripheral according to claim 4, wherein the large-scale centralized test is a suitability test for the mass-adapted peripheral when the operating system is up-scaled, the remote adaptation system of the USB peripheral is automatically executed when the large-scale centralized test is performed, and when the test task class selected by the tester is detected as the large-scale centralized test, the steps of:
step S201, a cloud host resource pool builds a cloud host to be tested which is required to be subjected to adaptation test at present based on a test task input by the tester, and a computer side module is installed on the cloud host to be tested;
step S202, establishing connection between the cloud host to be tested and a USB peripheral to be tested, wherein the USB peripheral to be tested is determined by the tester from a USB peripheral resource pool;
step 203, matching a test scheme to the cloud host to be tested and the USB peripheral to be tested, and performing an adaptation test to the cloud host to be tested and the USB peripheral to be tested based on the test scheme;
step S204, after the test is completed, collecting test data, generating a test report, releasing the cloud host to be tested, and disconnecting the cloud host to be tested from the USB peripheral to be tested;
and step S201, step S202, step S203 and step S204 are circularly executed until the test of a plurality of groups of test objects included in the test task is completed, wherein the test objects comprise a cloud host to be tested and a USB peripheral to be tested.
CN202311531381.1A 2023-11-17 2023-11-17 USB peripheral remote adaptation method and system Active CN117251328B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311531381.1A CN117251328B (en) 2023-11-17 2023-11-17 USB peripheral remote adaptation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311531381.1A CN117251328B (en) 2023-11-17 2023-11-17 USB peripheral remote adaptation method and system

Publications (2)

Publication Number Publication Date
CN117251328A true CN117251328A (en) 2023-12-19
CN117251328B CN117251328B (en) 2024-01-26

Family

ID=89131701

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311531381.1A Active CN117251328B (en) 2023-11-17 2023-11-17 USB peripheral remote adaptation method and system

Country Status (1)

Country Link
CN (1) CN117251328B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050209842A1 (en) * 2004-03-16 2005-09-22 Digi International Inc. Remote USB port system and method
US20080028114A1 (en) * 2006-07-27 2008-01-31 Kui-Yon Mun Method and System for Testing USB Device
CN112259155A (en) * 2020-11-16 2021-01-22 深圳市硅格半导体有限公司 USB device test system and method and SATA device test system and method
CN112948198A (en) * 2021-04-09 2021-06-11 深圳市精泰达科技有限公司 USB port automatic test method, device, system and storage medium
CN113918400A (en) * 2021-09-23 2022-01-11 国网冀北电力有限公司计量中心 Terminal drive test method, device and system
CN115269482A (en) * 2022-07-29 2022-11-01 深圳闪回科技有限公司 Method and device for supporting connection of multiple USB devices
CN116302743A (en) * 2023-02-21 2023-06-23 苏州浪潮智能科技有限公司 USB interface testing method, system, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050209842A1 (en) * 2004-03-16 2005-09-22 Digi International Inc. Remote USB port system and method
US20080028114A1 (en) * 2006-07-27 2008-01-31 Kui-Yon Mun Method and System for Testing USB Device
CN112259155A (en) * 2020-11-16 2021-01-22 深圳市硅格半导体有限公司 USB device test system and method and SATA device test system and method
CN112948198A (en) * 2021-04-09 2021-06-11 深圳市精泰达科技有限公司 USB port automatic test method, device, system and storage medium
CN113918400A (en) * 2021-09-23 2022-01-11 国网冀北电力有限公司计量中心 Terminal drive test method, device and system
CN115269482A (en) * 2022-07-29 2022-11-01 深圳闪回科技有限公司 Method and device for supporting connection of multiple USB devices
CN116302743A (en) * 2023-02-21 2023-06-23 苏州浪潮智能科技有限公司 USB interface testing method, system, computer equipment and storage medium

Also Published As

Publication number Publication date
CN117251328B (en) 2024-01-26

Similar Documents

Publication Publication Date Title
US20150100829A1 (en) Method and system for selecting and executing test scripts
US20150100832A1 (en) Method and system for selecting and executing test scripts
CN108768730B (en) Method and device for operating intelligent network card
US20070255869A1 (en) Device evaluation using automatic connection path reconfiguration
US11636016B2 (en) Cloud simulation and validation system
US20150100830A1 (en) Method and system for selecting and executing test scripts
US20150100831A1 (en) Method and system for selecting and executing test scripts
CN109274537B (en) Continuous network virtualization platform system
CN102571498A (en) Fault injection control method and device
WO2022100540A1 (en) Unmanned aerial vehicle system fault diagnosis method and apparatus, electronic device, and storage medium
CN110347539B (en) Test method, device, system, computing device and medium applied to server
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN111104336A (en) Online service interface testing method and device based on container and VNC
CN110798336A (en) Method and device for environmental inspection of large data platform deployment server
CN117251328B (en) USB peripheral remote adaptation method and system
US20070204071A1 (en) Apparatus, system, and method for automated device configuration and testing
CN109120433B (en) Method and apparatus for containerized deployment of hosts
CN117041111A (en) Vehicle cloud function test method and device, electronic equipment and storage medium
CN112506772B (en) Web automatic test method, device, electronic equipment and storage medium
CN115567400A (en) Whole cabinet management method, device, equipment and medium
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system
CN113722211A (en) BMC (baseboard management controller) debugging method, device and system and embedded equipment
CN112968812A (en) Network performance testing method, device, equipment and storage medium
CN219916332U (en) Performance test system for DPU (data processing unit)
CN109213487A (en) A kind of data capture method and its relevant device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant