Vehicle scheduling method, device, readable storage medium and electronic device
In the automated production test of solid-state drives, the available ports of the vehicle are determined in the preset order and the vehicle to be dispatched and its ports to be used are determined based on the accumulated number of available ports, the problem of poor vehicle balanced use is solved, and more efficient production efficiency and balanced use strategy is achieved.
Patent Information
- Application Number
- CN202111055972.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-09
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2041-09-09
AI Technical Summary
During the automated production testing of solid-state drives, the existing vehicle scheduling methods cannot effectively achieve the balanced use of SSD connectors, resulting in poor balanced effect of the vehicle, increasing the problems of maintenance costs and low production efficiency.
By receiving the vehicle scheduling request, the available ports of each vehicle are determined in a preset order, and the accumulated number of available ports is obtained based on the available ports of each vehicle, and the vehicle to be dispatched and its ports to be used are determined based on the number of hard disks to be measured and the accumulated number of available ports.
It improves the balanced use effect of the vehicle, avoids the rescheduling situation due to the unavailability of some ports, improves production efficiency, and reduces the warehouse location cost and shipping time by determining the balanced use strategy of the vehicle in advance.
Smart Images

Figure CN113935578B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of solid state hard disk technology, and in particular to a vehicle scheduling method, device, readable storage medium and electronic device. Background Art
[0002] During the fully automated production test of SSD (Solid State Disk), the SSD is plugged into the carrier port (SSD connector) and flows with the carrier through production test procedures such as card opening, RDT (Reliability Demonstration Testing) aging, and BIT (Burn In Test). There are hundreds of carriers on an automated production line, and each carrier generally has 8 to 32 carrier ports.
[0003] Since the SSD connector on the carrier has a limited number of plug-in and unplug times and is a consumable, in order to fully utilize the life of the SSD connector, reduce the replacement frequency and thus save maintenance costs, a balanced SSD connector usage strategy will be adopted. The principle of this strategy is to distribute the SSD plug-in and unplug times to each SSD connector as evenly as possible. When loading (plugging in SSDs), the selection of which carrier in a healthy state and the number of carriers to be allocated to the loading position directly affect the effect of the balanced strategy.
[0004] In the process of dispatching the carrier to the loading position, the existing solution has the following shortcomings:
[0005] 1. Before scheduling the carrier, the device does not know whether the number of SSDs is an integer multiple of the number of carrier ports. Even if the number of SSDs is an integer multiple of the number of carrier ports, some ports in one or more carriers may be unavailable. Therefore, it is impossible to determine the port balancing strategy of the last carrier in advance based on the number of produced SSDs and the number of remaining available ports on the carrier, and thus it is impossible to achieve the optimal balancing effect.
[0006] 2. The vehicles are retrieved from a separate vehicle warehouse, which has high storage costs and occupies a large area.
[0007] 3. The storage locations of carriers in the warehouse are relatively random. When loading materials, the optimal carrier may be stored in a remote location in the warehouse, causing the stacker to transport the carrier over a long distance and take a long time, which leads to a decrease in loading efficiency and affects production capacity. Summary of the invention
[0008] The technical problem to be solved by the present invention is to provide a vehicle scheduling method, device, readable storage medium and electronic device, which can improve the balanced use effect of vehicles.
[0009] In order to solve the above technical problems, a technical solution adopted by the present invention is:
[0010] A vehicle scheduling method, comprising:
[0011] receiving a carrier scheduling request, wherein the carrier scheduling request includes the number of hard disks to be tested;
[0012] Determine the available ports for each vehicle in a predetermined order;
[0013] Obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle;
[0014] The carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled are determined based on the number of hard disks to be tested and the accumulated number of available ports of each carrier.
[0015] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0016] A vehicle dispatching device, comprising:
[0017] A request receiving module, used to receive a vehicle scheduling request, wherein the vehicle scheduling request includes the number of hard disks to be tested;
[0018] A first data acquisition module, used to determine the available ports of each vehicle according to a preset order;
[0019] A second data acquisition module, configured to obtain the accumulated number of available ports of each vehicle according to the available ports of each vehicle;
[0020] The carrier scheduling module is used to determine the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier.
[0021] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0022] A computer-readable storage medium stores a computer program, which implements each step of the above-mentioned vehicle scheduling method when executed by a processor.
[0023] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0024] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned vehicle scheduling method is implemented.
[0025] The beneficial effects of the present invention are as follows: the available ports of each carrier are determined in a preset order, and then the cumulative number of available ports is obtained according to the available ports of each carrier, and the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled are determined based on the number of hard disks to be tested in the carrier scheduling request and the cumulative number of available ports of each carrier, and the cumulative number of available ports of each carrier is obtained according to the available ports obtained for each carrier, so as to avoid the situation that after the carrier is scheduled to the loading position, the number of carriers cannot meet the number of hard disks to be tested due to the unavailability of some ports, and rescheduling is required, thereby improving production efficiency, and determining the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled by the number of hard disks to be tested and the cumulative number of available ports, and being able to determine the optimal carrier usage balancing strategy in advance according to the number of hard disks to be tested and the cumulative number of available ports, thereby improving the balanced usage effect of the carriers. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A flowchart of the steps of a vehicle scheduling method according to an embodiment of the present invention;
[0027] Figure 2 It is a structural schematic diagram of a vehicle scheduling device according to an embodiment of the present invention;
[0028] Figure 3 The figure is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0030] Please refer to Figure 1 , an embodiment of the present invention provides a vehicle scheduling method, comprising:
[0031] receiving a carrier scheduling request, wherein the carrier scheduling request includes the number of hard disks to be tested;
[0032] Determine the available ports for each vehicle in a predetermined order;
[0033] Obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle;
[0034] The carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled are determined based on the number of hard disks to be tested and the accumulated number of available ports of each carrier.
[0035] From the above description, it can be seen that the beneficial effects of the present invention are: determining the available ports of each carrier in a preset order, and then obtaining the cumulative number of available ports according to the available ports of each carrier, determining the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled based on the number of hard disks to be tested in the carrier scheduling request and the cumulative number of available ports of each carrier, and obtaining the cumulative number of available ports of each carrier according to the obtained available ports of each carrier, thereby avoiding the situation where, after the carrier is scheduled to the loading position, the number of carriers cannot meet the number of hard disks to be tested due to the unavailability of some ports, and rescheduling is required, thereby improving production efficiency, and determining the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled by the number of hard disks to be tested and the cumulative number of available ports, and being able to determine the optimal carrier usage balancing strategy in advance according to the number of hard disks to be tested and the cumulative number of available ports, thereby improving the balanced usage effect of the carriers.
[0036] Further, determining the available ports of each vehicle in a preset order includes:
[0037] Acquire a port status mapping table of each carrier according to the serial number of each carrier in a preset order, wherein the port status mapping table includes unshielded ports;
[0038] Determining an available port for each vehicle based on the unshielded port;
[0039] The step of obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle comprises:
[0040] Determining the number of available ports of a vehicle according to the available ports of the vehicle;
[0041] Determine, according to the number of available ports of the vehicle, a previous vehicle corresponding to the vehicle and the accumulated number of available ports of the previous vehicle;
[0042] The cumulative number of available ports of the carrier is obtained by adding the number of available ports of the previous carrier to the cumulative number of available ports of the previous carrier, until the cumulative number of available ports of each carrier is calculated.
[0043] From the above description, it can be seen that by setting up a port status mapping table and using the port status mapping table to obtain the port status of each carrier, the unshielded ports in all carriers can be known in advance, which facilitates the determination of the cumulative number of available ports of each carrier based on the number of available ports, avoiding the situation where the port to be used is found to have been blocked and cannot be used after determining the port to be used.
[0044] Furthermore, before determining the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier, the method includes:
[0045] Obtaining a port status mapping table for each carrier, wherein the port status mapping table includes port usage data;
[0046] The determining of the carrier to be scheduled and the port to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier comprises:
[0047] Determining the carrier to be scheduled according to the number of hard disks to be tested and the accumulated number of available ports of each carrier in the preset order;
[0048] Determine the last vehicle to be dispatched among the vehicles to be dispatched as the last vehicle to be dispatched;
[0049] Determine whether the accumulated number of available ports of the last carrier to be scheduled is equal to the number of hard disks to be tested. If so, determine the available ports corresponding to all carriers to be scheduled as ports to be used. If not, determine the available ports corresponding to carriers to be scheduled except the last carrier to be scheduled as ports to be used, and determine the port to be used of the last carrier to be scheduled based on the port usage data.
[0050] From the above description, it can be seen that when the cumulative number of available ports of the last carrier to be scheduled is equal to the number of hard disks to be tested, it means that each available port of each carrier to be scheduled will be used, and the available ports of all carriers to be scheduled can be directly determined as ports to be used. When the cumulative number of available ports is inconsistent with the number of hard disks to be tested, it means that the last carrier to be scheduled, that is, the last carrier to be scheduled, needs to be plugged with the last hard disk to be tested, then the available ports corresponding to the carriers to be scheduled except the last carrier to be scheduled are determined as ports to be used, and the ports to be used of the last carrier to be scheduled are determined according to the port usage data, so that different usage balancing strategies can be adopted according to different situations, and the port balanced usage strategy of the last carrier can be determined in advance to ensure that the usage of each port on the last carrier to be scheduled is balanced, thereby improving the balanced usage effect of the carrier.
[0051] Further, before determining the port to be used of the last vehicle to be scheduled according to the port usage data, the method includes:
[0052] Determine the number of hard disks to be tested according to the number of hard disks to be tested, the accumulated number of available ports of the last carrier to be scheduled, and the number of available ports;
[0053] The step of determining the port to be used of the last vehicle to be scheduled according to the port usage data comprises:
[0054] The port to be used of the last carrier to be scheduled is determined according to the number of hard disks to be tested and the port usage data.
[0055] From the above description, it can be seen that the number of hard disks to be tested is determined according to the number of hard disks to be tested, the accumulated number of available ports of the last carrier to be scheduled, and the number of available ports. The ports to be used of the last carrier to be scheduled are determined according to the number of hard disks to be tested and the port usage data. This can simply and effectively determine the ports to be used of the last carrier to be scheduled.
[0056] Further, the port usage data includes the number of times the port corresponding to the unshielded port has been plugged in and out and the port plug-in and plug-out life;
[0057] The method of determining the port to be used of the last carrier to be scheduled according to the number of hard disks to be tested and the port usage data comprises:
[0058] Determine the ratio of the number of times the port has been plugged in and out to the plug-in and plug-out life of the port for each available port of the last vehicle to be scheduled, and obtain multiple ratios;
[0059] Sorting the multiple ratios in ascending order to obtain sorted ratios;
[0060] Selecting a target ratio that is consistent with the number of hard disks to be tested according to the sorted ratio sequence;
[0061] The available port corresponding to the target ratio is determined as the port to be used by the last vehicle to be scheduled.
[0062] From the above description, it can be seen that when determining the balanced use strategy of the last vehicle to be scheduled, the ratio of the number of times the port has been plugged in and out to the plug-in life of the port for each available port corresponding to the last vehicle to be scheduled is determined, and multiple ratios are sorted in order from small to large. According to the sorted ratio order, a target ratio that is consistent with the number of hard disks to be tested is selected, and the corresponding available port is determined as the to-be-used port of the last vehicle to be scheduled. When the ratio of the number of times the port has been plugged in and out to the plug-in life of the port is smaller, it means that the remaining plug-in life of the port is longer. In this case, the port with a long remaining plug-in life in the last vehicle to be scheduled is preferentially determined as the port to be used, thereby achieving balanced use of the vehicle.
[0063] Further, the determining of the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled based on the number of hard disks to be tested and the number of available ports of each carrier comprises:
[0064] The hard disks to be tested corresponding to the number of hard disks to be tested are plugged into the ports to be used of the carrier to be scheduled, and the number of times the ports have been plugged in and out corresponding to the ports to be used of the carrier to be scheduled is updated.
[0065] From the above description, it can be known that when the hard disk to be tested is plugged into the port, the number of port plug-ins and unplugs corresponding to the port is updated, so that the port usage data can be updated in time, so as to facilitate the next use of the number of port plug-ins and unplugs to determine the balanced usage strategy.
[0066] Further, the updating of the number of times the port corresponding to the port to be used of the vehicle to be scheduled has been plugged in and out includes:
[0067] All vehicles are reordered according to preset priorities to obtain reordered vehicles.
[0068] From the above description, it can be seen that after the production of the hard disk to be tested is completed and before the machine is shut down, all carriers are re-sorted according to the preset priority, ensuring that the carrier can be placed in the position closest to the loading position in the warehouse according to the preset priority, shortening the transportation distance of the carrier to be scheduled, reducing the transportation time, and improving the loading efficiency, thereby improving production efficiency.
[0069] Please refer to Figure 2 Another embodiment of the present invention provides a vehicle scheduling device, including:
[0070] A request receiving module, used to receive a vehicle scheduling request, wherein the vehicle scheduling request includes the number of hard disks to be tested;
[0071] A first data acquisition module, used to determine the available ports of each vehicle according to a preset order;
[0072] A second data acquisition module, configured to obtain the accumulated number of available ports of each vehicle according to the available ports of each vehicle;
[0073] The carrier scheduling module is used to determine the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier.
[0074] Another embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements each step in the above-mentioned vehicle scheduling method.
[0075] Please refer to Figure 3 Another embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step of the above-mentioned vehicle scheduling method when executing the computer program.
[0076] The above-mentioned carrier scheduling method, device, readable storage medium and electronic device of the present invention can be applied to any type of SSD (Solid State Drive) automated production test carrier, such as flash memory-based SSD, DRAM (Dynamic Random Access Memory)-based SSD and 3D XPoint-based SSD, which are described below through specific implementation methods:
[0077] Embodiment 1
[0078] Please refer to Figure 1 , a vehicle scheduling method of this embodiment includes:
[0079] S1. Receive a carrier scheduling request, where the carrier scheduling request includes the number of hard disks to be tested;
[0080] The number of hard disks to be tested can be obtained in the following three ways:
[0081] The first method: when the MES system (a production information management system for the execution layer of the manufacturing enterprise workshop) is online, the production work order information corresponding to the vehicle scheduling request is queried in the MES system to obtain the number of SSDs to be tested;
[0082] The second method: When the MES system is not online, the system prompts you to scan the QR code or barcode on the paper work order to obtain the number of SSDs to be tested;
[0083] The third method: When there is no work order, a human-computer interaction interface is provided to manually enter the number of SSDs to be tested;
[0084] S2. Determine the available ports of each vehicle according to a preset order;
[0085] The vehicles are stored in RDT (Reliability Demonstration Testing) / BIT (Burn In Test) locations, replacing independent vehicle warehouses, reducing the area occupied by vehicle warehouses, and lowering vehicle storage costs.
[0086] The preset order is the order of the distance between the carrier and the loading position from small to large;
[0087] Specifically, a port status mapping table of each carrier is obtained according to the serial number of each carrier in a preset order, wherein the port status mapping table includes an unshielded port;
[0088] Determining an available port for each vehicle based on the unshielded port;
[0089] S3, obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle;
[0090] Specifically, the number of available ports of a vehicle is determined according to the available ports of the vehicle;
[0091] Determine, according to the number of available ports of the vehicle, a previous vehicle corresponding to the vehicle and the accumulated number of available ports of the previous vehicle;
[0092] Adding the number of available ports of the vehicle to the accumulated number of available ports of the previous vehicle to obtain the accumulated number of available ports of the vehicle, until the accumulated number of available ports of each vehicle is calculated;
[0093] For example, there are three vehicles, namely vehicle A, vehicle B and vehicle C in the preset order. The number of available ports of vehicle A is 5. Since vehicle A does not have a previous vehicle, the cumulative number of available ports of vehicle A is 5.
[0094] The number of available ports of vehicle B is 10. The number of available ports of vehicle B (10) is added to the cumulative number of available ports of vehicle A (5) to obtain the cumulative number of available ports of vehicle B (15).
[0095] The number of available ports of vehicle C is 7. The number of available ports of vehicle C (7) is added to the cumulative number of available ports of vehicle B (15) to obtain the cumulative number of available ports of vehicle C (22);
[0096] S4. Determine the carriers to be scheduled and the ports to be used corresponding to the carriers to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier.
[0097] Embodiment 2
[0098] Please refer to Figure 1 Based on the first embodiment, this embodiment further defines how to determine the vehicle to be scheduled and the port to be used, specifically:
[0099] The S4 previously includes:
[0100] Obtaining a port status mapping table for each carrier, wherein the port status mapping table includes port usage data;
[0101] The S4 is specifically:
[0102] S41. Determine the carrier to be scheduled according to the preset order based on the number of hard disks to be tested and the cumulative number of available ports of each carrier. Specifically: obtain a carrier whose cumulative number of available ports is equal to the number of hard disks to be tested as a target carrier, or obtain a target carrier, the cumulative number of available ports of the target carrier is greater than the number of hard disks to be tested and the cumulative number of available ports of the carrier before the target carrier is less than the number of hard disks to be tested; determine the target carrier and all carriers before the target carrier as carriers to be scheduled;
[0103] Specifically, assuming that the number of SSDs to be tested is 20, the cumulative number of available ports of vehicle A is 5, the cumulative number of available ports of vehicle B is 15, the cumulative number of available ports of vehicle C is 22, and the cumulative number of available ports of vehicle D is 27, then according to the number of SSDs to be tested and the cumulative number of available ports of each vehicle, the vehicles to be scheduled are determined to be vehicle A, vehicle B, and vehicle C in a preset order;
[0104] S42, determining the last vehicle to be dispatched among the vehicles to be dispatched as the last vehicle to be dispatched;
[0105] S43, determining whether the cumulative number of available ports of the last carrier to be scheduled is equal to the number of hard disks to be tested, if so, executing S431, if not, executing S432;
[0106] S431, determining the available ports corresponding to all the vehicles to be dispatched as ports to be used;
[0107] S432, determining the available ports corresponding to the vehicles to be scheduled except the last vehicle to be scheduled as ports to be used, and determining the port to be used of the last vehicle to be scheduled according to the port usage data;
[0108] The port usage data includes the number of times the port corresponding to the unshielded port has been plugged in and out and the port plug-in and plug-out life;
[0109] Specifically, assuming that carrier C is the last carrier to be scheduled, its cumulative number of available ports is 22, the number of SSDs to be tested is 21, and carriers A and B are other carriers to be scheduled, then the cumulative number of available ports of the last carrier to be scheduled is not equal to the number of SSDs to be tested, then the available ports corresponding to the carriers to be scheduled (carriers A and carriers B) other than carrier C are determined as ports to be used, and the ports to be used of the last carrier C to be scheduled are determined according to the port usage data;
[0110] The S432 includes:
[0111] Determine the number of hard disks to be tested according to the number of hard disks to be tested, the accumulated number of available ports of the last carrier to be scheduled, and the number of available ports;
[0112] Specifically, assuming that the number of SSDs to be tested is 18, the cumulative number of available ports of the last vehicle to be scheduled is 20, and the number of its available ports is 10, then the number of SSDs to be tested is 8;
[0113] The step of determining the port to be used of the last vehicle to be scheduled according to the port usage data in S432 includes:
[0114] Determine the port to be used of the last carrier to be scheduled according to the number of hard disks to be tested and the port usage data;
[0115] Specifically, the ratio of the number of times the port has been plugged in and out to the plug-in and plug-out life of each available port of the last vehicle to be scheduled is determined to obtain a plurality of ratios;
[0116] Sorting the multiple ratios in ascending order to obtain sorted ratios;
[0117] Selecting a target ratio that is consistent with the number of hard disks to be tested according to the sorted ratio sequence;
[0118] Determine the available port corresponding to the target ratio as the port to be used by the last vehicle to be dispatched;
[0119] For example, the last carrier to be scheduled has 3 available ports. The ratios of the number of times the ports have been plugged in and out to the port plug-in and plug-in life of these 3 available ports are 3 / 10, 6 / 10, and 4 / 10 respectively. The three ratios after sorting are 3 / 10, 4 / 10, and 6 / 10. Assuming that the number of hard disks to be tested is 2, the available ports corresponding to the ratio of 3 / 10 and the available ports corresponding to the ratio of 4 / 10 are determined as the ports to be used of the last carrier to be scheduled.
[0120] Embodiment 3
[0121] This embodiment further defines how to update the number of times the port has been plugged in and out corresponding to the port to be used of the vehicle to be scheduled on the basis of the first or second embodiment, specifically:
[0122] S5, plugging the hard disks to be tested corresponding to the number of hard disks to be tested into the ports to be used of the carrier to be scheduled, and updating the number of times the ports have been plugged in and out corresponding to the ports to be used of the carrier to be scheduled;
[0123] Specifically, assuming that a SSD to be tested is inserted into a port to be used of a vehicle to be scheduled, and is unplugged from the port to be used after the test is completed, when the number of port plug-ins and unplugs is updated, the number of port plug-ins and unplugs corresponding to the port to be used is increased by two;
[0124] S6. Reorder all vehicles according to preset priorities to obtain reordered vehicles;
[0125] The preset priorities are, from high priority to low priority, vehicles with zero port plug-in and unplug-out times (i.e., brand new vehicles), the ratio of the number of port plug-in and unplug-out times of available ports of the vehicle to the port plug-in and unplug-out life from small to large, and the number of available ports of the vehicle from large to small;
[0126] After each SSD test is completed, all carriers will be re-sorted according to the preset priority, and the carrier with the highest priority will be stored at the position closest to the loading position. This can not only balance the carriers in advance and improve the balancing effect, but also shorten the transportation distance from the carrier to the loading position, thereby shortening the transportation time, thereby improving the loading efficiency and increasing production capacity.
[0127] Embodiment 4
[0128] Please refer to Figure 2 , a vehicle dispatching device, comprising:
[0129] A request receiving module, used to receive a vehicle scheduling request, wherein the vehicle scheduling request includes the number of hard disks to be tested;
[0130] A first data acquisition module, used to determine the available ports of each vehicle according to a preset order;
[0131] A second data acquisition module, configured to obtain the accumulated number of available ports of each vehicle according to the available ports of each vehicle;
[0132] The carrier scheduling module is used to determine the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier.
[0133] Embodiment 5
[0134] A computer-readable storage medium stores a computer program, which, when executed by a processor, can implement each step of the vehicle scheduling method in Embodiment 1, Embodiment 2, or Embodiment 3.
[0135] Embodiment 6
[0136] Please refer to Figure 3 , an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, each step of the vehicle scheduling method in Embodiment 1, Embodiment 2, or Embodiment 3 is implemented.
[0137] In summary, the present invention provides a carrier scheduling method, device, readable storage medium and electronic device, which receive a carrier scheduling request, wherein the carrier scheduling request includes the number of hard disks to be tested; the available ports of each carrier are determined according to a preset order; the cumulative number of available ports of each carrier is obtained according to the available ports of each carrier, so as to avoid the situation where the number of carriers cannot meet the number of hard disks to be tested due to the unavailability of some ports after the carrier is scheduled to the loading position, and rescheduling is required, thereby improving production efficiency; the carriers to be scheduled are determined according to the preset order according to the number of hard disks to be tested and the cumulative number of available ports of each carrier; the last carrier to be scheduled among the carriers to be scheduled is determined as the last carrier to be scheduled; when the cumulative number of available ports of the last carrier to be scheduled is equal to the number of hard disks to be tested, it means that each available port of each carrier to be scheduled will be used, and the available ports of all carriers to be scheduled can be directly determined as the ports to be used. When the cumulative number of available ports is inconsistent with the number of hard disks to be tested, it means that the last carrier to be scheduled needs to be plugged with the last hard disk to be tested, and then the ports except the last one will be used. The available ports corresponding to the vehicles to be scheduled other than the vehicles to be scheduled are determined as the ports to be used, and the ports to be used of the last vehicle to be scheduled are determined according to the port usage data, so that different usage balancing strategies are adopted according to different situations, and the port balanced usage strategy of the last vehicle can be determined in advance, thereby improving the balanced usage effect of the vehicle; the ratio of the number of times the port has been plugged in and out of each available port of the last vehicle to be scheduled to the plug-in and plug-out life of the port is determined, and multiple ratios are sorted in order from small to large, and a target ratio consistent with the number of hard disks to be tested is selected according to the sorted ratio order; the available ports corresponding to the target ratios are determined as the ports to be used of the last vehicle to be scheduled, thereby achieving balanced usage of the vehicle ports; all vehicles are re-sorted according to the preset priority to obtain the re-sorted vehicles, which ensures that the vehicles can be placed in the warehouse at the position closest to the loading position with the preset priority, shortens the transportation distance of the vehicles to be scheduled, reduces the transportation time, improves the loading efficiency, improves the production efficiency, and thus improves the balanced usage effect of the vehicles.
[0138] In the above embodiments provided in the present application, it should be understood that the disclosed methods, devices, computer-readable storage media, and electronic devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple components or modules can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or components or modules, which can be electrical, mechanical or other forms.
[0139] The components described as separate components may or may not be physically separated, and the components shown as components may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the components may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0140] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each component may exist physically separately, or two or more modules may be integrated into one module. The above integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0141] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0142] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0143] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0144] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A vehicle scheduling method, It is characterized in that include: receiving a carrier scheduling request, wherein the carrier scheduling request includes the number of hard disks to be tested; Determine the available ports of each carrier according to a preset order, wherein the preset order is the order of the distance between the carrier and the loading position from small to large; Obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle; Determine the carrier to be scheduled and the port to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier; The method of determining the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier includes: Obtaining a port status mapping table for each carrier, wherein the port status mapping table includes port usage data; The determining of the carrier to be scheduled and the port to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier comprises: Determining the carrier to be scheduled according to the number of hard disks to be tested and the accumulated number of available ports of each carrier in the preset order; Determine the last vehicle to be dispatched among the vehicles to be dispatched as the last vehicle to be dispatched; Determine whether the cumulative number of available ports of the last carrier to be scheduled is equal to the number of hard disks to be tested. If so, determine the available ports corresponding to all the carriers to be scheduled as ports to be used. If not, determine the available ports corresponding to the carriers to be scheduled except the last carrier to be scheduled as ports to be used, and determine the ports to be used of the last carrier to be scheduled according to the port usage data; The method of determining the port to be used of the last vehicle to be scheduled according to the port usage data includes: Determine the number of hard disks to be tested according to the number of hard disks to be tested, the accumulated number of available ports of the last carrier to be scheduled, and the number of available ports; The step of determining the port to be used of the last vehicle to be scheduled according to the port usage data comprises: Determine the port to be used of the last carrier to be scheduled according to the number of hard disks to be tested and the port usage data; The port usage data includes the number of times the port corresponding to the unshielded port has been plugged in and out and the port plug-in and plug-out life; The method of determining the port to be used of the last carrier to be scheduled according to the number of hard disks to be tested and the port usage data comprises: Determine the ratio of the number of times the port has been plugged in and out to the plug-in and plug-out life of the port for each available port of the last vehicle to be scheduled, and obtain multiple ratios; Sorting the multiple ratios in ascending order to obtain sorted ratios; Selecting a target ratio that is consistent with the number of hard disks to be tested according to the sorted ratio sequence; Determine the available port corresponding to the target ratio as the port to be used by the last vehicle to be dispatched; Determining the available ports of each vehicle in a preset order includes: Acquire a port status mapping table of each carrier according to the serial number of each carrier in a preset order, wherein the port status mapping table includes an unshielded port; Determining an available port of each vehicle based on the unshielded port; The step of obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle comprises: Determining the number of available ports of a vehicle according to the available ports of the vehicle; Determine, according to the number of available ports of the vehicle, a previous vehicle corresponding to the vehicle and the accumulated number of available ports of the previous vehicle; The cumulative number of available ports of the carrier is obtained by adding the number of available ports of the previous carrier to the cumulative number of available ports of the previous carrier, until the cumulative number of available ports of each carrier is calculated.
2. A vehicle dispatching method according to claim 1, It is characterized in that The method of determining the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the number of available ports of each carrier includes: The hard disks to be tested corresponding to the number of hard disks to be tested are plugged into the ports to be used of the carrier to be scheduled, and the number of times the ports have been plugged in and out corresponding to the ports to be used of the carrier to be scheduled is updated.
3. A vehicle dispatching method according to claim 2, It is characterized in that The updating of the number of times the port corresponding to the port to be used of the vehicle to be scheduled has been plugged in and out includes: All vehicles are reordered according to preset priorities to obtain reordered vehicles.
4. A vehicle dispatching device, It is characterized in that include: A request receiving module, used to receive a vehicle scheduling request, wherein the vehicle scheduling request includes the number of hard disks to be tested; A first data acquisition module is used to acquire the available ports of each carrier according to a preset order, wherein the preset order is the order of the distance between the carrier and the loading position from small to large; A second data acquisition module, configured to obtain the accumulated number of available ports of each vehicle according to the available ports of each vehicle; A carrier scheduling module, used to determine the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier; The method of determining the carrier to be scheduled and the ports to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier includes: Obtaining a port status mapping table for each carrier, wherein the port status mapping table includes port usage data; The determining of the carrier to be scheduled and the port to be used corresponding to the carrier to be scheduled based on the number of hard disks to be tested and the accumulated number of available ports of each carrier comprises: Determining the carrier to be scheduled according to the number of hard disks to be tested and the accumulated number of available ports of each carrier in the preset order; Determine the last vehicle to be dispatched among the vehicles to be dispatched as the last vehicle to be dispatched; Determine whether the cumulative number of available ports of the last carrier to be scheduled is equal to the number of hard disks to be tested. If so, determine the available ports corresponding to all the carriers to be scheduled as ports to be used. If not, determine the available ports corresponding to the carriers to be scheduled except the last carrier to be scheduled as ports to be used, and determine the ports to be used of the last carrier to be scheduled according to the port usage data; The method of determining the port to be used of the last vehicle to be scheduled according to the port usage data includes: Determine the number of hard disks to be tested according to the number of hard disks to be tested, the accumulated number of available ports of the last carrier to be scheduled, and the number of available ports; The step of determining the port to be used of the last vehicle to be scheduled according to the port usage data comprises: Determine the port to be used of the last carrier to be scheduled according to the number of hard disks to be tested and the port usage data; The port usage data includes the number of times the port corresponding to the unshielded port has been plugged in and out and the port plug-in and plug-out life; The method of determining the port to be used of the last carrier to be scheduled according to the number of hard disks to be tested and the port usage data comprises: Determine the ratio of the number of times the port has been plugged in and out to the plug-in and plug-out life of the port for each available port of the last vehicle to be scheduled, and obtain multiple ratios; Sorting the multiple ratios in ascending order to obtain sorted ratios; Selecting a target ratio that is consistent with the number of hard disks to be tested according to the sorted ratio sequence; Determine the available port corresponding to the target ratio as the port to be used by the last vehicle to be dispatched; Determining the available ports of each vehicle in a preset order includes: Acquire a port status mapping table of each carrier according to the serial number of each carrier in a preset order, wherein the port status mapping table includes an unshielded port; Determining an available port of each vehicle based on the unshielded port; The step of obtaining the accumulated number of available ports of each vehicle according to the available ports of each vehicle comprises: Determining the number of available ports of a vehicle according to the available ports of the vehicle; Determine, according to the number of available ports of the vehicle, a previous vehicle corresponding to the vehicle and the accumulated number of available ports of the previous vehicle; The cumulative number of available ports of the carrier is obtained by adding the number of available ports of the previous carrier to the cumulative number of available ports of the previous carrier, until the cumulative number of available ports of each carrier is calculated.
5. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, each step in a vehicle dispatching method as described in any one of claims 1 to 3 is implemented.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the processor implements each step in the vehicle scheduling method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Test control method, test control device and test system
CN105607588A