Self-organizing test method, apparatus, system, storage medium, and program product

By employing a self-organizing testing method, circuit board resources are automatically discovered and described in a tree structure based on device type. Using gRPC and RPC operation interfaces, the problem of complex protocol interfacing in traditional testing systems is solved, enabling flexible testing of non-standard integrated circuit boards.

CN119520282BActive Publication Date: 2025-11-04SUZHOU HUAXING YUANCHUANG TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411590739.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-08
Publication Date
2025-11-04
Estimated Expiration
2044-11-08

AI Technical Summary

Technical Problem

Traditional testing systems have complex protocol interfaces, which cannot meet the flexibility requirements of testing non-standard integrated circuit boards.

Method used

A self-organizing testing method is adopted, which automatically discovers devices by determining the detection strategy based on the device type, establishes an operational resource list and describes it in a tree structure, and uses gRPC as the interaction method between the device server and the client, providing an RPC operation interface.

Benefits of technology

It significantly reduces the complexity of protocol integration, meets the flexibility requirements of non-standard integrated circuit board testing, simplifies client hardware operation, and improves the flexibility and real-time performance of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520282B_ABST
    Figure CN119520282B_ABST
Patent Text Reader

Abstract

The application relates to a self-organizing test method, device, system, storage medium and program product. The application comprises the following steps: determining a corresponding device detection strategy according to different device types; the device types comprise network devices, standard devices, non-standard devices and devices that cannot be automatically identified; automatically discovering devices and instantiating corresponding hardware operation entity objects according to the device detection strategy; establishing an operation resource list according to the hardware operation entity objects; performing tree-shaped description on all resources in the operation resource list to obtain a device resource description tree; establishing different grpc services according to different device descriptions, and providing the device resource description tree and RPC operation interface description of the corresponding resource operation interface tree for a client; taking the grpc as an interaction mode between a device server and a client, and providing the RPC operation interface for all resources. Therefore, the protocol connection complexity can be reduced, and the flexibility requirement of non-standard integrated circuit board testing can be met.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of integrated testing, in particular to a self-organizing testing method, device, system, readable storage medium and program product. BACKGROUND

[0002] With the rapid development of equipment manufacturing and automated testing technology, and the diversification of industry applications, the demand for customized testing equipment is rising. In addition, the application of Internet of Things technology also enables non-standard testing equipment to be remotely monitored and controlled, and real-time data collection, greatly improving the flexibility and real-time performance of testing.

[0003] In the traditional technology, the development mode of the testing system is: new requirements -> increase protocol -> server / client protocol coding -> protocol debugging -> function coding test. In addition, since the client may use different development environments and development languages, the testing system also needs to cope with different protocol requirements at the same time.

[0004] However, the testing system of the above development mode has complex protocol docking, which cannot meet the flexibility requirements of non-standard integrated circuit board testing. SUMMARY

[0005] Therefore, it is necessary to provide a self-organizing testing method, device, system, readable storage medium and program product which can reduce the complexity of protocol docking and meet the flexibility requirements of non-standard integrated circuit board testing.

[0006] In a first aspect, the present application provides a self-organizing testing method, comprising:

[0007] According to different device types, determine the corresponding device detection strategy; the device types include: network devices, standard devices, non-standard and unidentifiable devices;

[0008] According to the device detection strategy, automatically discover the device, and instantiate the corresponding hardware operation entity object;

[0009] According to the hardware operation entity object, establish an operation resource list;

[0010] Tree description is performed on all resources in the operation resource list to obtain a device resource description tree;

[0011] According to different device descriptions, different grpc services are established, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client; wherein the grpc is an open source remote procedure call framework, which is used for communication between services; the RPC is a remote procedure call;

[0012] The gRPC is used as the interaction mode between the device server and the client, and the RPC operation interface is provided for all resources.

[0013] In one embodiment, the automatic discovery of the device and the instantiation of the corresponding hardware operation entity object according to the device detection strategy include:

[0014] For the network device, the network multicast mechanism is used to send the device discovery data packet in the local area network in a time manner, and the corresponding hardware operation entity object is instantiated according to the response data packet returned by the corresponding device; or, the device information data packet automatically sent by the receiving device is received, and the corresponding hardware operation entity object is instantiated according to the device information data packet;

