Rotor number recovery method and device, computer equipment, readable storage medium and program product
By identifying and determining the backup data of the mover number at each backup time in the magnetic drive conveyor line and determining the target effective backup data, the problem of loss of mover number on the belt line is solved, and the accurate recovery of mover number and stability of system operation is achieved.
Patent Information
- Application Number
- CN202510302034.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-14
- Publication Date
- 2025-06-20
AI Technical Summary
In the logistics line where the magnetic drive and belt are mixed, since there is no driver on the belt line, the current car system number information cannot be obtained, resulting in the loss of the rotor number, which in turn causes abnormal operation of the magnetic drive conveyor line.
By obtaining the backup data of the mover number corresponding to each backup time, identifying the backup data of the mover number at each backup time, determining the target valid backup data, and restoring the mover number of each mover based on the data.
Improve the accuracy of the mover numbering, ensure the reliability of the mover numbering in the magnetic drive conveyor line, and avoid system operation abnormalities caused by number loss.
Smart Images

Figure CN120179464A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of magnetic drive technology, and particularly to a method, device, computer device, computer-readable storage medium, and computer program product for restoring the mover numbering. Background Art
[0002] On a magnetic drive conveyor line, the structure of a mover (also known as a trolley) is mainly composed of permanent magnet plates and has no circuit structure. Therefore, all the numbering sources of the system trolleys are obtained by the driver feeding back the positions of the trolleys on the current track, and the system sequentially assigns trolley numbers according to the current positions.
[0003] In a logistics line that combines magnetic drive and belt, since there is no driver on the belt line, it is impossible to obtain the current trolley system numbering information, and at the same time, the trolley has no physical number. Therefore, after leaving the belt line, the current system numbering information may be lost due to power failure or system errors, resulting in abnormal operation of the magnetic drive conveyor line. Summary of the Invention
[0004] Based on this, in view of the above technical problems, it is necessary to provide a method, device, computer device, computer-readable storage medium, and computer program product for restoring the mover numbering that can ensure the accuracy of the mover numbering.
[0005] In a first aspect, this application provides a method for restoring the mover numbering, the method including:
[0006] Obtain the backup data of the mover numbers corresponding to each backup time;
[0007] Identify the backup data of the mover numbers at each backup time to determine the target valid backup data;
[0008] Restore the mover numbers of each mover based on the target valid backup data.
[0009] In one of the embodiments, the identifying the backup data of the mover numbers at each backup time to determine the target valid backup data includes:
[0010] Determine the current backup time, and compare the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result;
[0011] In the case where the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, the previous backup time is used as the current backup time, and the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result is continued until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and the backup data corresponding to the current backup time is used as the target valid backup data.
[0012] In one embodiment, the restoring the mover numbers of the movers based on the target valid backup data includes:
[0013] Randomly number each mover at the current time to obtain random number groups, and each random number group includes the numbers corresponding to each mover;
[0014] Match each of the random number groups with the target valid backup data;
[0015] Based on the random number groups that match successfully with the target valid backup data, obtain the mover numbers of each mover at the current time.
[0016] In one embodiment, the randomly numbering each mover at the current time to obtain random number groups includes:
[0017] Obtain the positions of each mover at the current time, and generate random number groups based on the positions of each mover.
[0018] In one embodiment, the matching each of the random number groups with the target valid backup data includes:
[0019] Based on the correspondence between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data, calculate the correlation between the positions of each mover in the random number group and the positions of each mover in the target valid backup data to obtain a correlation;
[0020] Determine the random number groups with the correlation meeting the requirements as the random number groups that match successfully with the target valid backup data.
[0021] In one embodiment, the backup data of the mover numbers includes the backup time, the mover numbers, and the mover positions.
[0022] In a second aspect, the present application further provides a mover number restoration device, and the device includes:
[0023] A backup data acquisition module, configured to acquire the backup data of the mover numbers corresponding to each backup time;
[0024] A target valid backup data determination module, configured to identify the backup data of the mover numbers at each backup time, and determine the target valid backup data;
[0025] A recovery module, configured to recover the mover numbers of each mover based on the target valid backup data.
[0026] In a third aspect, the present application further provides a computer device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the above embodiments are implemented.
[0027] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0028] In a fifth aspect, the present application further provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the method in any one of the above embodiments are implemented.
[0029] For the above mover number recovery method, device, computer device, computer-readable storage medium, and computer program product, after obtaining the backup data of the mover numbers corresponding to each backup time; identifying the backup data of the mover numbers at each backup time to determine the target valid backup data; and recovering the mover numbers of each mover based on the target valid backup data. In this way, the backup data is first identified to determine the accurate backup data, and then the mover numbers are recovered based on the accurate backup data, improving the accuracy of the mover numbers. Description of the Drawings
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0031] Figure 1 It is an application environment diagram of the mover number recovery method in an embodiment;
[0032] Figure 2 It is a flowchart of the mover number recovery method in an embodiment;
[0033] Figure 3 It is a schematic diagram of the backup logic in an embodiment;
[0034] Figure 4Flow chart of the mover number restoration step in an embodiment;
[0035] Figure 5 Structural block diagram of the mover number restoration device in an embodiment;
[0036] Figure 6 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0037] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] The mover number restoration method provided by the embodiments of the present application can be applied to a Figure 1 magnetic drive system as shown. The magnetic drive system includes a magnetic drive conveyor line, a mover running on the magnetic drive conveyor line, and a control system. The magnetic drive conveyor line can be a hybrid conveyor line or a pure magnetic drive line. The hybrid conveyor line includes a magnetic drive section and a belt section, and the pure magnetic drive line only includes a magnetic drive section. The magnetic drive section includes a driver, and the driver can obtain the position of the mover, so that the control system can generate the number of the mover based on the position of the mover.
[0039] For the hybrid conveyor line, when the mover moves to the belt section, the current system number information may be lost due to power failure or system error. For example, the data backed up at the previous time point is generally used for restoration. However, in the hybrid magnetic drive line, since the mover cannot be located on the belt line without auxiliary positioning devices such as drivers, when a mover runs onto the belt line, the backed-up data at this time is incomplete, and the number of backed-up movers may be less than the actual number of movers.
[0040] For the pure magnetic drive line, during the movement of the mover, the number may also be lost due to reasons such as power failure. At this time, the number data of the previous mover recorded by the magnetic drive line is generally used for a certain restoration work. However, when using the number data of the previous mover recorded by the magnetic drive line for restoration currently, if the data backed up before the power failure is problematic, the restored number data of the mover is also problematic.
[0041] To solve the above problems and accurately restore the mover number, in the present application, the backup data of the mover number corresponding to each backup time point is first obtained; then the backup data of the mover number at each backup time point is identified to determine the target valid backup data; and the mover numbers of each mover are restored based on the target valid backup data. In this way, the backup data is first identified to determine the accurate backup data, and then the mover number is restored based on the accurate backup data, which improves the accuracy of the mover number.
[0042] In an exemplary embodiment, as Figure 2 shown, a mover number restoration method is provided. Taking the control system in Figure 1 as an example, the method includes the following steps S202 to S206. Among them:
[0043] S202: Obtain the backup data of the mover numbers corresponding to each backup time.
[0044] The backup data of the mover numbers includes the backup time, the mover number, and the mover position.
[0045] The mover number is obtained based on the mover position. The mover position can be represented by mover coordinates. The mover coordinates are mapped with respect to a preset origin according to the road section where the mover is located and the position of the mover on the road section to obtain three-dimensional coordinates. In the traditional solution, the mover coordinates only consider one-dimensional coordinates and road section information, which not only has less information but also has low robustness. In this embodiment, it can adapt to ordinary straight sections (one-dimensional (x)), fork roads, circular lines (two-dimensional (xy)), and multi-layer logistics lines in three-dimensional space (xyz). At the same time, it can also be abstracted into a two-dimensional topology of xy (z = 0) to implement subsequent calculations.
[0046] S204: Identify the backup data of the mover numbers at each backup time to determine the target valid backup data.
[0047] The valid backup data is the correct backup data. By identifying the backup data of the mover numbers at each backup time, the valid backup data is obtained.
[0048] The target refers to the backup time closest to the current time, so as to ensure that the target valid backup data is the latest and correct backup data.
[0049] Identifying the backup data of the mover numbers at each backup time can be based on a preset logic. Combining the scenario of this embodiment, when a mover runs onto the belt section, the backup data at this time is incomplete, and the number of backup movers is less than the actual number of movers. Therefore, the preset logic can be generated based on the number of movers. The preset identification logic can be to judge whether the number of movers has changed. If it has changed, it means the data is invalid.
[0050] In one optional embodiment, the backup data of the mover numbers at each backup time is identified to determine the target valid backup data, including: determining the current backup time, and comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result; in the case where the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, taking the previous backup time as the current backup time, and continuing to execute the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and taking the backup data corresponding to the current backup time as the target valid backup data.
[0051] Combined with Figure 3 as shown in Figure 3 FIG. is a schematic diagram of the backup logic in an embodiment. In this embodiment, n is the current backup time. Starting from the n backup time, it is determined whether the number of movers has mutated. For example, the number of movers in the backup data corresponding to the n backup time is compared with the number of movers in the backup data corresponding to the n - 1 backup time. If the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, then taking the n - 1 backup time as the current backup time, and continuing to compare the number of movers in the backup data corresponding to the n - 1 backup time with the number of movers in the backup data corresponding to the n - 2 backup time until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and taking the backup data corresponding to the current backup time as the target valid backup data.
[0052] Among them, the judgment of whether the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time can be to determine whether there is a mutation in the number of movers corresponding to the current backup data compared with the number of movers corresponding to the previous backup data. Wherein the current backup data is the backup data corresponding to the current backup time, and the previous backup data is the backup data corresponding to the previous backup time.
[0053] Specifically, starting from the n moment, it is determined whether there is a quantity mutation; if there is no quantity mutation, it is determined that the backup data at the n moment is valid and is the target valid backup data; if there is a quantity mutation, it is traced back sequentially from the n - 1 moment until the moment when the quantity has not mutated for the last time stops. Figure 3 In the figure, the backup data with the correct quantity is found by tracing back to the n - 5 moment. The n - 5 moment is the correct time point, and the corresponding backup data is the target valid backup data. After determining the correct time point and the correct target valid backup data, the backup logic ends.
[0054] Another point that needs to be explained is that the number of backup times traced back by the backup logic can be less than a preset number, so as to avoid errors caused by the change in the number of movers over a long time. The value range of the preset number is 5 to 10, including the boundary values. In other embodiments, the value range of the preset number can also be other values, which are not specifically limited herein.
[0055] In the above embodiments, by comparing the number of mover numbers backed up at each time, the time when the backed-up mover numbers are correct can be determined, and then the target valid backup data can be determined. In this way, the obtained target valid backup data can be accurate, and the effectiveness of the target valid backup data can be improved.
[0056] S206: Restore the mover numbers of each mover based on the target valid backup data.
[0057] Among them, when the target valid backup data is correct, the mover numbers of the movers can be restored based on the mover positions of each mover in the valid backup data.
[0058] For example, if the target valid backup data carries the mover positions, each mover can also obtain the corresponding mover position based on the driver in the magnetic drive segment. In this way, based on the mover positions, the matching relationship between the actual movers and the movers in the target valid backup data can be determined, and then the mover numbers of the matching movers can be obtained.
[0059] In the above mover number restoration method, the backup data corresponding to each backup time is obtained; the backup data of the mover numbers at each backup time is identified to determine the target valid backup data; the mover numbers of each mover are restored based on the target valid backup data. In this way, the backup data is first identified to determine the accurate backup data, and then the mover numbers are restored based on the accurate backup data, improving the accuracy of the mover numbers.
[0060] In one alternative embodiment, as shown in Figure 4 shown, Figure 4 is a flowchart of the mover number restoration steps in an embodiment. The mover number restoration steps, that is, restoring the mover numbers of each mover based on the target valid backup data, include:
[0061] S402: Randomly number each mover at the current time to obtain each random number group, and each random number group includes the numbers corresponding to each mover.
[0062] Among them, randomly numbering each mover at the current time to obtain each random number group is the initialization process at the current time, that is, after a power failure recovery or other situations, the numbers of each mover are initialized, and the initialization process is a process of randomly numbering the movers.
[0063] In one alternative embodiment, each mover is randomly numbered at the current moment to obtain respective random number groups, including: obtaining the positions of each mover at the current moment and generating random number groups based on the positions of each mover.
[0064] Specifically, at the current moment, for example, at the nth moment, the coordinate information of each mover is obtained, and then the movers are randomly numbered based on this coordinate information to obtain multiple random number groups.
[0065] Each random number group includes the mover numbers and the mover positions, and the corresponding mover numbers in each random number group are all different.
[0066] S404: Match each random number group with the target valid backup data.
[0067] S406: Based on the random number groups that match successfully with the target valid backup data, obtain the mover numbers of each mover at the current moment.
[0068] The target valid backup data includes mover numbers and mover positions. In this way, the mover numbers and mover positions in the random number groups are matched with the mover numbers and mover positions in the target valid backup data to obtain a matching result.
[0069] In one alternative embodiment, matching each random number group with the target valid backup data includes: based on the correspondence between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data, calculating the correlation between the positions of each mover in the random number group and the positions of each mover in the target valid backup data to obtain the correlation; determining the random number groups with the correlation meeting the requirements as the random number groups that match successfully with the target valid backup data.
[0070] Among them, according to the correspondence between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data, the positions of the movers with the corresponding numbers are matched, for example, calculating the correlation. Specifically, the correlation can be calculated respectively for the mover coordinates, for example, calculating the correlation between the two for the XYZ coordinates.
[0071] Optionally, the correlation can be a correlation analysis based on covariance. In other embodiments, the correlation can be other representation methods, which are not specifically limited herein.
[0072] After obtaining the correlations between each random number group and the target valid backup data, the random number groups with the correlation meeting the requirements can be selected as the random number groups that match successfully with the target valid backup data, and the successfully matched random number groups are used as the backup data at the current moment.
[0073] Among them, the correlation meeting the requirements can be to select the group of random number groups with the largest correlation, and use this group of random number groups as the correct number of the mover at the current moment.
[0074] In the above embodiments, the current recovery algorithm is improved. On the one hand, by comparing the number of backup mover numbers at each moment, the effective target effective backup data is determined, thereby reducing the error of the backup data and making the obtained target effective backup data accurate. On the other hand, by calculating the correlation between the target effective backup data and the random number groups obtained from the random numbers, the accurate random number groups with the correlation meeting the requirements are determined. In this way, the accuracy of the mover number recovery is improved by calculating the correlation and performing number recovery based on the target effective backup data.
[0075] It should be understood that although the steps in the flowcharts involved in the above embodiments are sequentially shown according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, 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. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.
[0076] Based on the same inventive concept, the embodiments of the present application also provide a mover number recovery device for implementing the mover number recovery method involved above. The implementation solutions provided by this device to solve problems are similar to the implementation solutions described in the above method. Therefore, the specific limitations in one or more embodiments of the mover number recovery device provided below can refer to the limitations on the mover number recovery method in the above text, and will not be repeated here.
[0077] In an exemplary embodiment, as Figure 5 shown, a mover number recovery device is provided, including: a backup data acquisition module 501, a target effective backup data determination module 502, and a recovery module 503, where:
[0078] The backup data acquisition module 501 is used to acquire the backup data of the mover numbers corresponding to each backup moment;
[0079] The target effective backup data determination module 502 is used to identify the backup data of the mover numbers at each backup moment and determine the target effective backup data;
[0080] A recovery module 503, configured to recover the mover numbers of each mover based on the target valid backup data.
[0081] In one optional embodiment, the above-mentioned target valid backup data determination module 502 is specifically configured to determine the current backup time, and compare the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result; when the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, use the previous backup time as the current backup time, and continue to execute the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result, until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and use the backup data corresponding to the current backup time as the target valid backup data.
[0082] In one optional embodiment, the above-mentioned recovery module 503 is specifically configured to randomly number each mover at the current moment to obtain each random number group, and each random number group includes the numbers corresponding to each mover; match each of the random number groups with the target valid backup data; based on the random number group that successfully matches the target valid backup data, obtain the mover numbers of each mover at the current moment.
[0083] In one optional embodiment, the above-mentioned recovery module 503 is specifically configured to obtain the positions of each mover at the current moment, and generate a random number group based on the positions of each mover.
[0084] In one optional embodiment, the above-mentioned recovery module 503 is specifically configured to calculate the correlation between the positions of each mover in each random number group and the positions of each mover in the target valid backup data based on the correspondence between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data to obtain a correlation; determine the random number group whose correlation meets the requirements as the random number group that successfully matches the target valid backup data.
[0085] In one optional embodiment, the backup data of the above-mentioned mover numbers includes a backup time, a mover number, and a mover position.
[0086] Each module in the above-mentioned mover number recovery device can be implemented in whole or in part by software, hardware, and their combination. The above-mentioned modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above-mentioned each module.
[0087] 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 Figure 6 . 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 external devices. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a mover number recovery method. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen may be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0088] Those skilled in the art can understand that Figure 6 the structure shown in is only a block diagram of some structures 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 some components, or have different component arrangements.
[0089] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented: obtaining backup data of mover numbers corresponding to each backup time; identifying the backup data of mover numbers at each backup time to determine target valid backup data; and restoring the mover numbers of each mover based on the target valid backup data.
[0090] In one embodiment, when the processor executes a computer program, the identification of the backup data of the mover numbers at each backup time to determine the target valid backup data includes: determining the current backup time, and comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result; in the case where the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, taking the previous backup time as the current backup time, and continuing to execute the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and taking the backup data corresponding to the current backup time as the target valid backup data.
[0091] In one embodiment, when the processor executes a computer program, the restoration of the mover numbers of each mover based on the target valid backup data includes: randomly numbering each mover at the current time to obtain each random number group, where each random number group includes the numbers corresponding to each mover; matching each of the random number groups with the target valid backup data; and obtaining the mover numbers of each mover at the current time based on the random number group that successfully matches the target valid backup data.
[0092] In one embodiment, when the processor executes a computer program, the randomly numbering each mover at the current time to obtain each random number group includes: obtaining the positions of each mover at the current time, and generating a random number group based on the positions of each mover.
[0093] In one embodiment, when the processor executes a computer program, the matching of each of the random number groups with the target valid backup data includes: calculating the correlation between the positions of each mover in the random number group and the positions of each mover in the target valid backup data based on the corresponding relationship between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data to obtain a correlation; and determining the random number group with the correlation meeting the requirements as the random number group that successfully matches the target valid backup data.
[0094] In one embodiment, the backup data of the mover numbers includes a backup time, a mover number, and a mover position.
[0095] 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 following steps are implemented: obtaining backup data of mover numbers corresponding to each backup time; identifying the backup data of mover numbers at each backup time to determine target valid backup data; and restoring the mover numbers of each mover based on the target valid backup data.
[0096] In one embodiment, the identifying the backup data of mover numbers at each backup time to determine target valid backup data, which is implemented when the computer program is executed by a processor, includes: determining the current backup time, and comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result; in the case where the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, taking the previous backup time as the current backup time, and continuing to execute the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and taking the backup data corresponding to the current backup time as the target valid backup data.
[0097] In one embodiment, the restoring the mover numbers of each mover based on the target valid backup data, which is implemented when the computer program is executed by a processor, includes: randomly numbering each mover at the current time to obtain random number groups, each random number group including the numbers corresponding to each mover; matching each of the random number groups with the target valid backup data; and obtaining the mover numbers of each mover at the current time based on the random number groups that match the target valid backup data successfully.
[0098] In one embodiment, the randomly numbering each mover at the current time to obtain random number groups, which is implemented when the computer program is executed by a processor, includes: obtaining the positions of each mover at the current time, and generating random number groups based on the positions of each mover.
[0099] In one embodiment, the matching each of the random number groups with the target valid backup data, which is implemented when the computer program is executed by a processor, includes: calculating the correlation between the positions of each mover in the random number group and the positions of each mover in the target valid backup data based on the correspondence between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data to obtain a correlation; and determining the random number group with the correlation meeting the requirements as the random number group that matches the target valid backup data successfully.
[0100] In one embodiment, the backup data of the mover numbers implemented when the computer program is executed by the processor includes the backup time, the mover numbers, and the mover positions.
[0101] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the following steps: obtaining the backup data of the mover numbers corresponding to each backup time; identifying the backup data of the mover numbers at each backup time to determine the target valid backup data; and restoring the mover numbers of each mover based on the target valid backup data.
[0102] In one embodiment, the identifying the backup data of the mover numbers at each backup time to determine the target valid backup data, implemented when the computer program is executed by the processor, includes: determining the current backup time, and comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result; in the case where the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, taking the previous backup time as the current backup time, and continuing to execute the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result, until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and taking the backup data corresponding to the current backup time as the target valid backup data.
[0103] In one embodiment, the restoring the mover numbers of each mover based on the target valid backup data, implemented when the computer program is executed by the processor, includes: randomly numbering each mover at the current time to obtain random number groups, each random number group including the numbers corresponding to each mover; matching each of the random number groups with the target valid backup data; and obtaining the mover numbers of each mover at the current time based on the random number groups that match the target valid backup data successfully.
[0104] In one embodiment, the randomly numbering each mover at the current time to obtain random number groups, implemented when the computer program is executed by the processor, includes: obtaining the positions of each mover at the current time, and generating random number groups based on the positions of each mover.
[0105] In one embodiment, the matching of each of the random number groups with the target valid backup data implemented when the computer program is executed by a processor includes: calculating the correlation between the positions of the movers in each random number group and the positions of the movers in the target valid backup data based on the correspondence between the random numbers in each random number group and the mover numbers of the movers in the target valid backup data to obtain a correlation; and determining the random number groups with the correlation meeting the requirements as the random number groups that successfully match the target valid backup data.
[0106] In one embodiment, the backup data of the mover numbers implemented when the computer program is executed by a processor includes a backup time, a mover number, and a mover position.
[0107] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of the relevant data need to comply with the relevant regulations.
[0108] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. 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 methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this 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), magnetoresistive 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. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0109] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, 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, it should be considered to be within the scope recorded in this application.
[0110] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for restoring the number of a mover, characterized in that: The method comprises: Obtain backup data of the mover number corresponding to each backup time; Identify the backup data of the mover number at each backup time and determine the target valid backup data; The mover number of each mover is restored based on the target effective backup data.
2. The method according to claim 1, characterized in that The step of identifying the backup data of the mover number at each backup time and determining the target valid backup data includes: Determine a current backup time, and compare the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain a comparison result; In the case where the comparison result indicates that the backup data corresponding to the current backup time is consistent with the backup data corresponding to the previous backup time, the previous backup time is used as the current backup time, and the step of comparing the backup data corresponding to the current backup time with the backup data corresponding to the previous backup time to obtain the comparison result is continued until the comparison result indicates that the backup data corresponding to the current backup time is inconsistent with the backup data corresponding to the previous backup time, and the backup data corresponding to the current backup time is used as the target valid backup data.
3. The method according to claim 1, characterized in that The step of restoring the mover number of each mover based on the target effective backup data includes: Randomly number each mover at the current moment to obtain each random number group, each random number group includes the number corresponding to each mover; Matching each of the random number groups with the target valid backup data; Based on the random number group that successfully matches the target valid backup data, the mover number of each mover at the current moment is obtained.
4. The method according to claim 3, characterized in that: The random numbering of each actuator at the current moment is obtained to obtain each random numbering group, including: The position of each mover at the current moment is obtained, and a random number group is generated based on the position of each mover.
5. The method according to claim 3, characterized in that: The matching of each of the random number groups with the target valid backup data includes: Based on the correspondence between the random numbers in each random number group and the mover numbers of each mover in the target valid backup data, the position of each mover in the random number group and the position of each mover in the target valid backup data are correlated and calculated to obtain the correlation; The random number group whose correlation meets the requirement is determined as the random number group that successfully matches the target valid backup data.
6. The method according to any one of claims 1 to 5, characterized in that: The backup data of the mover number includes the backup time, the mover number and the mover position.
7. A device for restoring the number of a mover, characterized in that: The device comprises: A backup data acquisition module is used to acquire the backup data of the mover number corresponding to each backup time; A target effective backup data determination module is used to identify the backup data of the mover number at each backup time and determine the target effective backup data; A recovery module is used to restore the mover number of each mover based on the target effective backup data.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.