Docking equipment access method, test method, test control equipment, test machine, device and computer equipment

By receiving the docking device access request and establishing the corresponding relationship between the abstract interface and the docking device interface, the problem of architecture and code modification of the test machine software when the docking device is replaced is solved, and seamless communication and business between the test machine and a variety of docking devices are realized. Decoupling simplifies management.

CN118760643APending Publication Date: 2024-10-11HANGZHOU CHANGCHUAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806042.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing test machine software needs to modify the architecture and code when replacing different docking devices, resulting in numerous software versions that are difficult to manage and unable to effectively decouple business and docking device communication functions.

Method used

By receiving the docking device access request, determine the abstract interface, obtain the corresponding docking device interface, establish the corresponding relationship between the abstract interface and the docking device interface, load the device control library, determine the communication protocol, realize access and communication of the docking device, and support a variety of Compatibility of docking devices.

Benefits of technology

It achieves seamless communication between the test machine and different docking devices, decouples business and docking device functions, avoids numerous problems with software versions, and simplifies management and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760643A_ABST
    Figure CN118760643A_ABST
Patent Text Reader

Abstract

The invention relates to a docking device access method, a test method, a test control device, a test machine, a device and a computer device. The docking equipment comprises a sorting machine and / or a probe station, and the access method comprises the following steps: receiving an access request of the docking equipment, and determining an abstract interface corresponding to the access request; acquiring a docking equipment interface corresponding to the abstract interface; loading when the corresponding relation between the abstract interface and the docking equipment interface is initialized; and processing the docking device access request based on the docking device interface. By adopting the method, the communication function of the service and the docking equipment can be decoupled, so that the test machine can communicate with various different docking equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of test machines, and in particular to a docking device access method, a test method, a test control device, a test machine, a device and a computer device. Background Art

[0002] The docking device is a very important component in FT testing (function test). Usually, in order to meet the needs of different users in the test system, docking devices of different models and manufacturers need to be used. Different docking devices may use different communication methods and protocols for communication. The test machine software directly calls the docking device Handler interface for communication. The upper-level business logic is bundled with the specific docking device details and features, resulting in the need to modify the test machine software architecture and code when the test machine changes to different docking devices. Different software versions are generated for different docking devices, resulting in numerous software versions that are difficult to manage. Summary of the invention

[0003] Based on this, it is necessary to provide a docking device access method, test method, test control equipment, test machine, device and computer equipment that can decouple the business and docking device communication functions, so that the test machine can communicate with various different docking devices.

[0004] In a first aspect, the present application provides a method for accessing a docking device, wherein the docking device includes a sorting machine and / or a probe station, and the access method includes:

[0005] Receiving a docking device access request and determining an abstract interface corresponding to the access request;

[0006] Acquire the docking device interface corresponding to the abstract interface; the corresponding relationship between the abstract interface and the docking device interface is loaded during initialization;

[0007] The docking device access request is processed based on the docking device interface.

[0008] In one embodiment, the method further comprises:

[0009] Get the configuration information of the docking device;

[0010] Determine a device control library corresponding to the docking device based on the docking device configuration information;

[0011] A device control library corresponding to the docking device is loaded to establish a corresponding relationship between the instantiated interface in the device control library and the abstract interface.

[0012] In one of the embodiments, determining the device control library corresponding to the docking device based on the docking device configuration information includes:

[0013] Based on the identifier of the device control library in the interconnection device configuration information, traverse the stored device control library identifiers;

[0014] When the corresponding device control library identifier is found, the device control library corresponding to the found device control library identifier is loaded.

[0015] In one embodiment, the method further comprises:

[0016] When a new docking device is added, obtaining an identifier of a device control library of the newly added docking device;

[0017] When the identifier of the device control library of the newly added docking device is the same as the identifier of the device control library of the existing docking device, outputting information that the addition failed;

[0018] When the identifier of the device control library of the newly added docking device is different from the identifier of the device control library of the existing docking device, establishing a correspondence between each docking device interface in the device control library of the newly added docking device and the abstract interface;

[0019] Compiling each docking device interface in the device control library;

[0020] The corresponding relationship between the device control library, the device control library identifier, the docking device interface and the abstract interface is stored in association.

[0021] In one embodiment, the processing of the docking device access request based on the docking device interface includes:

[0022] Determining a communication protocol corresponding to a device control library of the docking device;

[0023] The corresponding communication protocol is called through the docking device interface to process the docking device access request.

[0024] In one embodiment, before determining the communication protocol corresponding to the device control library of the docking device, the method further includes:

[0025] When a new docking device is added, obtaining a communication protocol corresponding to the newly added docking device;

[0026] If the communication protocol is not stored, storing the communication protocol, and establishing a corresponding relationship between the newly added device control library of the docking device and the communication protocol;

[0027] In the case where the communication protocol has been stored, a corresponding relationship between the newly added device control library of the docking device and the communication protocol is established.

[0028] In a second aspect, the present application also provides a testing method, the method comprising:

[0029] Receive test instructions;

[0030] Based on the test instruction, calling the above-mentioned docking device access method to access the docking device;

[0031] A test result is obtained based on the access result of the docking device.

[0032] In a third aspect, the present application further provides a test control device, the test control device comprising:

[0033] A docking device service module, used for receiving a docking device access request;

[0034] The docking device adapter is used to execute the above docking device access method to access the docking device.

[0035] In a fourth aspect, the present application further provides a testing machine, the testing machine comprising:

[0036] A test control device as described in any one of the above embodiments;

[0037] Test head;

[0038] A test head control device, the test head control device is connected to the test control device and the test head respectively; the test head control device is used to receive a test request sent by the test control device, and drive the test head to perform a test based on the test request.

[0039] In one of the optional embodiments, the test head control device includes:

[0040] A test engine module, used for receiving a test request sent by the test control device;

[0041] A test code storage module, used for storing test codes;

[0042] Driver service module;

[0043] The test host is used to execute the test code stored in the test code storage module after receiving the test request forwarded by the test engine module, so as to call the drive service module to drive the test head to perform the test.

[0044] In a fifth aspect, the present application further provides a docking device access device, wherein the docking device includes a sorting machine and / or a probe station, and the device includes:

[0045] A receiving module, used to receive a docking device access request and determine an abstract interface corresponding to the access request;

[0046] An interface acquisition module, used to acquire the docking device interface corresponding to the abstract interface; the correspondence between the abstract interface and the docking device interface is loaded during initialization;

[0047] A processing module is used to process the docking device access request based on the docking device interface.

[0048] In a sixth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in any one of the above embodiments when executing the computer program.

[0049] The above-mentioned docking device access method, test method, test control equipment, test machine, device and computer equipment, upon receiving a docking device access request, determine the abstract interface corresponding to the access request; obtain the docking device interface corresponding to the abstract interface; the correspondence between the abstract interface and the docking device interface is loaded during initialization, so that the docking device access request is processed based on the docking device interface, that is, the access request corresponds to the abstract interface, and the abstract interface corresponds to the docking device interface, thereby establishing a correspondence between the access request and the corresponding docking device interface through the abstract interface to achieve communication, and the correspondence between the access request and the abstract interface, and the correspondence between the abstract interface and the docking device interface are independent of each other, so when the correspondence between the abstract interface and the docking device interface changes, that is, when the docking device is replaced, the correspondence between the abstract interface and the access request is not affected, thereby supporting multiple docking devices without changing the business function of the access request, thereby decoupling the business and docking device communication functions, and enabling the test machine to communicate with various different docking devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 is a schematic diagram of a testing machine in one embodiment;

[0052] Figure 2 A logic diagram of a method for accessing a docking device in an embodiment;

[0053] Figure 3A schematic diagram of a flow chart of a method for accessing a docking device in one embodiment;

[0054] Figure 4 is a schematic diagram of the corresponding relationship in one embodiment;

[0055] Figure 5 is a flowchart of a preloading step in one embodiment;

[0056] Figure 6 A flowchart of a newly added device docking step in an embodiment;

[0057] Figure 7 A flowchart of a testing method in one embodiment;

[0058] Figure 8 A schematic diagram of a flow chart of a method for accessing a docking device in another embodiment;

[0059] Fig. 9 It is a structural block diagram of a docking device access apparatus in one embodiment;

[0060] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0062] The docking device access method provided in the embodiment of the present application can be applied to Figure 1 In the test machine shown in the figure, the test machine includes at least one docking device and at least one test head. The test control device communicates with the docking device and the test head respectively.