[0015] For the standard device, the device information is queried in the serial port according to the SCSI INQUIRY command, and the corresponding hardware operation entity object is instantiated according to the queried device information; the SCSI INQUIRY command is a query command of the small computer system interface;

[0016] For the non-standard and unidentifiable device, the corresponding hardware operation entity object is instantiated according to the configuration file.

[0017] In one embodiment, after the operation resource list is established according to the hardware operation entity object, the method further includes:

[0018] For the standard device, the non-standard and unidentifiable device, the operation resource configuration file is matched through the device information.

[0019] For the network device, the corresponding resource configuration description is obtained according to the obtained protocol information.

[0020] In one embodiment, after the tree-shaped description of all resources in the operation resource list is performed, the device resource description tree is obtained, and the method further includes:

[0021] According to the pre-set operation resource configuration file and / or the resource configuration description, the interface description file of the protobuffer of different types of objects is obtained; the protobuffer is a data description language, which is used to serialize the structured data and / or restore the serialized data to the original data structure;

[0022] According to the interface description file of the protobuffer, the resource operation interface tree is established.

[0023] In one of the embodiments, after different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client, the method further comprises:

[0024] For the hardware operation entity object with real-time transmission requirement, a unidirectional or bidirectional streaming transmission channel is established; the unidirectional or bidirectional streaming transmission channel is used for real-time transmission of data, and the real-time transmission is performed in the manner including http2; the http2 is a binary data transmission manner.

[0025] In one of the embodiments, the grpc is used as the interaction manner between the device server and the client, and the RPC operation interface is provided for all the resources.

[0026] The grpc is used as the device server, and the parallel operation of two or more clients is supported through the grpc.

[0027] In the second aspect, the application further provides a self-organizing test device, comprising:

[0028] A determination module is configured to determine a corresponding device detection strategy according to different device types; the device types include network devices, standard devices, non-standard and non-automatically identifiable devices;

[0029] A discovery module is configured to automatically discover devices and instance corresponding hardware operation entity objects according to the device detection strategy;

[0030] An operation resource list establishment module is configured to establish an operation resource list according to the hardware operation entity objects;

[0031] A device resource description tree acquisition module is configured to perform tree-shaped description on all the resources in the operation resource list to obtain a device resource description tree;

[0032] A service module is configured to establish different grpc services according to different device descriptions, and provide the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree for the client; the grpc is an open-source remote procedure call framework, and is used for communication between services; the RPC is a remote procedure call;

[0033] An interaction module is configured to use the grpc as the interaction manner between the device server and the client, and provide the RPC operation interface for all the resources.

[0034] In the third aspect, the application further provides a self-organizing test system, comprising a memory and a processor, the memory stores a computer program, and when a processing unit in the processor executes the computer program, the following steps are implemented:

[0035] determining a corresponding device detection strategy according to different device types; the device types include: network device, standard device, non-standard and unidentifiable device;

[0036] automatically discovering devices and instantiating corresponding hardware operation entity objects according to the device detection strategy;

[0037] establishing an operation resource list according to the hardware operation entity objects;

[0038] performing tree-shaped description on all resources in the operation resource list to obtain a device resource description tree;

[0039] establishing different grpc services according to different device descriptions, and providing the device resource description tree and RPC operation interface description of the corresponding resource operation interface tree for the client; wherein the grpc is an open-source remote procedure call framework for communication between services; and the RPC is a remote procedure call;

[0040] using the grpc as an interaction mode between the device server and the client, and providing the RPC operation interface for all resources.

[0041] In a fourth aspect, the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to implement the following steps:

[0042] determining a corresponding device detection strategy according to different device types; the device types include: network device, standard device, non-standard and unidentifiable device;

[0043] automatically discovering devices and instantiating corresponding hardware operation entity objects according to the device detection strategy;

[0044] establishing an operation resource list according to the hardware operation entity objects;

[0045] performing tree-shaped description on all resources in the operation resource list to obtain a device resource description tree;

