Control methods, devices, and controllers based on a large number of cyclic instructions

By identifying and resetting the last step of a similar business process as the first step of the next business process, the problem of complex business processes when a large number of instructions are executed between the client and the server is solved, and the coherent and convenient execution of similar business processes is achieved.

CN115951613BActive Publication Date: 2025-11-14SHENZHEN SNOWBALL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310025121.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-09
Publication Date
2025-11-14
Estimated Expiration
2043-01-09

AI Technical Summary

Technical Problem

When executing a large number of instructions between the client and the server, the existing technology makes the business process implementation complex, and multiple similar business processes cannot be executed in an unordered manner. They need to be sorted according to the coding logic, which makes the implementation process complex.

Method used

By determining whether each business is similar to another, and when a similar business is determined, resetting the last step of the currently executing business to the first step of the next business, the coherence and continuous self-control instructions of similar business processes can be achieved.

Benefits of technology

It simplifies the control between similar business processes, enables the coherent execution of similar business processes, and improves the simplicity and efficiency of the processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115951613B_ABST
    Figure CN115951613B_ABST
Patent Text Reader

Abstract

This invention relates to a control method, apparatus, and controller based on a large number of cyclic instructions. The method includes determining whether the current service is a similar service; if it is determined to be a similar service, determining whether the currently executed similar service is the last one; if not, resetting the next step of the currently executed similar service to the first step of the service to continue executing the next similar service; otherwise, ending the process. This invention, by setting the last step of the currently executed service to the first step of a similar service, can achieve coherent / continuous self-control between similar service processes, thereby enabling the handling of a large number of similar services in a cyclical manner, simplifying the process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and specifically relates to a control method, device and controller based on a large number of loop instructions. Background Technology

[0002] With the development of technology, electronic products are being used more and more widely, leading to an increasing demand for chips. Due to limitations such as chip security mechanisms and data flow, the execution of instructions between the client and server requires multiple interactions, each with a specific order. Therefore, the interaction between the client and server needs to define the current step and nextStep.

[0003] In related technologies, a single business process inherently involves multiple interactions, and in many cases, multiple business processes need to be executed consecutively. The implementation of the step sequence between these multiple business processes varies. Generally, the step count continues to increase until each business process and instruction is successfully completed. For example, after multiple interactions related to a recharge whitelist, there is also a ticket purchase whitelist. In this case, the server's response to the client, 1004 (nextStep), represents the final step 1003 (currentStep) of the recharge whitelist. However, the above interaction process suffers from several problems: each business process control is implemented independently; even for similar business processes, there is significant repetition, making implementation complex; multiple similar business processes cannot be executed in an unordered manner and must be sorted according to implementation / coding logic; and the control flow of multiple (dissimilar) business processes is not clearly distinguished, further complicating the implementation process.

[0004] Therefore, when there are a large number of instructions to be executed between the client and the server, there is a problem of complex business process implementation. Summary of the Invention

[0005] In view of this, the purpose of the present invention is to overcome the shortcomings of the prior art and provide a control method, device and controller based on a large number of cyclic instructions, so as to solve the problem of complex business process implementation when there are a large number of instructions to be executed between the client and the server in the prior art.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: a control method based on a large number of loop instructions, comprising:

[0007] Determine whether the current business operations are similar;

[0008] When a similar business is identified, it is determined whether the currently executing business is the last one. If not, the next step of the currently executing business is reset to the first step of the next business to be executed, so as to continue to execute the next business; otherwise, the process ends.

[0009] Furthermore, different initial step values ​​are set for different business operations, and the method also includes:

[0010] If the services are dissimilar, the type of service currently being executed will be determined based on the initial step value or the service's control parameters.

[0011] Furthermore, the method further includes setting the same initial step values ​​for different business settings:

[0012] If the business processes are dissimilar, the type of business process to be executed is determined based on the business's control parameters.

[0013] Furthermore, determining whether the current service is a similar service includes:

[0014] Determine the similarity between various business services, and identify all business services with a similarity greater than a similarity threshold as similar business services;

[0015] The similarity refers to the fact that the steps and processes between the business operations are the same.

[0016] Furthermore, the services include:

[0017] Recharge whitelist, ticket purchase whitelist, card activation whitelist, anonymous card registration whitelist, wallet deduction whitelist, disable auto-renewal whitelist, enable auto-renewal whitelist, virtual card legality check, physical card recharge and physical card legality check;

[0018] Among them, the whitelist for recharge, whitelist for ticket purchase, whitelist for card activation, whitelist for anonymous card registration, whitelist for wallet deduction, whitelist for disabling automatic ticket renewal, and whitelist for enabling automatic ticket renewal are similar services, and the virtual card legality check and the physical card legality check are similar services.

[0019] This application provides a control device based on a large number of cyclic instructions, including:

[0020] The determination module is used to determine whether the current business processes are similar.

[0021] The execution module is used to determine whether the currently executed business is the last one when it is identified as a similar business. If not, the next step of the currently executed business is reset to the first step of the next business to be executed, so as to continue to execute the next business; otherwise, the process ends.

[0022] Furthermore, different initial step values ​​are set for different business operations, and the device also includes:

[0023] The judgment module is used to determine the type of business to be executed based on the initial step value or the control parameters of the business if the businesses are dissimilar.

[0024] This application provides a controller, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of any of the control methods based on a large number of loop instructions described above.

[0025] The beneficial effects that can be achieved by adopting the above technical solution in this invention include:

[0026] This invention provides a control method, apparatus, and controller based on a large number of cyclic instructions. The invention first determines which services are similar among various business processes, or whether the currently processed service is similar. If the currently processed services are determined to be similar, it then checks if the currently executed service is the last one. If not, the last step of the previously executed service is modified to become the first step of the next service to be executed, allowing direct execution of the next service. By setting the last step of the currently executed service as the first step of a similar service, this invention enables coherent / continuous self-control instructions between similar business processes, thereby facilitating a large number of similar services in a cyclical manner, simplifying the process. Attached Figure Description

[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0028] Figure 1 This is a diagram illustrating the existing business execution logic;

[0029] Figure 2 This is a schematic diagram illustrating the steps of the control method based on a large number of loop instructions of the present invention;

[0030] Figure 3 A schematic diagram illustrating the execution logic of similar services provided by this invention;

[0031] Figure 4 This is a schematic diagram of the virtual card validity check logic provided by the present invention;

[0032] Figure 5 This is a schematic diagram of the physical card recharge logic provided by the present invention;

[0033] Figure 6 This is a schematic diagram of the physical card validity check logic provided by the present invention;

[0034] Figure 7 This is a schematic diagram of the control device based on a large number of loop instructions according to the present invention;

[0035] Figure 8 This is a schematic diagram of the controller provided by the present invention. Detailed Implementation

[0036] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be described in detail below. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other implementation methods obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0037] In related technologies, for example, existing business processes include recharge whitelists, ticket purchase whitelists, and other whitelists, which require execution of a single business process, such as... Figure 1 As shown, the process first involves grouping all recharge whitelists into one group. Within each whitelist group, all whitelists constitute a single group. For a specific whitelist, there is no concept of a group; it's a complete business process. Each business process is handled step-by-step. First, the request instruction `currentStep=1` is executed. Then, `nestStep=1001` is executed to issue a read 09 file instruction. The next step is to obtain the result of the read 09 file instruction from `currentStep=1001`. Then, `nestStep=1002` is executed to issue a read OA file instruction. The next step is to obtain the current... The process involves several steps: tStep=1002 sends the OA file read command result, nestStep=1003 issues an update balance command, and then currentStep=1003 sends the update balance command result. For the next recharge whitelist transaction, the server needs to repeat all steps until all business processes are completed. This process is extremely cumbersome, and multiple similar transactions cannot be executed out of order; they must be ordered according to coding logic. For example, a ticket purchase transaction that is prioritized might have to wait for a subsequent recharge transaction to complete before it can proceed. If this happens out of order, it cannot be executed and can only result in a refund. It's understandable that the multiple whitelists mentioned here refer to different whitelists for the same user and the same card.

[0038] The following describes a specific control method, apparatus, and controller based on a large number of cyclic instructions provided in an embodiment of this application, with reference to the accompanying drawings.

[0039] like Figure 2 As shown, the control method based on a large number of loop instructions provided in the embodiments of this application includes:

[0040] S101, determine whether the current services are similar services;

[0041] The current business includes multiple items. First, it is determined whether all current businesses belong to similar businesses. For example, if there are multiple whitelists for recharge, ticket purchase, card activation, anonymous card registration, wallet deduction, disabling auto-renewal whitelist, and enabling auto-renewal whitelist in the current business, then the current businesses are considered to be similar businesses.

[0042] S102, when it is determined that the business is similar, it is determined whether the currently executed business is the last one. If not, the next step of the currently executed business is reset to the first step of the next business to be executed, so as to continue to execute the next business; otherwise, the process ends.

[0043] If the business is similar, it is determined whether the currently executed business is the last one. If not, it means that there is a subsequent business. The last step of the currently executed business is set as the first step of the next business to be executed, thereby realizing the cyclical execution of similar business.

[0044] The working principle of the control method based on a large number of loop instructions is as follows: This application first determines which business processes are similar, or whether the currently processed business is similar. If the currently processed business processes are determined to be similar, it then checks whether the currently executed business process is the last one. If not, the last step of the currently executed business process is modified to become the first step of the next business process to be executed, so that the next business process can be executed directly. By setting the last step of the currently executed business process to be the first step of a similar business process, this application can realize coherent / continuous self-control instructions between similar business processes.