[0063] The docking device may include a sorting machine and / or a probe station, and the docking device may be a docking device from different manufacturers. Optionally, the docking device may include only a sorting machine; or the docking device includes only a probe station; or the docking device includes a sorting machine and a probe station. It should be noted that the number of sorting machines and probe stations is not limited.

[0064] The test control device includes a docking device service module and a docking device adapter. The docking device service module is used to receive a docking device access request; the docking device adapter is used to process the docking device access request to access the docking device, specifically, determine the abstract interface corresponding to the access request; obtain the docking device interface corresponding to the abstract interface, and then process the docking device access request based on the docking device interface.

[0065] The test control device further includes a test service module, which is used to send a docking device access request to the docking device service module, wherein the docking device access request may carry a test event and test-related data. The test service module may also receive the test event and test-related data returned by the docking device service module.

[0066] Optionally, the test control device communicates with the test head through the test head control device, the test control device can also be a host computer, and the test machine control device can also be a slave computer. The test head control device includes a test engine module, a test host, a test code storage module and a drive service module. The test engine module can receive a test request sent by the test service module of the test control device, and the test request can carry a test event or test-related data, etc. The test engine module routes the test request to the test host, and the test host executes the test code stored in the test code storage module. The test code calls the drive service module to drive the test head to perform the test, and finally the chip test is realized through the mutual cooperation between the docking device, the test head, the test control device and the test head control device.