[0046] establishing different grpc services according to different device descriptions, and providing the device resource description tree and RPC operation interface description of the corresponding resource operation interface tree for the client; wherein the grpc is an open-source remote procedure call framework for communication between services; and the RPC is a remote procedure call;

[0047] using the grpc as an interaction mode between the device server and the client, and providing the RPC operation interface for all resources.

[0048] In a fifth aspect, the application further provides a computer program product comprising a computer program which, when executed by a processor, implements the following steps:

[0049] According to different device types, corresponding device detection strategies are determined; the device types include: network devices, standard devices, non-standard and non-automatically identifiable devices;

[0050] According to the device detection strategy, the device is automatically discovered, and a corresponding hardware operation entity object is instantiated;

[0051] According to the hardware operation entity object, an operation resource list is established;

[0052] All resources in the operation resource list are described in a tree shape to obtain a device resource description tree;

[0053] According to different device descriptions, different grpc services are established, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client; wherein the grpc is an open source remote procedure call framework for communication between services; the RPC is a remote procedure call;

[0054] The grpc is used as an interaction mode between the device server and the client, and the RPC operation interface is provided for all resources.

[0055] The self-organizing test method, device, system, readable storage medium and program product determine a corresponding device detection strategy according to different device types, the device types include network devices, standard devices, non-standard and non-automatically identifiable devices, so that the test method can be applied to different types of devices. According to the device detection strategy, the device is automatically discovered, and the corresponding hardware operation entity object is instantiated; so that different detection strategies can be used for different devices to realize automatic identification and discovery of the device. The operation resource list is established according to the hardware operation entity object; so as to facilitate the subsequent establishment of the device resource description tree. All resources in the operation resource list are described in a tree shape to obtain a device resource description tree; so as to simplify the relationship between each resource. Different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client; wherein the grpc is an open source remote procedure call framework for communication between services; the RPC is a remote procedure call; so that all different operation resources can be provided to the client in a tree shape or a list, reducing the hardware operation of the client software implementation personnel. The grpc is used as an interaction mode between the device server and the client, and the RPC operation interface is provided for all resources. So as to reduce the debugging and coding work of the protocol, realize that all the operable interfaces of the operation resources are presented to the client through the interface file, and the client can also obtain the resource description and the interface description through the fixed RPC interface, so that the client implementation personnel can operate the hardware intuitively; significantly reduce the complexity of the protocol connection in the test process, and meet the flexibility requirements of the non-standard integrated circuit board test. BRIEF DESCRIPTION OF DRAWINGS

[0056] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor.

[0057] Figure 1 The application architecture schematic diagram of the self-organizing test method in an embodiment;

[0058] Figure 2 The flowchart schematic diagram of the self-organizing test method in an embodiment;

[0059] Figure 3 The structure schematic diagram of the resource tree description in an embodiment;

[0060] Figure 4A structure diagram corresponding to resource and interface description in one embodiment;

[0061] Figure 5 A flow diagram of a self-organizing test method in another embodiment;

[0062] Figure 6 A flow diagram of a self-organizing test method in another embodiment;

[0063] Figure 7 A flow diagram of a self-organizing test method in another embodiment;

[0064] Figure 8 A structure block diagram of a self-organizing test device in one embodiment;

[0065] Figure 9 An internal structure diagram of a self-organizing test system in one embodiment. DETAILED DESCRIPTION

[0066] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0067] The self-organizing test method provided by the embodiments of the present application can be applied to the application architecture as shown in Figure 1 The types of devices can be roughly divided into non-identifiable hardware devices and identifiable hardware devices, the non-identifiable hardware devices are further divided into IO (input / output) devices and other non-identifiable devices, and the identifiable hardware devices are divided into standard devices, serial devices, network devices and other identifiable devices. For the non-identifiable hardware devices, a protocol adaptation module is established to realize protocol connection of the non-identifiable devices. Further, different device discovery services can be set for different types of devices. For example, SCPI (standard commands for programmable instruments) instrument automatic discovery, device automatic discovery (multicast mode), custom serial port scanning, and other scanning services. Interface resource management and device resource management are established, and the resource interface description and the device resource description can both adopt a tree-shaped description manner.

