Equipment scheduling method, electronic equipment and computer readable medium
By managing the usage status and timer management of passive test equipment, ensuring that the active test equipment only uses available equipment, it solves the inaccuracy of test results and resource waste caused by device sharing in automated test systems, and improves the accuracy of tests and the accuracy of tests and Resource utilization rate.
Patent Information
- Application Number
- CN202411414658.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-01-14
AI Technical Summary
When multiple types of test equipment in an automated test system cooperate, the accuracy of the test results is not ideal, mainly because the passive test equipment is shared and used by multiple active test equipment, resulting in waste of resources and interference with the test process.
By managing the device to schedule the usage status of passive test equipment, ensure that each active test equipment can only use the currently available passive test equipment, avoid multiple active test equipment using the same device at the same time, and manage the usage time of the device through a timer, and release the unavailable Equipment resources.
It effectively improves the accuracy of automated test results, avoids resource waste and interference from testing process, and improves resource utilization and testing efficiency.
Smart Images

Figure CN119310434A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated testing technology, and in particular, to a device scheduling method, an electronic device, and a computer-readable medium. Background Art
[0002] Automated testing is a process in which machines perform test actions instead of human-driven test actions. In some scenarios, multiple types of test equipment in the automated test system need to interact with each other to collaborate to complete the test. For example, active test equipment (such as ATE (Automatic Test Equipment)) uses some passive test equipment (such as test object equipment, storage devices that are or are not test object equipment, etc.) to interact with them to collaborate to complete the test.
[0003] However, in this scenario where multiple types of test equipment need to interact with each other to collaboratively complete the test, the accuracy of automated test results is often less than ideal. Therefore, a new device scheduling method is urgently needed to improve the accuracy of automated test results. Summary of the invention
[0004] The present application aims to solve one of the technical problems in the related art to a certain extent. To this end, the present application provides a device scheduling method, an electronic device and a computer-readable medium.
[0005] As a first aspect of the present application, a device scheduling method is provided for managing devices in an automated test system, wherein the method comprises:
[0006] Receive a device use request sent by an active test device, and obtain a device identification of a passive test device carried therein;
[0007] Determine the current use status of the passive test device according to the locally maintained use status information of the passive test device; wherein the use status information of the passive test device includes the correspondence between the device identification of the active test device and the device identification of the passive test device;
[0008] When the current use status of the passive test device is usable, a use request approval message is sent to the active test device, and the use status information of the passive test device is updated.
[0009] Optionally, the corresponding relationship further includes a timer, and the determining the current use state of the passive test device according to the locally maintained use state information of the passive test device includes:
[0010] When there is a correspondence between the device identification of the passive test device and the timer duration in the correspondence exceeds a preset time threshold, the correspondence is deleted from the passive test device usage status information, and the current usage status of the passive test device is determined to be usable.
[0011] Optionally, the updating of the passive test device usage status information includes:
[0012] The corresponding relationship between the device identification of the active test device, the device identification of the passive test device, and the timer is added to the passive test device usage status information, and the timer is enabled to start timing.
[0013] Optionally, the determining the current use status of the passive test device according to the locally maintained use status information of the passive test device further includes:
[0014] When there is a correspondence between the device identification of the passive test device and the timing duration of the timer in the correspondence does not exceed the preset duration threshold, the current usage status of the passive test device is determined to be unusable.
[0015] Optionally, determining the current use status of the passive test device according to the locally maintained use status information of the passive test device includes:
[0016] When there is no corresponding relationship including the device identification of the passive test device in the passive test device usage status information, the current usage status of the passive test device is determined to be usable.
[0017] Optionally, the method further comprises:
[0018] When the current use status of the passive test device is unusable, a reselection notification message is sent to the active test device, so that the active test device resends the device use request.
[0019] Optionally, after sending a use request approval message to the active test device and updating the use status information of the passive test device, the method further includes:
[0020] receiving a device release request sent by an active test device and carrying a device identification of the passive test device;
[0021] The correspondence between the device identification of the active test device and the device identification of the passive test device is deleted from the passive test device usage status information.
[0022] As a second aspect of the present application, a device scheduling method is provided for active test equipment in an automated test system, wherein the method comprises:
[0023] Sending a device use request carrying a device identification of a passive test device to a management device in the automated test system;
[0024] Receive a use request approval message sent by the management device; wherein the use request approval message is sent by the management device when the management device determines that the current use status of the passive test device is usable according to the use status information of the passive test device maintained locally;
[0025] Sending a device usage instruction to the passive test device.
[0026] As a third aspect of the present application, an electronic device is provided, wherein the electronic device includes:
[0027] one or more processors;
[0028] A memory having one or more computer programs stored thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement the device scheduling method according to the first aspect or the second aspect of the present application.
[0029] As a fourth aspect of the present application, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the device scheduling method according to the first aspect or the second aspect of the present application is implemented.
[0030] In the device scheduling method provided in the embodiment of the present application, when it is necessary to automatically execute the test, the active test device no longer directly sends the device usage instruction to the passive test device, but first generates a device usage request according to the device identification of the passive test device to be used, and sends the device usage request to the management device, requesting the management device to schedule the usage of the passive test device. The management device only passes the device usage request of the active test device and updates the usage status information of the passive test device when it determines that the passive test device requested to be used by the active test device is currently available based on the usage status information of the passive test device maintained locally. In this way, the active test device can only use the currently available passive test device and cannot use the currently unavailable passive test device, thereby avoiding multiple active test devices using the same passive test device at the same time, and thus avoiding interference between the test processes of different active test devices, ultimately effectively improving the accuracy of the automated test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present application is further described below in conjunction with the accompanying drawings:
[0032] Figure 1 It is a flowchart of an implementation method of a device scheduling method executed by a management device side provided in an embodiment of the present application;
[0033] Figure 2 is a flowchart of an implementation method of determining the current use status of a passive test device provided in an embodiment of the present application;
[0034] Figure 3 It is a flowchart of an implementation method of updating the usage status information of a passive test device provided in an embodiment of the present application;
[0035] Figure 4 is a flow chart of another implementation method of determining the current use status of a passive test device provided in an embodiment of the present application;
[0036] Figure 5 It is a flowchart of another implementation method of determining the current use status of a passive test device provided in an embodiment of the present application;
[0037] Figure 6 It is a flowchart of another implementation of the device scheduling method executed by the management device side provided in an embodiment of the present application;
[0038] Figure 7 It is a flowchart of another implementation of the device scheduling method executed by the management device side provided in the embodiment of the present application;
[0039] Figure 8 is a global flow chart of the device scheduling method provided in the embodiment of the present application;
[0040] Fig. 9 It is a flowchart of an implementation method of a device scheduling method performed by an active test device side provided in an embodiment of the present application;
[0041] Fig.10 It is a module diagram of an implementation of an electronic device provided in an embodiment of the present application;
[0042] Fig.11 It is a schematic diagram of a computer-readable medium provided in an embodiment of the present application.
[0043] Description of Reference Numerals
[0044] 101: Processor 102: Memory
[0045] 103: I / O interface 104: bus DETAILED DESCRIPTION
[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments based on the embodiments are intended to be used to explain the present application and cannot be understood as limiting the present application.
[0047] References to "one embodiment" or "an example" or "an example" in this specification mean that a particular feature, structure, or characteristic described in conjunction with the embodiment itself may be included in at least one embodiment disclosed in the present application. The appearance of the phrase "in one embodiment" in various places in the specification does not necessarily refer to the same embodiment.
[0048] In scenarios where multiple types of test equipment need to interact with each other to collaboratively complete the test, the accuracy of automated test results is often less than ideal. In this regard, the applicant of this application proposes that the reason for the low accuracy of automated test results is that in automated test systems, in order to avoid resource waste and improve resource utilization, passive test equipment is usually not authorized to certain users of active test equipment for exclusive use, but all active test equipment share some or all passive test equipment, so that multiple users often use the same passive test equipment at the same time. Regardless of whether the test object device or the storage device that is or is not the test object device is used, the test processes of different active test devices will interfere with each other, ultimately affecting the accuracy of automated test results.
[0049] The applicant of the present application further proposes that by optimizing the scheduling of active test equipment and passive test equipment in the automated test system and locking a certain available passive test equipment to be used only by a certain active test equipment, the accuracy of the automated test results can be effectively improved.
[0050] As a first aspect of an embodiment of the present application, a device scheduling method is provided for managing devices in an automated test system, such as Figure 1 As shown, the method may include the following steps:
[0051] In step S110, a device use request sent by an active test device is received, and a device identification of a passive test device carried therein is obtained;
[0052] In step S120, the current use state of the passive test device is determined according to the locally maintained use state information of the passive test device; wherein the use state information of the passive test device includes the correspondence between the device identification of the active test device and the device identification of the passive test device;
[0053] In step S130, when the current usage status of the passive test device is usable, a usage request approval message is sent to the active test device, and the usage status information of the passive test device is updated.
[0054] Among them, the automated test system may include active test equipment, passive test equipment and management equipment. The active test equipment is a device used to automatically execute the test process, such as ATE (Automatic Test Equipment). The passive test equipment is a device used to respond to the device usage instructions sent by the active test equipment and interact with it, such as the test object device, a storage device that is or is not a test object device, etc. The management device is a device used to uniformly schedule the active test equipment and the passive test equipment.
[0055] Among them, the embodiment of the present application does not specifically limit the form of the passive test device usage status information, for example, it can be in many forms such as tables, documents, etc. And it can be understood that when the management device approves the device use request of a certain active test device, it is necessary to update the passive test device usage status information, that is, to add the corresponding relationship between the device identification of the active test device and the device identification of the passive test device allowed to be used in the locally maintained passive test device usage status information, so as to achieve the locking of the use permission of the passive test device.
[0056] In the embodiment of the present application, after the active test device receives the use request approval message sent by the management device, it can send a device use instruction to the passive test device it requests to use, so as to start using the passive test device.
[0057] In the device scheduling method provided in the embodiment of the present application, when it is necessary to automatically execute the test, the active test device no longer directly sends the device usage instruction to the passive test device, but first generates a device usage request according to the device identification of the passive test device to be used, and sends the device usage request to the management device, requesting the management device to schedule the usage of the passive test device. The management device only passes the device usage request of the active test device and updates the usage status information of the passive test device when it determines that the passive test device requested to be used by the active test device is currently available based on the usage status information of the passive test device maintained locally. In this way, the active test device can only use the currently available passive test device and cannot use the currently unavailable passive test device, thereby avoiding multiple active test devices using the same passive test device at the same time, and thus avoiding interference between the test processes of different active test devices, ultimately effectively improving the accuracy of the automated test results.
[0058] The applicant of the present application further proposes that the duration of use of a passive test device by an active test device can be timed, and when the usage duration exceeds a threshold, the use permission of the passive test device can be released, thereby preventing the passive test device from being occupied by an active test device for a long time, avoiding waste of resources, and improving resource utilization. Accordingly, in some embodiments, the correspondence also includes a timer, and the current usage status of the passive test device (i.e., the status involved in step S120) is determined based on the usage status information of the passive test device maintained locally, such as Figure 2 As shown, the following steps may be included:
[0059] In step S121, when there is a correspondence between the device identifier of the passive test device and the usage status information of the passive test device, and the timing duration of the timer in the correspondence exceeds a preset duration threshold, the correspondence is deleted from the usage status information of the passive test device, and the current usage status of the passive test device is determined to be usable.
[0060] Among them, there is a corresponding relationship including the device identification of the passive test device in the usage status information of the passive test device, indicating that the management device has previously authorized the use of the passive test device to a certain active test device, but the timing duration of the timer in the corresponding relationship exceeds the preset duration threshold, indicating that the usage duration of the passive test device has timed out. Therefore, at this time, by deleting the corresponding relationship from the usage status information of the passive test device, the usage permission of the passive test device is released to avoid resource waste and improve resource utilization.
[0061] Accordingly, in some embodiments, the passive test device usage status information is updated (ie, as involved in step S130), such as Figure 3 As shown, the following steps may be included:
[0062] In step S131, the correspondence between the device identification of the active test device, the device identification of the passive test device, and the timer is added to the passive test device usage status information, and the timer is enabled to start timing.
[0063] As described above, there is a corresponding relationship including the device identification of the passive test device in the usage status information of the passive test device, indicating that the management device has previously authorized the use of the passive test device to a certain active test device. When the timing duration of the timer in the corresponding relationship does not exceed the preset duration threshold, it means that the usage duration of the passive test device has not yet timed out, so the usage permission of the passive test device is retained at this time to avoid multiple active test devices from using the passive test device at the same time, and to ensure that the active test device that currently has the usage permission can use the passive test device normally. Correspondingly, in some embodiments, the current usage status of the passive test device (i.e., involved in step S120) is determined based on the locally maintained passive test device usage status information, such as Figure 4 As shown, the following steps may also be included:
[0064] In step S122, when there is a correspondence between the passive test device usage status information and the device identification of the passive test device, and the timing duration of the timer in the correspondence does not exceed the preset duration threshold, the current usage status of the passive test device is determined to be unusable.
[0065] When the passive test device usage status information does not contain a corresponding relationship including the device identification of the passive test device, it means that the management device has not authorized the passive test device to be used by a certain active test device. Accordingly, in some embodiments, the current usage status of the passive test device (i.e., the status involved in step S120) is determined based on the locally maintained passive test device usage status information, such as Figure 5 As shown, the following steps may be included:
[0066] In step S123, when there is no corresponding relationship including the device identification of the passive test device in the passive test device usage status information, the current usage status of the passive test device is determined to be usable.
[0067] When it is determined that the current use status of the passive test device is unusable, the active test device can be notified to reselect the passive test device requested for use, so as to avoid affecting the test progress of the active test device and further improve the test efficiency. Figure 6 As shown, the method may further include the following steps:
[0068] In step S130', when the current use status of the passive test device is unusable, a reselection notification message is sent to the active test device, so that the active test device resends the device use request.
[0069] After receiving the reselection notification message sent by the management device, the active test device can regenerate a device use request according to the device identification of other passive test devices to be used and send it to the management device, and the management device will execute the device scheduling method again.
[0070] After the active test device is used, it can further request the management device to release the use permission of the passive test device to avoid the passive test device being unable to be used by other active test devices, further improving resource utilization and scheduling efficiency. Figure 7 As shown, the method may further include the following steps:
[0071] In step S140, a device release request carrying the device identification of the passive test device is received from the active test device;
[0072] In step S150, the correspondence between the device identification of the active test device and the device identification of the passive test device is deleted from the passive test device usage status information.
[0073] The following reference Figure 8 As shown, a brief description of the process of the device scheduling method provided in this application is given. Figure 8 As shown, the client, i.e., the active test device, sends a device use request carrying the device identification of the passive test device to the management device by inputting the device to be used. The management device determines whether the passive test device requested by the active test device is being used based on the passive test device use status information maintained locally. If it is not being used, the current use status of the passive test device is determined to be usable. If the management device determines that the passive test device requested by the active test device is being used, it further determines whether the use time of the passive test device has timed out based on the passive test device use status information maintained locally. If it has timed out, the passive test device is released by deleting the corresponding correspondence in the passive test device use status information, and the current use status of the passive test device is determined to be usable.
[0074] After the current use status of the passive test device is determined to be usable, a use request approval message is sent to the active test device, and the use authority of the passive test device is locked by updating the use status information of the passive test device.
[0075] After the passive test device is locked, the active test device starts to use the passive test device and sends a device release request to the management device after use. The management device releases the use authority of the passive test device by deleting the corresponding correspondence in the passive test device use status information.
[0076] When it is determined that the usage time of the passive test device has not timed out, the management device sends a reselection notification message to the active test device, informing the active test device to switch to another passive test device for use.
[0077] As a second aspect of the embodiment of the present application, a device scheduling method is also provided for active test devices in an automated test system, such as Fig. 9 As shown, the method may include the following steps:
[0078] In step S210, a device use request carrying a device identification of a passive test device is sent to a management device in the automated test system;
[0079] In step S220, a use request approval message sent by the management device is received; wherein the use request approval message is sent by the management device when the management device determines that the current use status of the passive test device is usable according to the use status information of the passive test device maintained locally;
[0080] In step S230, a device use instruction is sent to the passive test device.
[0081] Among them, the device scheduling method executed by the active test device side has been explained in detail above when explaining the device scheduling method executed by the management device side, so it will not be repeated here.
[0082] As a third aspect of the embodiments of the present application, an electronic device is provided, wherein: Fig.10 As shown, the electronic device includes:
[0083] One or more processors 101;
[0084] The memory 102 stores one or more computer programs. When the one or more computer programs are executed by the one or more processors 101, the one or more processors 101 implement the device scheduling method provided by the first aspect or the second aspect of the embodiment of the present application.
[0085] The electronic device may further include one or more I / O interfaces 103 connected between the processor 101 and the memory 102 and configured to implement information interaction between the processor 101 and the memory 102 .
[0086] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) is connected between the processor and the memory, and can realize information exchange between the processor and the memory, including but not limited to a data bus (Bus), etc.
[0087] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.
[0088] As a fourth aspect of the embodiment of the present application, Fig.11 As shown, a computer-readable medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, the device scheduling method provided by the first aspect or the second aspect of the embodiment of the present application is implemented.
[0089] It can be understood by a person of ordinary skill in the art that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program. Accordingly, the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can implement the method of any of the above-mentioned embodiments when executed. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the embodiments of the present application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0090] The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Those skilled in the art should understand that the present application includes but is not limited to the contents described in the drawings and the above specific embodiments. Any modification that does not deviate from the functional and structural principles of the present application will be included in the scope of the claims.
Claims
1. A device scheduling method for managing devices in an automated test system, characterized in that: The method comprises: Receive a device use request sent by an active test device, and obtain a device identification of a passive test device carried therein; Determine the current use status of the passive test device according to the locally maintained use status information of the passive test device; wherein the use status information of the passive test device includes the correspondence between the device identification of the active test device and the device identification of the passive test device; When the current usage status of the passive test device is usable, a usage request approval message is sent to the active test device, and the usage status information of the passive test device is updated.
2. The method according to claim 1, characterized in that The corresponding relationship also includes a timer, and the current use state of the passive test device is determined according to the use state information of the passive test device maintained locally, including: When there is a correspondence between the device identification of the passive test device and the timer duration in the correspondence exceeds a preset time threshold, the correspondence is deleted from the passive test device usage status information, and the current usage status of the passive test device is determined to be usable.
3. The method according to claim 2, characterized in that The updating of the passive test device usage status information comprises: The corresponding relationship between the device identification of the active test device, the device identification of the passive test device, and the timer is added to the passive test device usage status information, and the timer is enabled to start timing.
4. The method according to claim 2, characterized in that: The determining of the current use status of the passive test device according to the locally maintained use status information of the passive test device further includes: When there is a correspondence between the device identification of the passive test device and the timing duration of the timer in the correspondence does not exceed the preset duration threshold, the current usage status of the passive test device is determined to be unusable.
5. The method according to claim 1, characterized in that The step of determining the current use state of the passive test device according to the locally maintained use state information of the passive test device includes: When there is no corresponding relationship including the device identification of the passive test device in the passive test device usage status information, the current usage status of the passive test device is determined to be usable.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the current use status of the passive test device is unusable, a reselection notification message is sent to the active test device, so that the active test device resends the device use request.
7. The method according to any one of claims 1 to 5, characterized in that After sending the use request approval message to the active test device and updating the use status information of the passive test device, the method further includes: receiving a device release request sent by an active test device and carrying a device identification of the passive test device; The correspondence between the device identification of the active test device and the device identification of the passive test device is deleted from the passive test device usage status information.
8. A device scheduling method for active test equipment in an automated test system, characterized in that: The method comprises: Sending a device use request carrying a device identification of a passive test device to a management device in the automated test system; Receive a use request approval message sent by the management device; wherein the use request approval message is sent by the management device when the management device determines that the current use status of the passive test device is usable according to the use status information of the passive test device maintained locally; Sending a device usage instruction to the passive test device.
9. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory having one or more computer programs stored thereon, wherein when the one or more computer programs are executed by the one or more processors, the one or more processors implement the device scheduling method according to any one of claims 1-8.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device scheduling method according to any one of claims 1 to 8 is implemented.