[0067] Combination Figure 2 As shown, Figure 2 is a logic diagram of a docking device access method in one embodiment. In this embodiment, the docking device adapter ( Figure 2 Shown as Handler Adapter) includes at least one abstract interface ( Figure 2 Each abstract interface corresponds to a docking device interface ( Figure 2 Abstract Interface), the docking device interface is a specific docking device ( Figure 2 The device interface shown as Handler in the figure.

[0068] The code related to the business logic of the test machine ( Figure 2 It is shown as Tester Code, that is, Figure 1 The test code in the test code module implements the test business related functions by calling API (Application Programming Interface). The code Tester Code related to the business logic of the test machine is a custom test code written by the user. In the code related to the business logic of the test machine, the API operation is called to control the docking device service module, read test data, etc. The test control device calls a unified interface for the devices of different docking device service modules. When the device of the docking device service module changes, the code Tester Code related to the business logic of the test machine can be executed without change.

[0069] The API is used for code calls related to the business logic of the test machine to manage and control docking equipment and test events. The API is mainly designed based on the business logic and requirements of the test system of the test machine (the test system in this application can be understood as a software system), and does not care about specific equipment details and communication interfaces. The mapping relationship between multiple API interfaces and multiple abstract interfaces in the abstract interface layer can be one-to-one, many-to-one, or one-to-many. The mapping relationship between multiple API interfaces and multiple abstract interfaces in the abstract interface layer can be regarded as a mapping relationship between business functions and corresponding abstract interfaces. The mapping relationship is fixed and is mainly designed based on the business logic and requirements of the test system of the test machine. When there is a new business function, the new business function can be implemented by adding API interfaces and abstract interfaces.

[0070] The docking device service module can be regarded as an independent process, which can communicate with the docking device. The test service module receives and sends test events and related data to the docking device service module to complete the communication with the specific docking device.

[0071] As an independent process, the docking device service module realizes the communication function with the docking device, separates the communication interaction function with the docking device from the test machine, reduces the burden of the test machine, and realizes the decoupling between the test machine and the specific docking device. The test machine and the docking device service interact through test events, and users can customize the test events in the "event definition file". The processing code logic of the test event can also be customized in the "processing definition file". In this way, flexible configuration of test events and test event processing can be achieved without changing the test system framework and code.

[0072] The docking device service module realizes communication with different docking devices through the docking device adapter. The API directly accesses the docking device adapter to realize access and control of the docking device.

[0073] The docking device adapter includes a set of general docking device access protocol "abstract interface layer" for API calls and a device control library.

[0074] The abstract interface layer is a set of general interface layers obtained by abstracting the operations of various types of docking devices. The abstract interface layer defines general operations for docking devices and is irrelevant to the types of docking devices. The API calls the abstract interface in the abstract interface layer to complete the operations on the docking devices without caring about the types and details of the docking devices. When the docking device type is different, that is, when the type of docking device connected to the system is changed, since the abstract interface in the abstract interface layer is irrelevant to the type of docking device, the abstract interfaces in the abstract interface layer do not need to be changed, so the API code does not need to be modified.

[0075] The device control library in the docking device adapter ( Figure 2 The Device Ctrl Lib in the figure is the instantiation of the abstract interface layer. The corresponding device control library is automatically instantiated according to different docking device types. The instantiation here means to establish the docking device interface ( Figure 2 The corresponding relationship is shown as Handler Interface).

[0076] Optionally, when adding a new docking device, you only need to create a new device control library and re-instantiate the interface of the abstract interface layer. The docking device adapter accesses different types of docking devices by loading different device control libraries. When the system starts, it reads the configuration file, obtains the newly added docking device model and the name of the corresponding device control library, and searches the specified directory to find the device control library and loads it.

[0077] The API calls the abstract interface of the abstract interface layer of the docking device adapter, and the docking device adapter maps the API call to the docking device interface in the device control library of the current docking device type. When the docking device type changes, the abstract interface of the docking device adapter does not need to be changed. It only needs to change the correspondence between the abstract interface of the abstract interface layer in the docking device adapter and the docking device interface in the device control library. The realized business functions can cover the business functions of the changed docking device. If new business functions are added, APIs and corresponding abstract interfaces can be added.

[0078] Optionally, the docking device adapter further includes a communication library ( Figure 2 The communication library is a package library for different communication protocols, including the package library of the GPIB driver layer and the network communication bottom layer package library. If other communication methods need to be expanded, the communication library package of other communication protocols or drivers can be added. The device control library calls the communication library to complete the specific communication with the docking device. Different device control libraries can reuse a communication library.

[0079] In the above test machine, different device control libraries, communication methods and communication protocols of different docking devices are integrated into the test system of the test machine. The test system can adapt to different docking devices without changing the existing system architecture and core coding.

[0080] In an exemplary embodiment, Figure 3 As shown, a docking device access method is provided, and the method is applied to Figure 1 The test control device in the embodiment is specifically applied to the docking device adapter of the test control device as an example for description, including the following steps 302 to 306. Among them:

[0081] S302: Receive a docking device access request and determine an abstract interface corresponding to the access request.

[0082] The premise of the docking device access request is to establish a communication link with the docking device. Therefore, after receiving the docking device access request, the abstract interface corresponding to the access request is first determined.

[0083] The access request may be a request for implementing a function related to the test business in the code related to the test machine business logic; the access request implements the corresponding function related to the test business by calling a corresponding API.

[0084] Each API corresponds to an abstract interface of the abstract interface layer, and the corresponding relationship is fixed and unchanged. The corresponding relationship is designed based on the business logic and requirements of the test system itself. The corresponding relationship can be one-to-one, many-to-one or one-to-many, and no specific restrictions are made here.

[0085] In this embodiment, determining the abstract interface corresponding to the access request may include: determining the corresponding API based on the request parameters carried by the access request, and obtaining the abstract interface of the abstract interface layer corresponding to the determined API, so as to achieve the mapping between the business function and the abstract interface. When there is a new business function, the new business function can be achieved by adding an API interface and an abstract interface.

[0086] S304: Acquire the docking device interface corresponding to the abstract interface; the correspondence between the abstract interface and the docking device interface is loaded during initialization.

[0087] The docking device interface is in the device control library of the docking device. The device control library of each docking device includes multiple docking device interfaces. Each docking device interface or each group of docking device interfaces can be used to implement corresponding test service-related functions.

[0088] The correspondence between the abstract interface and the docking device interface is loaded during initialization, and the loading process can be regarded as the instantiation of the abstract interface.

[0089] For ease of understanding, combined Figure 3 As shown, Figure 3 The corresponding relationship between the abstract interface layer and the device control library of different docking devices in one embodiment. Three different types of docking devices are shown in this embodiment, namely HandlerType A, Handler Type B and Handler Type C. In other embodiments, the types of docking devices may also include other types. The three types are used as examples here for convenience only. The device control libraries of different types of docking devices include multiple docking device interfaces. Optionally, the number of docking device interfaces in the device control library is less than or equal to the number of abstract interfaces in the abstract interface layer, so that a one-to-one correspondence between the abstract interface and the docking device interface can be achieved. Figure 4 In the case where the connected docking device type is Handler Type A, a correspondence between each abstract interface of the abstract interface layer and the corresponding docking device interface in the device control library is established, for example, a correspondence between the abstract interface Abstract Interface 1 and Handler Interface 1 is established, a correspondence between the abstract interface Abstract Interface 2 and HandlerInterface 2 is established...a correspondence between the abstract interface Abstract Interface N and Handler Interface N is established. In another embodiment, if the number of corresponding docking device interfaces in the device control library is M, and M is less than N, there are some abstract interfaces that do not correspond to the corresponding docking device interfaces, and the corresponding business functions are unavailable.

[0090] After the docking device adapter determines the abstract interface corresponding to the access request, the docking device interface corresponding to the abstract interface is determined based on the correspondence between the pre-loaded abstract interface and the docking device interface.

[0091] S306: Processing the docking device access request based on the docking device interface.

[0092] The docking device interface is an interface for implementing functions related to corresponding test services. Through this interface, a docking device access request can be processed to implement functions related to corresponding test services.

[0093] For example, the corresponding communication protocol is called through the docking device interface to achieve communication with the docking device, thereby realizing corresponding test service-related functions.

[0094] The above-mentioned docking device access method receives a docking device access request and determines the abstract interface corresponding to the access request; obtains the docking device interface corresponding to the abstract interface; and loads the correspondence between the abstract interface and the docking device interface when it is initialized, so that the docking device access request is processed based on the docking device interface, that is, the access request corresponds to the abstract interface, and the abstract interface corresponds to the docking device interface, thereby establishing a correspondence between the access request and the corresponding docking device interface through the abstract interface to achieve communication, and the correspondence between the access request and the abstract interface, and the correspondence between the abstract interface and the docking device interface are independent of each other, so when the correspondence between the abstract interface and the docking device interface changes, that is, when the docking device is replaced, the correspondence between the abstract interface and the access request is not affected, thereby supporting multiple docking devices without changing the business function of the access request, thereby decoupling the business and docking device communication functions, so that the test machine can communicate with various different docking devices.

[0095] In one of the optional embodiments, the method also includes: obtaining docking device configuration information; determining a device control library corresponding to the docking device based on the docking device configuration information; loading the device control library corresponding to the docking device to establish a correspondence between the instantiated interface and the abstract interface in the device control library.

[0096] Specifically, combined Figure 5 As shown, Figure 5 This is a flowchart of a preloading step in an embodiment. The preloading step is to instantiate each abstract interface in the abstract interface layer, that is, to establish a corresponding relationship between the abstract interface and the docking device interface, and to establish a communication connection between the docking device and the abstract interface.

[0097] The docking device configuration information may be a docking device type preselected by a user or a docking device type screening condition corresponding to a user configuration, and the system determines the docking device type based on the docking device type screening condition. Optionally, the docking device type screening condition may be in a condition definition file, and the name of the device control library corresponding to the docking device type may be configured through the condition definition file.

[0098] Optionally, during initialization, the docking device configuration information is obtained, which can be achieved by initializing the configuration file. After the docking device service module is started, the configuration file is initialized to read the docking device configuration information, and then the device control library identifier corresponding to the docking device configuration information is obtained to obtain the device control library corresponding to the device control library identifier, and the abstract interface is instantiated through the device control library, that is, the correspondence between the abstract interface and the docking device interface is established.

[0099] In one of the optional embodiments, determining a device control library corresponding to a docking device based on docking device configuration information includes: traversing stored device control library identifiers based on the device control library identifier in the docking device configuration information; and when a corresponding device control library identifier is queried, loading the device control library corresponding to the queried device control library identifier.

[0100] Optionally, the device control library identifier may be a device control library name, and the device control library identifier may uniquely identify a device control library corresponding to a docking device type.

[0101] When the identifier of the traversed device control library is different from the identifier of the device control library determined based on the docking device configuration information, continue to obtain the next device control library until the identifier of the traversed device control library is the same as the identifier of the device control library determined based on the docking device configuration information. Then, based on the traversed device control library, the corresponding abstract interface is instantiated, that is, the correspondence between the abstract interface and the docking device interface is established.

[0102] Optionally, the system can pre-store device control libraries corresponding to each docking device type, and uniformly store the identifiers of each device control library in a device control library directory. In this way, when traversing, it is only necessary to traverse the device control library directory to determine the device control library identifier that is the same as the device control library identifier determined based on the docking device configuration information.

[0103] In the above embodiment, after the hardware of the docking device is connected, the corresponding docking device configuration information is configured or the docking device configuration information is automatically generated based on the connected docking device. In this way, the corresponding device control library can be determined based on the docking device configuration information, thereby instantiating the corresponding abstract interface, laying the foundation for the implementation of subsequent test business-related functions.

[0104] In one of the optional embodiments, the method also includes a step of adding a docking device type, and the step of adding a docking device type includes: when adding a docking device, obtaining the identifier of the device control library of the newly added docking device; when the identifier of the device control library of the newly added docking device is the same as the identifier of the device control library of the existing docking device, outputting information of the failure of adding the new device; when the identifier of the device control library of the newly added docking device is different from the identifier of the device control library of the existing docking device, establishing a correspondence between each docking device interface and the abstract interface in the device control library of the newly added docking device; compiling each docking device interface in the device control library; and storing the correspondence between the device control library, the device control library identifier, the docking device interface and the abstract interface in an associated manner.

[0105] When a new docking device is added, the device control library identifier and the device control library corresponding to the newly added docking device are received, and the addition of the docking device is completed based on the set device control library identifier and the device control library.

[0106] Specifically, combined Figure 6 As shown, Figure 6 This is a flowchart of the steps of adding a new docking device in an embodiment. After adding a new device control library, the identifier of the device control library is obtained to determine whether the identifier of the device control library of the newly added docking device is the same as the identifier of the device control library of the existing docking device. If they are the same, the addition of the new device control library fails. If they are not the same, the corresponding relationship between each docking device interface and the abstract interface in the device control library of the newly added docking device is established; each docking device interface in the device control library is compiled, and the compiled device control library is stored, and the corresponding relationship between the device control library, the device control library identifier, the docking device interface and the abstract interface is associated and stored.

[0107] Optionally, after the compilation is completed, the device control library identifier is added to the device control library identifier directory for use during preloading.

[0108] In the above embodiment, when a new docking device is added, it is matched with the existing device control library identifier to ensure the uniqueness of the device control library identifier, and the corresponding relationship between the device control library, the device control library identifier, the docking device interface and the abstract interface is associated and stored to facilitate subsequent preloading.

[0109] In one of the optional embodiments, processing a docking device access request based on a docking device interface includes: determining a communication protocol corresponding to a device control library of the docking device; and processing the docking device access request by calling the corresponding communication protocol through the docking device interface.

[0110] In this embodiment, the docking device adapter also includes a communication library, which is an encapsulation library for different communication protocols. The communication protocols of different docking devices can be the same or different. Therefore, after determining the docking device interface, the communication protocol corresponding to the device control library of the docking device is also determined; the docking device access request is processed by calling the corresponding communication protocol through the docking device interface, and the docking device interface in the device control library of different docking devices can reuse the communication protocol.

[0111] In one of the optional embodiments, before determining the communication protocol corresponding to the device control library of the docking device, it also includes: when a new docking device is added, obtaining the communication protocol corresponding to the newly added docking device; if the communication protocol is not stored, storing the communication protocol and establishing a correspondence between the device control library of the newly added docking device and the communication protocol; if the communication protocol has been stored, establishing a correspondence between the device control library of the newly added docking device and the communication protocol.

[0112] Among them, since the communication protocols corresponding to different docking devices are different, when a new docking device is added, in order to ensure normal communication with the docking device, it is determined whether the communication protocol corresponding to the newly added docking device is stored in the communication library. If it is stored, the device control library of the docking device is compiled and other steps are performed. If it is not stored, it is necessary to add the communication protocol corresponding to the newly added docking device to the communication library, and establish a corresponding relationship between the device control library of the newly added docking device and the communication protocol, so that the docking device interface of the subsequent device control library can call the communication protocol to realize communication with the docking device.

[0113] In the above embodiment, it is supported to integrate different communication modes and communication protocols into the test system. Through the above design method, the test system can adapt to different docking devices without changing the existing system architecture and core coding.

[0114] In an exemplary embodiment, Figure 7 As shown, a test method is provided, which is applied to Figure 1 The test control device in the example is used to illustrate, including the following steps 702 to 706. Among them:

[0115] S702: Receive a test instruction.

[0116] The test instruction may be input into the test control device by a user, and the test instruction is a chip test instruction.

[0117] S704: Based on the test instruction, call the docking device access method in any one of the above embodiments to access the docking device.

[0118] Specifically, the docking device access method can be found above and will not be described in detail here.

[0119] S706: Obtain a test result based on the access result of the docking device.

[0120] In this embodiment, communication can be performed with any docking device type to implement chip testing without changing the code of the service function.

[0121] For ease of understanding, combined Figure 8 As shown, Figure 8 The present invention is a flowchart of a docking device access method in another embodiment. In this embodiment, the docking device service is started, and then the docking device adapter is initialized. The docking device adapter initialization step includes: reading a condition definition file, determining the docking device type based on the condition definition file, and then traversing the device control library directory of the docking device based on the docking device type to determine the device control library of the docking device, and instantiating the abstract interface of the abstract interface layer through the device control library of the docking device.

[0122] Later in the testing process, the API is called through the test machine business code logic to access the docking device adapter to determine the abstract interface corresponding to the API and obtain the docking device interface corresponding to the abstract interface.

[0123] Subsequently, a communication protocol corresponding to the device control library of the docking device is selected, and the communication protocol is called through the docking device interface to perform data communication with the docking device, including sending data to the docking device and receiving data returned by the docking device.

[0124] Optionally, a corresponding test event can be generated based on the data returned by the docking device, and the test event and the current system state can be matched with the state definition information in the state definition file. For example, if the test event matches the test event in the state definition file, and the current system state is the starting state of the successfully matched test event, the corresponding event handler can be executed to complete the test and save the test data generated in the process.

[0125] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0126] Based on the same inventive concept, the embodiment of the present application also provides a docking device access apparatus for implementing the docking device access method involved above. The implementation scheme for solving the problem provided by the apparatus is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more docking device access apparatus embodiments provided below can refer to the limitations on the docking device access method above, and will not be repeated here.

[0127] In an exemplary embodiment, Fig. 9 As shown, a docking device access device is provided, including: a receiving module 901, an interface acquisition module 902 and a processing module 903, wherein:

[0128] The receiving module 901 is used to receive a connection device access request and determine an abstract interface corresponding to the access request;

[0129] The interface acquisition module 902 is used to acquire the docking device interface corresponding to the abstract interface; the correspondence between the abstract interface and the docking device interface is loaded during initialization;

[0130] The processing module 903 is used to process the docking device access request based on the docking device interface.

[0131] In one of the optional embodiments, the device also includes an initialization module for obtaining docking device configuration information; determining a device control library corresponding to the docking device based on the docking device configuration information; and loading the device control library corresponding to the docking device to establish a correspondence between the instantiated interface and the abstract interface in the device control library.

[0132] In one of the optional embodiments, the initialization module is specifically used to traverse the stored device control library identifiers based on the identifier of the device control library in the docking device configuration information; when the corresponding device control library identifier is queried, the device control library corresponding to the queried device control library identifier is loaded.

[0133] In one of the optional embodiments, the device also includes a new module, which is used to obtain the identifier of the device control library of the newly added docking device when a new docking device is added; when the identifier of the device control library of the newly added docking device is the same as the identifier of the device control library of the existing docking device, output the information of the new addition failure; when the identifier of the device control library of the newly added docking device is different from the identifier of the device control library of the existing docking device, establish the correspondence between each docking device interface and the abstract interface in the device control library of the newly added docking device; compile each docking device interface in the device control library; and store the correspondence between the device control library, the device control library identifier, the docking device interface and the abstract interface in an associated manner.

[0134] In one of the optional embodiments, the processing module 903 is specifically used to determine a communication protocol corresponding to a device control library of a docking device; and to process a docking device access request by calling the corresponding communication protocol through a docking device interface.

[0135] In one of the optional embodiments, the new module is also specifically used to obtain the communication protocol corresponding to the newly added docking device when a new docking device is added; if the communication protocol is not stored, the communication protocol is stored, and a correspondence between the device control library of the newly added docking device and the communication protocol is established; if the communication protocol has been stored, a correspondence between the device control library of the newly added docking device and the communication protocol is established.

[0136] Each module in the above-mentioned docking device access device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0137] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a docking device access method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

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

[0139] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0140] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0141] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0142] Those of ordinary skill 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, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the 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. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited thereto.