[0068] The method in the embodiment is mainly applied to the application scenarios of integrated circuit board testing or multi-signal testing. In these scenarios, there are many external test devices, and the test requirements are flexible and variable. The peripheral test devices and the test list will change with the encoding of the products to be tested. Therefore, the device automatic discovery service module, the device configuration discovery service module, the resource management module can be realized in the ARM-based master control test device or PC, and the multi-dimensional management service of device resources is provided. At the same time, the corresponding interface management module is realized for the device resources, and then the grpc is applied to realize the opening of all device resources and interfaces. Finally, the corresponding test list is realized by establishing the grpc client. The server can be implemented by using C++ language.

[0069] For example, the test system can determine the corresponding device detection strategy according to different device types, including network devices, standard devices, non-standard and non-automatically identifiable devices. According to the device detection strategy, the corresponding hardware operation entity object is automatically discovered and instantiated. According to the hardware operation entity object, an operation resource list is established. All resources in the operation resource list are described in a tree shape to obtain a device resource description tree. Different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client. The grpc is an open-source remote procedure call framework for communication between services. The RPC is a remote procedure call. The grpc is used as the interaction mode between the device server and the client, and the RPC operation interface is provided for all resources.

[0070] In one example embodiment, as shown in Figure 2 , a self-organizing test method is provided. The method is applied to the test system in Figure 1 for example, and includes the following steps 201 to 206. Among them:

[0071] Step 201, according to different device types, determine the corresponding device detection strategy.

[0072] Among them, the device type includes network devices, standard devices, non-standard and non-automatically identifiable devices.

[0073] In this embodiment, during the test process, the device needs to be automatically discovered first. Automatic discovery of devices means that the operation of scanning, discovering and configuring in the current test system can be discovered. Different device detection strategies can be designed for different types of devices to quickly and actively discover test devices.

[0074] Step 202, according to the device detection strategy, automatically discover the device, and instantiate the corresponding hardware operation entity object.

[0075] In this embodiment, different detection strategies can be designed for network devices, standard devices, non-standard devices and devices that cannot be automatically identified. For example, the automatic discovery of network devices supports two modes: one is multicast, and the test system processing unit actively searches; the other is broadcast, and the device automatically sends device information data packets at regular intervals. For standard devices, information in the corresponding device can be queried according to the corresponding command. For non-standard and non-automatically identifiable devices, device detection can be performed depending on the configuration file.

[0076] For example, for network devices, device discovery data packets are sent in the local area network at regular intervals using the network multicast mechanism, and the corresponding hardware operation entity object is instantiated according to the response data packet returned by the corresponding device; or, the device information data packet sent by the device at regular intervals is received, and the corresponding hardware operation entity object is instantiated according to the device information data packet.

[0077] In this embodiment, for network devices, device discovery data packets are mainly sent in the local area network at regular intervals using the network multicast mechanism, and devices supporting this mechanism send response data packets in the multicast network. The response data packet can include device information, device type, device ID (identity), device operation network protocol, device operation network parameter, etc. The processing unit (PC or embedded ARM processing unit, etc.) in the test system instantiates the corresponding hardware operation entity object according to the data packet returned by the corresponding device. PC generally refers to a personal computer, and ARM is a microprocessor.

[0078] For example, for standard devices, device information is queried in the serial port enumerated according to the SCSI INQUIRY command, and the corresponding hardware operation entity object is instantiated through the queried device information; the SCSI INQUIRY command is a query command of the Small Computer System Interface.

[0079] In this embodiment, for standard devices, the processing unit of the test system automatically enumerates the USB port or the preset IP port, and performs device discovery according to the interface instruction of the device information and the default communication mode.

[0080] For example, for non-standard and non-automatically identifiable devices, the corresponding hardware operation entity object is instantiated according to the configuration file.

[0081] In this embodiment, for non-automatically identifiable devices such as IO and PLC, the system directly instantiates device resources according to the configuration scheme of the client.

[0082] Step 203, establishing an operation resource list according to the hardware operation entity object.