[0045] This application considers all whitelisted items as similar businesses, such as Figure 3 As shown, the execution flow becomes: first, the request instruction currentStep=1 is executed, then nestStep=1001 is executed. If there is no next step, nestStep=1001 is reset and changed to currentStep to realize the start step of the next business, thus simplifying the process until the process ends.

[0046] In some embodiments, determining whether the current service is a similar service includes:

[0047] Determine the similarity between various business services, and identify all business services with a similarity greater than a similarity threshold as similar business services;

[0048] The similarity refers to the fact that the steps and processes between the business operations are the same.

[0049] It is understood that the similarity of business operations can be determined based on the similarity of their control parameters. The similarity threshold in this application can be set according to actual needs, and this application does not impose any limitations on it. For example, the similarity can be determined by the similarity of the steps and processes between the business operations, or by the similarity of the control parameters between the business operations.

[0050] In some embodiments, the service includes:

[0051] Recharge whitelist, ticket purchase whitelist, card activation (enable) whitelist, anonymous card registration whitelist, wallet deduction whitelist, disable auto-renewal whitelist, enable auto-renewal whitelist, virtual card legality check, physical card recharge and physical card legality check;

[0052] Among them, the recharge whitelist, ticket purchase whitelist, card activation (enable) whitelist, anonymous card registration whitelist, wallet deduction whitelist, disabling auto-renewal whitelist, and enabling auto-renewal whitelist are similar services, and virtual card legality check and physical card legality check are similar services.

[0053] It is understandable that whitelist types include recharge whitelists, ticket purchase whitelists, card activation whitelists, real-name registration whitelists, and any other whitelists of any type that can be added at any time. Currently, only whitelists involve unordered continuous execution; other processes are not currently required: legality checks (physical and virtual cards), card activation (virtual card), recharge (physical and virtual card), ticket purchase (physical and virtual card), backup (from mobile phone) to the cloud (server) (physical and virtual card), download from the cloud to mobile phone (physical and virtual card), and card refund (virtual card). It should be noted that while the processes for virtual cards (digital cards without a physical form) and physical cards are similar, they cannot be executed simultaneously. Existing virtual card services include: card activation, recharge, ticket purchase (top-up), card refund, migration out (backup to the cloud), migration in (currently to the local device), and A-card upgrade; existing physical card services include: recharge, ticket purchase (top-up), card absorption (physical card to virtual card), and A-card upgrade.

[0054] The whitelists for recharge, ticket purchase, card activation (activation), anonymous card registration, wallet deduction, disabling auto-renewal, and enabling auto-renewal are dissimilar to virtual card legality checks. The whitelists for recharge, ticket purchase, card activation (activation), anonymous card registration, wallet deduction, disabling auto-renewal, and enabling auto-renewal are also dissimilar to virtual card legality checks. The whitelists for recharge, ticket purchase, card activation (activation), anonymous card registration, wallet deduction, disabling auto-renewal, and enabling auto-renewal are also dissimilar to physical card legality checks. Virtual card legality checks and physical card legality checks are also dissimilar to physical card recharge.

[0055] In some embodiments, different services are configured with different initial step values, and the method further includes:

[0056] If the services are dissimilar, the type of service currently being executed will be determined based on the initial step value or the service's control parameters.

[0057] Specifically, such as Figure 4 As shown, this application sets the first step of the virtual card validity check to 1, such as... Figure 5 As shown, this application sets the first step of physical card recharge to 11, such as... Figure 6 As shown, this application sets the first step of the physical card validity check to 101. Therefore, when the current business type cannot be determined, the business type can be determined based on the name of the first step. Through the multiple dissimilar business processes provided in this application, defining completely different starting steps, the business to which the current execution belongs can be clearly distinguished at a glance.

[0058] In some embodiments, different services are set with the same initial step value, and the method further includes:

[0059] If the business processes are dissimilar, the type of business process to be executed is determined based on the business's control parameters.

[0060] It is understandable that different businesses have different control parameters. If the businesses are similar, there will be a few differences in control parameters. If the businesses are dissimilar, there will be many differences in control parameters.

[0061] Specifically, when executing similar business processes, the actual business order is determined by the user's ranking. This order might be: recharge whitelist, ticket purchase whitelist, recharge whitelist, recharge whitelist again, and so on. The technical solution provided in this application allows for the execution of the recharge whitelist process, followed by changing control parameters to continue with the ticket purchase whitelist process, before moving on to the next business. This technical solution allows for unordered execution based on the actual business sequence, better reflecting real-world scenarios.

[0062] like Figure 7 As shown, this application provides a control device for a large number of loop instructions, characterized in that it includes:

[0063] The determination module 201 is used to determine whether the current services are similar services;