[0143] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0144] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations 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 shall be subject to the attached claims.

Claims

1. A method for accessing a docking device, characterized in that: The docking device includes a sorting machine and / or a probe station, and the access method includes: Receiving a docking device access request and determining an abstract interface corresponding to the access request; Acquire the docking device interface corresponding to the abstract interface; the corresponding relationship between the abstract interface and the docking device interface is loaded during initialization; The docking device access request is processed based on the docking device interface.

2. The method according to claim 1, characterized in that The method further comprises: Get the configuration information of the docking device; Determine a device control library corresponding to the docking device based on the docking device configuration information; A device control library corresponding to the docking device is loaded to establish a corresponding relationship between the instantiated interface in the device control library and the abstract interface.

3. The method according to claim 2, characterized in that The determining the device control library corresponding to the docking device based on the docking device configuration information includes: Based on the identifier of the device control library in the interconnection device configuration information, traverse the stored device control library identifiers; When the corresponding device control library identifier is found, the device control library corresponding to the found device control library identifier is loaded.

4. The method according to claim 1, characterized in that The method further comprises: When a new docking device is added, obtaining an identifier of a device control library of the newly added docking device; When the identifier of the device control library of the newly added docking device is the same as the identifier of the device control library of the existing docking device, outputting information that the addition failed; When the identifier of the device control library of the newly added docking device is different from the identifier of the device control library of the existing docking device, establishing a correspondence between each docking device interface in the device control library of the newly added docking device and the abstract interface; Compiling each docking device interface in the device control library; The corresponding relationship between the device control library, the device control library identifier, the docking device interface and the abstract interface is stored in association.