[0083] In this embodiment, the processing unit of the test system can establish an operation resource list based on the hardware operation entity objects automatically discovered by the device. For standard and non-standard devices, the system matches the pre-set operation resource configuration file with the device information. For network devices, the system obtains the corresponding resource configuration description based on the acquired protocol information.

[0084] Step 204: Perform a tree-like description of all resources in the operation resource list to obtain the device resource description tree.

[0085] For example, such as Figure 3 The diagram illustrates a tree-like structure, where Device 1 is the parent device. Under Device 1 are three child devices: ADC1 (Analog-to-Digital Converter), IO1 (Input / Output Device), and I2C1 (Integrated Circuit Bus). Under I2C1 is a further child device: a temperature sensor. This tree-like structure provides a clear and intuitive understanding of the relationships between various resources.

[0086] Step 205: Establish different gRPC services based on different device descriptions, and provide the client with RPC operation interface descriptions of the device resource description tree and the corresponding resource operation interface tree.

[0087] Here, gRPC is an open-source remote procedure call framework used for communication between services; RPC stands for Remote Procedure Call.

[0088] In this embodiment, the interface service includes a module that provides resource descriptions and corresponding resource operation interfaces to the client. The service is provided using a fixed port, through which the client can obtain hardware resources and operation interfaces.

[0089] For example, such as Figure 4 As shown, it demonstrates Figure 3 The tree structure describes the interface descriptions for each device. All instantiated hardware objects have corresponding RPC interface descriptions. Each resource has a fixed ID, and the RPC interface descriptions for resources of the same type are similar; the request information for all interfaces should contain the corresponding resource.

[0090] Step 206: Use gRPC as the interaction method between the device server and the client, and provide RPC operation interfaces for all resources.

[0091] In this embodiment, when the testing system uses gRPC as the server, it can support multiple clients operating simultaneously. These clients can be located within the testing system's processing unit or on other terminals.

[0092] Exemplarily, the grpc is taken as a device server, and parallel operations of two or more clients are supported through the grpc.

[0093] In the self-organizing test method, corresponding device detection strategies are determined according to different device types, the device types include network devices, standard devices, non-standard and non-automatically identifiable devices, so that the test method can be applied to different types of devices. According to the device detection strategy, the device is automatically discovered, and the corresponding hardware operation entity object is instantiated, so that different detection strategies can be used for different devices to realize automatic identification and discovery of the device. The operation resource list is established according to the hardware operation entity object, so that the device resource description tree can be established subsequently. All resources in the operation resource list are described in a tree shape to obtain a device resource description tree, so that the relationship between each resource can be simplified. Different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client. The grpc is an open source remote procedure call framework used for communication between services, and the RPC is a remote procedure call, so that all different operation resources can be provided to the client in a tree shape or a list, reducing the hardware operation of the client software implementation personnel. The grpc is taken as an interactive mode between the device server and the client, and the RPC operation interface is provided for all resources. Therefore, the protocol debugging and coding work is reduced, the operable interface of all operation resources is presented to the client through the interface file, and the resource description and interface description can be obtained by the client through the fixed RPC interface, so that the client implementation personnel can intuitively operate the hardware. The complexity of the protocol connection in the test process is significantly reduced, and the flexibility requirement of the non-standard integrated circuit board test can be met.

[0094] In another exemplary embodiment, as shown in Figure 5 , a self-organizing test method is provided, which is applied to the test system in Figure 1 for example, and includes the following steps 501 to 507. Wherein:

[0095] Step 501, according to different device types, determine corresponding device detection strategies.

[0096] Step 502, according to the device detection strategy, automatically discover the device, and instantiate the corresponding hardware operation entity object.

[0097] Step 503, according to the hardware operation entity object, establish an operation resource list.

[0098] The specific implementation process and technical effects of steps 501 to 503 in the embodiment are described in detail in the followingFigure 2 The related description of steps 201-203 in the method embodiment is not repeated here.

[0099] In step 504, for the standard device, the non-standard device, and the device that cannot be automatically identified, the device information is matched with the pre-set operation resource configuration file.

[0100] In step 505, for the network device, the corresponding resource configuration description is obtained according to the obtained protocol information.