[0064] The execution module 202 is used to determine whether the currently executed business is the last one when it is determined to be a similar business. If not, the next step of the currently executed business is reset to the first step of the next business to be executed, so as to continue to execute the next business; otherwise, the process ends.

[0065] The working principle of the control device for a large number of loop instructions provided in this application is as follows: the determining module 201 determines whether each current service is a similar service; when the execution module 202 determines that it is a similar service, it determines whether the current execution service is the last one. If not, the next step of the current execution service is reset to the first step of the next service to be executed, so as to continue to execute the next service; otherwise, the process ends.

[0066] like Figure 8 As shown, this application provides a controller 1, including a memory 11 and a processor 12. The memory 11 stores a computer program, which, when executed by the processor 12, causes the processor 12 to perform the following steps:

[0067] Determine whether the current business operations are similar;

[0068] When a similar business is identified, it is determined whether the currently executing business is the last one. If not, the next step of the currently executing business is reset to the first step of the next business to be executed, so as to continue to execute the next business; otherwise, the process ends.

[0069] In summary, this invention provides a control method, apparatus, and controller based on a large number of cyclic instructions. This application first determines which services are similar among the various business processes, or whether the currently processed service is a similar service. If the currently processed services are determined to be similar, it then determines whether the currently executed service is the last one. If not, the last step of the currently executed service is modified to become the first step of the next service to be executed, so that the next service can be executed directly. By setting the last step of the currently executed service as the first step of a similar service, this application can realize coherent / continuous self-control instructions between similar business processes, thereby enabling the processing of a large number of similar services in a cyclical manner, making the process simpler.

[0070] It is understood that the method embodiments provided above correspond to the device embodiments described above, and the specific details can be referred to each other, which will not be repeated here.

[0071] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0072] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0073] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction methods implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0074] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0075] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A control method based on a large number of loop instructions, characterized in that, include: Determine whether each current business is a similar business; wherein, the similar business is a whitelist, and the whitelist includes a recharge whitelist, a ticket purchase whitelist, a card activation whitelist, an anonymous card registration whitelist, a wallet deduction whitelist, a disabled auto-renewal whitelist, and an enabled auto-renewal whitelist; When a similar business is identified, it is determined whether the currently executed business is the last one. If not, when looping through each whitelist, the first step number of the next business is set to be the same as the first step number of the current business, until all business processes are completed. After executing any whitelist business, the next whitelist business is executed by changing the control parameters. Otherwise, end the process.

2. The method according to claim 1, characterized in that, Different initial step values ​​are set for different business operations, and the method further includes: If the business processes are dissimilar, the type of business process to be executed is determined based on the initial step values ​​or the business's control parameters.

3. The method according to claim 1, characterized in that, The method further includes setting the same initial step values ​​for different business settings: If the business processes are dissimilar, the type of business process to be executed is determined based on the business's control parameters.

4. The method according to claim 1, characterized in that, Determining whether the current service is a similar service includes: Determine the similarity between various business services, and identify all business services with a similarity greater than a similarity threshold as similar business services; The similarity refers to the fact that the steps and processes between the business operations are the same.

5. The method according to claim 4, characterized in that, The services include: Recharge whitelist, ticket purchase whitelist, card activation whitelist, anonymous card registration whitelist, wallet deduction whitelist, disable auto-renewal whitelist, enable auto-renewal whitelist, virtual card legality check, physical card recharge and physical card legality check; Among them, the whitelist for recharge, whitelist for ticket purchase, whitelist for card activation, whitelist for anonymous card registration, whitelist for wallet deduction, whitelist for disabling automatic ticket renewal, and whitelist for enabling automatic ticket renewal are similar services, and the virtual card legality check and the physical card legality check are similar services.

6. A control device based on a large number of cyclic instructions, characterized in that, include: The determination module is used to determine whether the current business processes are similar. The similar services are whitelisted, which includes recharge whitelist, ticket purchase whitelist, card activation whitelist, anonymous card registration whitelist, wallet deduction whitelist, automatic ticket renewal disabled whitelist, and automatic ticket renewal enabled whitelist. The execution module is used to determine whether the currently executed business is the last one when it is identified as a similar business. If not, it sets the first step number of the next business to be the same as the first step number of the current business while looping through each whitelist, until all business processes are completed. After executing any whitelist business, it continues to execute the next whitelist business by changing the control parameters; otherwise, the process ends.

7. The apparatus according to claim 6, characterized in that, Different initial step values ​​are set for different business operations, and the device also includes: The judgment module is used to determine the type of business to be executed based on the initial step value or the control parameters of the business if the businesses are dissimilar.

8. A controller, characterized in that, include: A memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the control method based on a large number of loop instructions as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Data processing method and related equipment

    CN112785242A

  • Business processing method and device

    CN113362166A