5. The method according to any one of claims 1 to 4, characterized in that: The processing of the docking device access request based on the docking device interface includes: Determining a communication protocol corresponding to a device control library of the docking device; The corresponding communication protocol is called through the docking device interface to process the docking device access request.

6. The method according to claim 5, characterized in that Before determining the communication protocol corresponding to the device control library of the docking device, the method further includes: When a new docking device is added, obtaining a communication protocol corresponding to the newly added docking device; If the communication protocol is not stored, storing the communication protocol, and establishing a corresponding relationship between the newly added device control library of the docking device and the communication protocol; In the case where the communication protocol has been stored, a corresponding relationship between the newly added device control library of the docking device and the communication protocol is established.

7. A testing method, characterized in that: The method comprises: Receive test instructions; Based on the test instruction, calling the docking device access method according to any one of claims 1 to 6 to access the docking device; A test result is obtained based on the access result of the docking device.

8. A test control device, characterized in that: The test control equipment: A docking device service module, used for receiving a docking device access request; A docking device adapter, used to execute the docking device access method according to any one of claims 1 to 6 to access the docking device.

9. A testing machine, characterized in that: The testing machine comprises: The test control device as claimed in claim 8; Test head; A test head control device, the test head control device is connected to the test control device and the test head respectively; the test head control device is used to receive a test request sent by the test control device, and drive the test head to perform a test based on the test request.

10. The testing machine according to claim 9, characterized in that: The test head control device comprises: A test engine module, used for receiving a test request sent by the test control device; A test code storage module, used for storing test codes; Driver service module; The test host is used to execute the test code stored in the test code storage module after receiving the test request forwarded by the test engine module, so as to call the drive service module to drive the test head to perform the test.

11. A docking device access device, characterized in that: The docking equipment includes a sorting machine and / or a probe station, and the device includes: A receiving module, used to receive a docking device access request and determine an abstract interface corresponding to the access request; An interface acquisition module, used to acquire the docking device interface corresponding to the abstract interface; the correspondence between the abstract interface and the docking device interface is loaded during initialization; A processing module is used to process the docking device access request based on the docking device interface.

12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 or 7 are implemented.