[0101] In this embodiment, after step 505 is performed, the interface description file of the protobuffer of different types of objects can also be obtained according to the pre-set operation resource configuration file and / or the resource configuration description; the protobuffer is a data description language, which is used to serialize structured data and / or restore serialized data to the original data structure; and the resource operation interface tree is established according to the interface description file of the protobuffer.

[0102] For example, the processing unit of the test system matches or obtains the interface description file of the protobuffer of different types of objects according to the device resource configuration description, and establishes different grpc services according to different device descriptions. RPC operation interface descriptions are provided for all device operations.

[0103] In step 506, all resources in the operation resource list are described in a tree shape to obtain a device resource description tree.

[0104] In step 507, different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client.

[0105] In step 508, grpc is used as the interaction mode between the device server and the client, and the RPC operation interface is provided for all resources.

[0106] The specific implementation process and technical effects of steps 506-508 in this embodiment are described in the foregoing Figure 2 The related description of steps 204-206 in the method embodiment is not repeated here.

[0107] In this embodiment, the interface description adopts the protobuffer and flatbuffer serialization description mode, which can reduce the low efficiency of string encoding and decoding such as json.

[0108] In another example embodiment, as shown in Figure 6 A self-organizing test method is provided, and the method is applied to Figure 1The test system in the foregoing embodiment is taken as an example to illustrate the method, including the following steps 601 to 607. Among them:

[0109] In step 601, a corresponding device detection strategy is determined according to different device types.

[0110] In step 602, devices are automatically discovered according to the device detection strategy, and a corresponding hardware operation entity object is instantiated.

[0111] In step 603, an operation resource list is established according to the hardware operation entity object.

[0112] In step 604, all resources in the operation resource list are described in a tree form to obtain a device resource description tree.

[0113] In step 605, different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client.

[0114] For specific implementation process and technical effects of steps 601 to 605 in the embodiment, refer to the related description of steps 201 to 205 in the method embodiment shown in Figure 2

[0115] In step 606, a one-way or bidirectional streaming transmission channel is established for a hardware operation entity object having a real-time transmission requirement.

[0116] The one-way or bidirectional streaming transmission channel is used for real-time transmission of data, and the real-time transmission adopts a mode including http2. The http2 is a binary data transmission mode.

[0117] In the embodiment, the one-way or bidirectional streaming transmission channel is established for the object having a real-time transmission (ADC / DAC / DMM, etc.) to realize real-time transmission of data. The real-time data transmission adopts the transmission mode of http2.

[0118] In step 607, grpc is taken as an interaction mode between a device server and a client, and an RPC operation interface is provided for all resources.

[0119] For specific implementation process and technical effects of step 607 in the embodiment, refer to the related description of step 206 in the method embodiment shown in Figure 2

[0120] In the embodiment, the streaming transmission data is transmitted by using http2, which maximizes the real-time performance and stability of data transmission.

[0121] In a fourth exemplary embodiment, as shown in Figure 7 ​​As shown, a self-organizing test method is provided, which can be divided into five steps, namely, device automatic discovery, device resource analysis and management, device and service interface, RPC service initialization, and test service running. The specific implementation process can be combined with the steps in each method embodiment in Figure 2 、 Figure 5 、 Figure 6 .

[0122] In this embodiment, automatic discovery and configuration of devices can be achieved, reducing the work of maintenance personnel. All different operation resources are provided to the client in a tree or list manner, reducing the operation of hardware for the client software implementation personnel. The RPC technology is applied as an interactive way, which can reduce the debugging and coding work of the protocol. All operable interfaces of the operation resources are presented to the client through the interface file, and the client can obtain resource description and interface description through the fixed RPC interface, so that the client implementation personnel can intuitively operate the hardware. The stream transmission RPC technology supporting http2 is applied, which provides a convenient way for real-time transmission of data of the hardware device. The protobuffer and flatbuffer serialization technologies are applied, which solve the problems of flexibility and fast encoding and decoding of the protocol and device description.

[0123] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0124] Based on the same inventive concept, the embodiments of the present application also provide a self-organizing test device for implementing the self-organizing test method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more self-organizing test device embodiments provided below can refer to the limitations of the self-organizing test method described above, which will not be repeated here.

[0125] In an exemplary embodiment, as Figure 8As shown, a self-organizing test device is provided, comprising a determination module 801, a discovery module 802, an operation resource list establishment module 803, a device resource description tree acquisition module 804, a service module 805 and an interaction module 806, wherein:

[0126] The determination module 801 is configured to determine a corresponding device detection strategy according to different device types; the device types include network devices, standard devices, non-standard and unidentifiable devices;

[0127] The discovery module 802 is configured to automatically discover devices and instantiate corresponding hardware operation entity objects according to the device detection strategy;

[0128] The operation resource list establishment module 803 is configured to establish an operation resource list according to the hardware operation entity objects;

[0129] The device resource description tree acquisition module 804 is configured to perform tree-shaped description on all resources in the operation resource list to obtain a device resource description tree;

[0130] The service module 805 is configured to establish different grpc services according to different device descriptions, and provide the device resource description tree and RPC operation interface description of the corresponding resource operation interface tree for a client; wherein the grpc is an open-source remote procedure call framework used for communication between services; and the RPC is a remote procedure call;

[0131] The interaction module 806 is configured to use grpc as an interaction mode between a device server and a client, and provide RPC operation interfaces for all resources.

[0132] For example, the discovery module 802 is specifically configured to: for network devices, use a network multicast mechanism to send device discovery data packets in a local area network at a time, and instantiate corresponding hardware operation entity objects according to response data packets returned by corresponding devices; or receive device information data packets sent automatically by devices at a time, and instantiate corresponding hardware operation entity objects according to the device information data packets;

[0133] For standard devices, query device information in a serial port according to a SCSI INQUIRY command, and instantiate corresponding hardware operation entity objects through the queried device information; the SCSI INQUIRY command is a query command of a small computer system interface;

[0134] For non-standard and unidentifiable devices, instantiate corresponding hardware operation entity objects according to a configuration file.

[0135] Exemplarily, the apparatus can further include a configuration module 807 configured to match the device information with a pre-set operation resource configuration file for a standard device, a non-standard device, and a device that cannot be automatically identified; and configured to obtain a corresponding resource configuration description according to the obtained protocol information for a network device.

[0136] Exemplarily, the apparatus can further include a resource operation interface tree establishment module 808 configured to obtain an interface description file of a protobuffer of different types of objects according to the pre-set operation resource configuration file and / or the resource configuration description; the protobuffer is a data description language, and is configured to serialize structured data and / or restore serialized data to an original data structure; and the resource operation interface tree is established according to the interface description file of the protobuffer.

[0137] Exemplarily, the apparatus can further include a transmission channel establishment module 809 configured to establish a one-way or bidirectional streaming transmission channel for a hardware operation entity object that has a real-time transmission requirement; the one-way or bidirectional streaming transmission channel is configured to perform real-time transmission of data, and a transmission mode of the real-time transmission includes http2; the http2 is configured to perform data transmission by using binary.

[0138] Exemplarily, the interaction module 806 is specifically configured to use the grpc as a device server, and support parallel operation of two or more clients through the grpc.

[0139] The modules in the self-organizing test apparatus can be all or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to the modules.

[0140] In an exemplary embodiment, a self-organizing test system is provided, and an internal structure diagram of the self-organizing test system can be as shown in FIG. 8. Figure 9The self-organizing test system includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the self-organizing test system is configured to provide computing and control capabilities. The memory of the self-organizing test system includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the self-organizing test system is configured to store various configuration file data. The input / output interface of the self-organizing test system is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with external terminals through network connection. The computer program is executed by the processor to implement a self-organizing test method.

[0141] Those skilled in the art can understand that, Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0142] In an exemplary embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps in the above method embodiments.

[0143] In an embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program is executed by a processor to implement the steps in the above method embodiments.

[0144] In an embodiment, a computer program product is provided, including a computer program, and the computer program is executed by a processor to implement the steps in the above method embodiments.

[0145] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant regulations.

[0146] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.

[0147] The technical features of the above embodiments can be combined in any manner. To make the description concise, all possible combinations of the technical features in the above embodiments are not described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.

[0148] The above-described embodiments are merely illustrative of several embodiments of the present application, which are described in more detail and in a specific manner, but should not be construed as limiting the scope of the patent of the present application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A self-organizing test method, characterized by, The method comprises: According to different device types, determine the corresponding device detection strategy; the device types include: network devices, standard devices, non-standard and non-automatically identifiable devices; According to the device detection strategy, automatically discover the device, and instance the corresponding hardware operation entity object; According to the hardware operation entity object, establish an operation resource list; All resources in the operation resource list are described in a tree form to obtain a device resource description tree; According to different device descriptions, different grpc services are established, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client; wherein, the grpc is an open source remote procedure call framework, which is used for communication between services; the RPC is a remote procedure call; The grpc is used as the interaction mode between the device server and the client, and the RPC operation interface is provided for all resources.

2. The method of claim 1, wherein, According to the device detection strategy, automatically discover the device, and instance the corresponding hardware operation entity object, comprising: For network devices, use network multicast mechanism to send device discovery data packets in local area network at regular intervals, and instance the corresponding hardware operation entity object according to the response data packet returned by the corresponding device; or, receive device information data packets sent automatically by the device at regular intervals, and instance the corresponding hardware operation entity object according to the device information data packet; For standard devices, query device information in the serial port according to SCSI INQUIRY command enumeration, and instance the corresponding hardware operation entity object through the queried device information; the SCSI INQUIRY command is a query command of small computer system interface; For non-standard and non-automatically identifiable devices, instance the corresponding hardware operation entity object according to the configuration file.

3. The method of claim 1, wherein, After establishing the operation resource list according to the hardware operation entity object, the method further comprises: For standard devices, non-standard and non-automatically identifiable devices, match the device information with the pre-set operation resource configuration file; For network devices, obtain the corresponding resource configuration description according to the obtained protocol information.

4. The method of claim 3, wherein, After all resources in the operation resource list are described in a tree form to obtain a device resource description tree, the method further comprises: According to the pre-set operation resource configuration file and / or resource configuration description, obtain the interface description file of the protobuffer of different types of objects; wherein, the protobuffer is a data description language, which is used for serializing structured data and / or restoring serialized data into the original data structure; According to the interface description file of the protobuffer, establish a resource operation interface tree.

5. The method according to any one of claims 1 to 4, characterized in that, After different grpc services are established according to different device descriptions, and the device resource description tree and the RPC operation interface description of the corresponding resource operation interface tree are provided for the client, the method further comprises: For the hardware operation entity object with real-time transmission demand, a one-way or two-way streaming channel is established; the one-way or two-way streaming channel is used for real-time transmission of data, and the real-time transmission adopts a mode including http2; the http2 is a binary data transmission mode.

6. The method according to any one of claims 1 to 4, characterized in that, The grpc is used as an interaction mode between the device server and the client. The grpc is used as the device server, and parallel operation of two or more clients is supported through the grpc.

7. A self-organizing test device, characterized by The device includes: A determination module is configured to determine a corresponding device detection strategy according to different device types; the device types include network devices, standard devices, non-standard devices, and devices that cannot be automatically identified. A discovery module is configured to automatically discover devices and instantiate corresponding hardware operation entity objects according to the device detection strategy. An operation resource list establishment module is configured to establish an operation resource list according to the hardware operation entity objects. A device resource description tree acquisition module is configured to perform tree-shaped description on all resources in the operation resource list to obtain a device resource description tree. A service module is configured to establish different grpc services according to different device descriptions, and provide the device resource description tree and RPC operation interface description of the corresponding resource operation interface tree for the client; the grpc is an open-source remote procedure call framework used for communication between services; the RPC is a remote procedure call. An interaction module is configured to use the grpc as an interaction mode between the device server and the client, and provide RPC operation interfaces for all resources.

8. A self-organizing test system comprising a memory and a processor, the memory storing a computer program, characterized in that, The processing unit in the processor executes the computer program to implement the steps of the method in any one of claims 1 to 6.

9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 6.

10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Resource management and monitoring method of man-machine object fusion cloud computing platform

    CN111563018A

  • Cloud resource fine management traceability system and method

    CN112068953A