Program-controlled Card Control Method, Program-controlled Card Control Device and System

Through the automated program-controlled card control method, the low efficiency and safety hazards of manually scheduling program-controlled cards in the power system are solved, and efficient and accurate power outage operation and user experience are achieved.

CN119126595BActive Publication Date: 2025-06-13BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411130299.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2025-06-13
Estimated Expiration
2044-08-16

AI Technical Summary

Technical Problem

In the power supply shutdown operation of the power system, manual dispatch of the program control card is longer and the processing efficiency is low, which can easily lead to equipment operation errors and affect the maintenance and construction plan and safety of the power system.

Method used

A program-controlled card control method is provided. By receiving card control instructions from the client, the target combination program-controlled card and its execution conditions of the program-controlled card to be executed are determined, and the program-controlled card to be executed is executed according to the preset execution order type, the target card execution result is obtained and sent to the client.

Benefits of technology

It improves the operation efficiency and accuracy of program-controlled cards in power outage operations, reduces manual intervention, enhances user experience, and promptly understands the progress of equipment control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119126595B_ABST
    Figure CN119126595B_ABST
Patent Text Reader

Abstract

This specification provides a program-controlled card control method, a program-controlled card control device, and a system. The program-controlled card control method includes: receiving a card control instruction from a client for at least one program-controlled card to be executed, where the card control instruction carries the card identification of each program-controlled card to be executed; determining the target combined program-controlled card corresponding to each program-controlled card to be executed according to the card identification of each program-controlled card to be executed, and obtaining the target combined execution condition of the target combined program-controlled card; when the target combined program-controlled card meets the target combined execution condition, executing each program-controlled card to be executed according to the preset execution order type corresponding to the target combined program-controlled card to obtain the target card execution result of each program-controlled card to be executed; and sending the target card execution result to the client. Thus, there is no need for manual operation of the program-controlled card to be executed, improving the operation efficiency and accuracy of power outage and power-on based on the program-controlled card.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the technical field of rail transit, and particularly to a method for controlling program-controlled cards. This specification also relates to a program-controlled card control device, a program-controlled card control system, a computing device, a computer-readable storage medium, and a computer program product. Background Art

[0002] The operation and maintenance of power systems are crucial for ensuring the reliability and security of power supply. With the increasing power demand and the growing complexity of the power grid, the power outage and restoration of an entire line, as an important operation and maintenance technology, have become increasingly prominent. The power outage and restoration of an entire line involve stopping and restoring power supply to a part or all of the power system to perform necessary maintenance and upgrade work, which is crucial for preventing faults and improving system performance.

[0003] In the actual application of the current power outage and restoration of an entire line, the configuration of program-controlled cards (hereinafter referred to as "PC cards") is crucial. After the PC cards are configured, the dispatcher needs to manually dispatch the PC cards to perform control operations on a series of devices. However, in an actual power system, multiple construction or maintenance plans may occur within a short period. In this case, simply manually triggering multiple PC cards to perform power outage and restoration operations consumes a long time and has low processing efficiency, affecting the dispatcher's control operations and further affecting the maintenance and construction plans of the power system. In addition, manually operating the PC cards to complete the control operations of devices may result in device operation errors, thereby triggering safety accidents. Summary of the Invention

[0004] In view of this, embodiments of this specification provide a method for controlling program-controlled cards. One or more embodiments of this specification also relate to a program-controlled card control device, a program-controlled card control system, a computing device, a computer-readable storage medium, and a computer program product to solve the technical defects existing in the prior art.

[0005] According to the first aspect of the embodiments of this specification, a method for controlling program-controlled cards is provided, including:

[0006] Receiving a card control instruction from a client for at least one program-controlled card to be executed, where the card control instruction carries the to-be-executed card identifiers of the program-controlled cards to be executed;

[0007] Determining, according to the to-be-executed card identifiers of the program-controlled cards to be executed, the target combined program-controlled cards corresponding to the program-controlled cards to be executed, and obtaining the target combined execution conditions of the target combined program-controlled cards;

[0008] When the target combined program control card meets the target combined execution condition, execute each to-be-executed program control card according to the preset execution order type corresponding to the target combined program control card, and obtain the target card execution result of each to-be-executed program control card, where the target card execution result includes the device control result for the to-be-controlled device based on each to-be-executed program control card;

[0009] Send the target card execution result to the client.

[0010] According to the second aspect of the embodiments of this specification, a program control card control device is provided, including:

[0011] A receiving module, configured to receive a card control instruction from a client for at least one to-be-executed program control card, where the to-be-executed card identifier of each to-be-executed program control card is carried in the card control instruction;

[0012] A determining module, configured to determine the target combined program control card corresponding to each to-be-executed program control card according to the to-be-executed card identifier of each to-be-executed program control card, and obtain the target combined execution condition of the target combined program control card;

[0013] An execution module, configured to execute each to-be-executed program control card according to the preset execution order type corresponding to the target combined program control card when the target combined program control card meets the target combined execution condition, and obtain the target card execution result of each to-be-executed program control card, where the target card execution result includes the device control result for the to-be-controlled device based on each to-be-executed program control card;

[0014] A sending module, configured to send the target card execution result to the client.

[0015] According to the third aspect of the embodiments of this specification, a program control card control system is provided, and the program control card control system includes a client and a program control card rule engine;

[0016] The client is configured to receive a card control request for at least one to-be-executed program control card, where the to-be-executed card identifier of each to-be-executed program control card is carried in the card control request; in response to the card control request, obtain the information to be reviewed; when the information to be reviewed passes the review, generate a card control instruction for each to-be-executed program control card, and send the card control instruction to the program control card rule engine;

[0017] The program-controlled card rule engine is configured to determine, according to the to-be-executed card identifiers of the to-be-executed program-controlled cards, the target combined program-controlled cards corresponding to the to-be-executed program-controlled cards, and obtain the target combined execution conditions of the target combined program-controlled cards; when the target combined program-controlled cards meet the target combined execution conditions, execute the to-be-executed program-controlled cards according to the preset execution sequence type corresponding to the target combined program-controlled cards, and obtain the target card execution results of the to-be-executed program-controlled cards, where the target card execution results include the device control results of the to-be-controlled devices based on the to-be-executed program-controlled cards; and send the target card execution results to the client.

[0018] According to a fourth aspect of the embodiments of the present specification, a computing device is provided, including:

[0019] A memory and a processor;

[0020] The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. When the computer programs / instructions are executed by the processor, the steps of the above program-controlled card control method are implemented.

[0021] According to a fifth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, which stores computer programs / instructions. When the computer programs / instructions are executed by a processor, the steps of the above program-controlled card control method are implemented.

[0022] According to a sixth aspect of the embodiments of the present specification, a computer program product is provided, including computer programs / instructions. When the computer programs / instructions are executed by a processor, the steps of the above program-controlled card control method are implemented.

[0023] An embodiment of the present specification realizes that when a card control instruction for a plurality of to-be-executed program-controlled cards is received, by determining the target combined program-controlled cards corresponding to the to-be-executed program-controlled cards and the target combined execution conditions of the target combined program-controlled cards, the to-be-executed program-controlled cards are executed according to the preset execution sequence type corresponding to the target combined program-controlled cards, without manual operation on the to-be-executed program-controlled cards, improving the operation efficiency and accuracy of power on / off realized based on program-controlled cards; after the to-be-executed program-controlled cards are executed, the target card execution results of the to-be-executed program-controlled cards can be obtained, and sending the target card execution results to the client can enable the client to timely understand the execution progress of the to-be-controlled devices based on the program-controlled cards, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is an architecture diagram of a program-controlled card control system provided by an embodiment of the present specification;

[0025] Figure 2aIt is a flowchart of the processing procedure of a program-controlled card control system provided by an embodiment of this specification;

[0026] Figure 2b It is a schematic diagram of the display interface of the execution result of a target card provided by an embodiment of this specification;

[0027] Figure 3 It is a flowchart of a program-controlled card control method provided by an embodiment of this specification;

[0028] Figure 4 It is a flowchart of generating a program-controlled card to be executed provided by an embodiment of this specification;

[0029] Figure 5 It is a flowchart of generating a target combined program-controlled card provided by an embodiment of this specification;

[0030] Figure 6 It is a flowchart of configuring a program-controlled card control interface provided by an embodiment of this specification;

[0031] Figure 7 It is a flowchart of the execution of a program-controlled card of the first execution sequence type provided by an embodiment of this specification;

[0032] Figure 8 It is a flowchart of the execution of a list of actions to be executed provided by an embodiment of this specification;

[0033] Figure 9 It is a flowchart of the execution of a program-controlled card of the second execution sequence type provided by an embodiment of this specification;

[0034] Figure 10 It is a flowchart of the processing procedure of a program-controlled card control method provided by an embodiment of this specification;

[0035] Figure 11 It is a schematic diagram of the structure of a program-controlled card control device provided by an embodiment of this specification;

[0036] Figure 12 It is a structural block diagram of a computing device provided by an embodiment of this specification. Detailed implementation manners

[0037] In the following description, many specific details are set forth in order to provide a thorough understanding of this specification. However, this specification can be implemented in many other ways different from those described herein, and those skilled in the art can make similar generalizations without departing from the connotation of this specification. Therefore, this specification is not limited by the specific implementations disclosed below.

[0038] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a", "the", and "said" used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0039] It should be understood that although the terms first, second, etc. may be used in one or more embodiments of this specification to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".

[0040] In addition, 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 one or more embodiments of this specification are all information and data that have been 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 laws, regulations, and standards of the relevant countries and regions, and corresponding operation entrances are provided for the user to choose to authorize or refuse.

[0041] First, the noun terms involved in one or more embodiments of this specification are explained.

[0042] Program-controlled card: In an integrated monitoring system (a system integrating multiple technologies and devices), it is an action set for equipment control in the power specialty.

[0043] ToolTip: A user interface element that is used to display a small text box when the user hovers the mouse over a certain interface element, providing additional information or tips about the element.

[0044] Configuration software: A software specifically used to configure or set up industrial automation systems, instruments, and control devices. It is mainly used to create and modify the graphical interface and logical control of the monitoring system. Configuration software enables engineers to design and implement complex control strategies through a graphical user interface (Graphical User Interface, GUI) without the need for low-level programming.

[0045] UZB: The format of the screen file generated in the configuration software.

[0046] Websocket: A network communication protocol that provides the ability for full-duplex communication over a single persistent connection. This means that clients (such as browsers) and servers can send and receive data simultaneously over the same connection, without the need to open a new connection for each communication like traditional HTTP requests.

[0047] Program-controlled card rule engine: A service used to process the execution of program-controlled cards. This service processes information interaction through the Websocket protocol and has the function of caching the published program-controlled cards in real time.

[0048] The operation and maintenance of the power system are crucial to ensure the reliability and security of power supply. With the increase in power demand and the complexity of the power grid, power outage and restoration across the line, as an important operation and maintenance technology, its importance has become increasingly prominent. Power outage and restoration across the line involve stopping and restoring power supply to a part or all of the power system to perform necessary maintenance and upgrade work, which is crucial for preventing faults and improving system performance.

[0049] In the actual application of power outage and restoration across the line at present, the configuration work of program-controlled cards is crucial. After the program-controlled cards are configured, the dispatcher needs to manually dispatch the program-controlled cards to execute control operations on a series of devices. However, in the actual power system, multiple construction or maintenance plans may occur in a short period of time. In this case, simply manually triggering multiple program-controlled cards to perform power outage and restoration operations consumes a long time and has low processing efficiency, affecting the dispatcher's control operations and further affecting the maintenance and construction plans of the power system. In addition, manually operating the program-controlled cards to complete the control operations on the devices may result in equipment operation errors, thereby triggering safety accidents.

[0050] In this specification, a method for controlling program-controlled cards is provided. This specification also relates to a program-controlled card control device, a program-controlled card control system, a computing device, a computer-readable storage medium, and a computer program product, which will be described in detail one by one in the following embodiments.

[0051] See Figure 1 , Figure 1 which shows an architecture diagram of a program-controlled card control system according to an embodiment of this specification.

[0052] The following are the embodiments of the program-controlled card control system provided in this specification:

[0053] The program-controlled card control system includes a client 102 and a program-controlled card rule engine 104;

[0054] The client 102 is configured to receive a card control request for at least one program-controlled card to be executed, where the card control request carries the card identification of each program-controlled card to be executed; in response to the card control request, obtain information to be reviewed; in the case where the information to be reviewed is approved, generate a card control instruction for each program-controlled card to be executed, and send the card control instruction to the program-controlled card rule engine 104;

[0055] The program-controlled card rule engine 104 is configured to determine the target combined program-controlled cards corresponding to each program-controlled card to be executed according to the card identification of each program-controlled card to be executed, and obtain the target combined execution conditions of the target combined program-controlled cards; in the case where the target combined program-controlled cards meet the target combined execution conditions, execute each program-controlled card to be executed according to the preset execution sequence type corresponding to the target combined program-controlled cards, and obtain the target card execution results of each program-controlled card to be executed, where the target card execution results include the device control results of the device to be controlled based on each program-controlled card to be executed; send the target card execution results to the client 102.

[0056] Among them, the program-controlled card to be executed refers to the program-controlled card that the user selects on the client and needs to be executed. The program-controlled card to be executed is set with the control authorities of multiple devices to be controlled, and one program-controlled card to be executed has a separate execution function. For example, the program-controlled card to be executed can execute "Power on the upward contact network of Subway Station A". The card control request is a request generated by the client to control at least one program-controlled card to be executed, and the card control request carries the card identification of the program-controlled card to be executed. The card identification to be executed can specifically be the coding serial number or card name of the program-controlled card to be executed, etc.

[0057] The information to be reviewed refers to the information used to review the card control request, and can specifically be the user information to be reviewed. For example, the information to be reviewed can be the account number and password of the user to be reviewed, etc. The information to be reviewed is used to verify whether the user to be reviewed has the control authority over the program-controlled card to be executed. The card control instruction is an instruction generated to control the program-controlled card to be executed in the case where the information to be reviewed passes, and can specifically be understood as the card control request after passing the review.

[0058] Specifically, after the client receives a card control request for at least one program control card to be executed, it obtains the identification of the card to be executed carried in the card control request, obtains the information to be audited, and audits the information to be audited. For example, if the information to be audited is the account and password of the user to be audited, then the account and password of the user to be audited are audited to determine whether the user to be audited has the control authority over each program control card to be executed. If not, it is determined that the audit of the information to be audited fails, and the program control card control process ends here. If so, it is determined that the audit of the information to be audited passes, a card control instruction for the program control card to be executed is generated, and the identification of the card to be executed of each program control card to be executed is carried in the card control instruction and sent to the program control card rule engine. The program control card rule engine controls and executes the program control card to be executed. In practical applications, the user can switch the operation screen on the client to the execution interface for executing the program control card to be executed, that is, the target program control card control interface described in the following content (for example, the full-line power-on / full-line power-off interface), select the program control card to be executed that needs to be executed in the execution interface, and click the card execution button of the program control card to be executed, then a card control request corresponding to the program control card to be executed can be generated.

[0059] In practical applications, multiple clients can be deployed in the program control card control system, and each client can interact with the program control card rule engine to achieve the control of the program control card to be executed. To improve the efficiency and security of the interaction between the client and the program control card rule engine, the Websocket protocol can be specifically used to implement the interaction between the client and the program control card rule engine.

[0060] Among them, the target combined program control card refers to the combined program control card to which the program control card to be executed belongs. The combined program control card includes multiple program control cards to be executed. The target combined execution condition refers to the precondition required to execute the target combined program control card. For example, the target combined execution condition can be the executable time period of the target combined program control card, etc. The preset execution order type specifically refers to the execution order type of each program control card to be executed in the target combined program control card set in advance. The preset execution order type includes the first execution order type and the second execution order type. The first execution order type is specifically sequential control execution, and the second execution order type is specifically parallel control execution; sequential control execution means executing each program control card to be executed in sequence according to the preset order, and parallel control execution means executing each program control card to be executed in parallel. The target card execution result is the card execution result corresponding to each program control card to be executed. According to the card execution results corresponding to each program control card to be executed, the target combined card execution result corresponding to the target combined program control card can be further determined.

[0061] Specifically, refer to Figure 2a the following, combined with the attached Figure 2aThe execution process of the program-controlled card control system is further described. Figure 2a It shows a flowchart of the processing process of a program-controlled card control system provided according to an embodiment of this specification. As Figure 2a shown, after receiving the card control instruction sent by the client, the program-controlled card rule engine determines the target combined program-controlled cards to which each to-be-executed program-controlled card belongs based on the to-be-executed card identifier carried in the card control instruction, and obtains the target combined execution conditions of the target combined program-controlled cards. It is judged whether the target combined program-controlled cards meet the target combined execution conditions. For example, if the target combined execution condition is the executable time period of the target combined program-controlled cards, it is necessary to judge whether the execution time of the target combined program-controlled cards that the program-controlled card rule engine needs to execute is within the executable time period of the target combined program-controlled cards. If not, it means that the target combined program-controlled cards do not meet the target combined execution conditions, and the program-controlled card control process ends here, and the message of the failure to execute each to-be-executed program-controlled card is sent to the client; if so, it means that the target combined program-controlled cards meet the target combined execution conditions. At this time, each to-be-executed program-controlled card can be executed according to the preset execution order type of the target combined program-controlled cards. If the preset execution order type is sequential control execution, each to-be-executed program-controlled card can be executed in sequence according to the preset order. If the preset execution order type is parallel control execution, each to-be-executed program-controlled card can be executed in parallel. After all the to-be-executed program-controlled cards are executed, the target card execution results of each to-be-executed program-controlled card can be obtained, and the target card execution results are sent to the client so that the client can know the execution results of each to-be-executed program-controlled card. Further, if the target card execution results of all the to-be-executed program-controlled cards are execution successes, the target combined card execution result of the target combined program-controlled cards is execution success. If any one of the to-be-executed program-controlled cards fails to execute, the target combined card execution result of the target combined program-controlled cards is execution failure.

[0062] Furthermore, the display interfaces of the target card execution results and the target combined card execution results on the client are as Figure 2b shown. Figure 2b It shows a schematic diagram of the display interface of the target card execution results provided according to an embodiment of this specification. As Figure 2b shown, taking the to-be-executed program-controlled card 1 and the to-be-executed program-controlled card 2 as examples for description, both the to-be-executed program-controlled card 1 and the to-be-executed program-controlled card 2 belong to the target combined program-controlled card 1. Among them, the to-be-executed action list 1-1 is a to-be-executed action list of the to-be-executed program-controlled card 1, and the to-be-executed action 1-1-1 is a to-be-executed action in the to-be-executed action list 1-1; the to-be-executed action list 2-1 is a to-be-executed action list of the to-be-executed program-controlled card 2, and the to-be-executed action 2-1-1 is a to-be-executed action in the to-be-executed action list 2-1. In as Figure 2bIn the display interface of the execution result of the target card, the execution status of the to-be-executed program control card 1 and the to-be-executed program control card 2 is also displayed. That is, the execution of the to-be-executed program control card 1 fails, and the execution of the to-be-executed program control card 2 succeeds. Therefore, the execution status corresponding to the target combined program control card is execution failure. In addition, the execution status and the reason for refusal of the to-be-executed action are also displayed in the interface, as well as the start time and end time when each program control card and the to-be-executed action are executed. After the user selects the to-be-executed program control card, the user controls the execution of the to-be-executed program control card through the "Execute", "Pause", "Continue", and "Terminate" buttons in the interface.

[0063] As described above, multiple clients can be deployed in the program control card control system, and each client can interact with the program control card rule engine. Therefore, during the interaction between multiple clients and the program control card rule engine, it is possible that multiple clients control the same program control card at the same time. That is, multiple clients send card control instructions for the same to-be-executed program control card to the program control card rule engine. At this time, the program control card rule engine, according to the order of receiving the card control instructions, only responds to the first received card control instruction to execute the corresponding to-be-executed program control card, and sets the execution status of the to-be-executed program control card to in execution. The program control card in execution cannot be executed again to prevent device wear caused by multiple device controls. However, the program control card rule engine can feedback the execution process of the to-be-executed program control card to each client so that the user can obtain the execution process of the to-be-executed program control card based on each client.

[0064] The program control card control system provided in this specification includes at least one client and a program control card rule engine. The user can select the to-be-executed program control card to be executed on the client. After the to-be-reviewed information is reviewed and passed, a card control instruction for the to-be-executed program control card is generated, and the generated card control instruction is sent to the program control card rule engine so that the program control card rule engine controls the to-be-executed program control card. In this way, the user can select the to-be-executed program control card according to the actual application request, and the determined to-be-executed program control card is controlled by the program control card rule engine, without manually executing the to-be-executed program control card, improving the efficiency and accuracy of executing the to-be-executed program control card and reducing the pressure of manual control. Further, the program control card rule engine can determine the target combined program control card to which the to-be-executed program control card belongs, and determine whether the target combined program control card meets its corresponding target combined execution condition. Only when the target combined program control card meets the target combined execution condition, will the to-be-executed program control card be executed, thereby further ensuring the security of the to-be-executed program control card.

[0065] See Figure 3 , Figure 3The figure shows a flowchart of a program-controlled card control method provided according to an embodiment of this specification, which specifically includes the following steps:

[0066] Step 302: Receive a card control instruction from the client for at least one program-controlled card to be executed. Among them, the card control instruction carries the card identification of each program-controlled card to be executed.

[0067] The program-controlled card control method is applied to a program-controlled card rule engine. In practical applications, the program-controlled card rule engine realizes the control and execution of the program-controlled card to be executed by receiving the card control instruction sent by the client. Through the card identification of the program-controlled card to be executed carried in the card control instruction, it is beneficial for the program-controlled card rule engine to determine the program-controlled card to be executed that needs to be executed.

[0068] Step 304: According to the card identification of each program-controlled card to be executed, determine the target combined program-controlled card corresponding to each program-controlled card to be executed, and obtain the target combined execution condition of the target combined program-controlled card.

[0069] After receiving the card control instruction sent by the client, the program-controlled card rule engine determines the program-controlled card to be executed through the card identification of the program-controlled card to be executed carried in the card control instruction. Since the program-controlled cards to be executed are all deployed in each combined program-controlled card, during the execution of the program-controlled card to be executed, the program-controlled card to be executed is executed as a part of its corresponding target combined program-controlled card. Therefore, before executing the program-controlled card to be executed, it is also necessary to determine the target combined program-controlled card corresponding to the program-controlled card to be executed, and the target combined execution condition of the target combined program-controlled card. In the subsequent process, according to the target combined execution condition, it is determined whether the target combined program-controlled card can be executed, so as to improve the security of executing the program-controlled card to be executed.

[0070] Before executing each program-controlled card to be executed, the configuration work of each program-controlled card to be executed is also crucial. After the configuration of the program-controlled card to be executed is completed, the controlled device can be accurately controlled based on the program-controlled card to be executed. The following separately describes the specific configuration processes of the program-controlled card to be executed and the target combined program-controlled card.

[0071] Based on this, in a specific embodiment provided in this specification, the method further includes:

[0072] Obtain the card identification, card execution condition, and list of actions to be executed of the initial program-controlled card;

[0073] Add the card identification, the card execution condition, and the list of actions to be executed to the initial program-controlled card to generate a program-controlled card to be executed.

[0074] Among them, the initial program control card refers to a blank program control card that has not been configured or a program control card that has been configured but needs to be adjusted. The card execution condition refers to the precondition that needs to be met for executing the to-be-executed program control card. For example, the card execution condition can be the permission position of the device to be controlled, the control mode of the device to be controlled, etc. The to-be-executed action list refers to a list of device control actions that need to be executed by the to-be-executed program control card and are preset. The to-be-executed action list includes multiple to-be-executed actions. For example, the to-be-executed action can be power-on for Subway Station A, etc.

[0075] Specifically, obtain the to-be-executed card identifier, card execution condition, and execution action list corresponding to the initial program control card, and add the obtained to-be-executed card identifier, card execution condition, and to-be-executed action list to the initial program control card to generate a to-be-executed program control card. Further, in practical applications, since there are usually several devices to be controlled deployed on the subway line, the subway line conditions are often complex and changeable, and the device states corresponding to each device to be controlled are also different. Therefore, after obtaining the to-be-executed action list, the action execution conditions corresponding to each to-be-executed action in the to-be-executed action list can be further obtained to determine whether the to-be-executed action meets its corresponding action execution condition before executing each to-be-executed action, and then proceed with the subsequent execution process. The action execution condition is the precondition that needs to be met for executing the to-be-executed action. For example, the action execution condition can be whether the device to be controlled is faulty, etc. Further still, to accurately control the device to be controlled to execute the to-be-executed action, device points and the point values of the device points can be set for each to-be-executed action respectively. The device point refers to the device dimension corresponding to the execution of the to-be-executed action; the point value is the execution standard corresponding to the device point. For example, if the to-be-executed action is power-on for Subway Station A, the device points can be current, voltage, etc., the point value of the current device point can be 5A, and the point value of the voltage device point can be 750V.

[0076] The following combines the attached Figure 4 to illustrate the process of generating the to-be-executed program control card. Refer to Figure 4 , Figure 4 shows a flowchart of generating a to-be-executed program control card according to an embodiment of this specification. As Figure 4As shown, obtain the identification of the card to be executed, add the identification of the card to be executed to the initial programmed control card, add the obtained card execution conditions to the initial programmed control card, add the actions to be executed and the corresponding action execution conditions to the initial programmed control card. Furthermore, set the corresponding device points and the point values of the device points for each action to be executed. At this time, one action to be executed is added. If it is necessary to continue adding actions to be executed to the initial programmed control card, continue to execute the steps of adding actions to be executed until all actions to be executed are added. If it is not necessary to continue adding actions to be executed to the initial programmed control card, stop adding actions to be executed to the initial programmed control card and generate a programmed control card to be executed based on the initial programmed control card with all actions added.

[0077] Since in the process of configuring and generating the programmed control card to be executed, it is necessary to add the devices to be controlled and the actions to be executed by the devices to be controlled to the programmed control card to be executed. In practical applications, there are a large number of devices to be controlled. To avoid errors in adding the devices to be controlled, they can be classified according to the station and the up and down directions of the train. For example, for the programmed control cards to be executed of "Power on the up-line catenary at Station A" and "Power on the down-line catenary at Station A", add the devices to be controlled in the up-line of Station A to the programmed control card to be executed of "Power on the up-line catenary at Station A", and add the devices to be controlled in the down-line of Station A to the programmed control card to be executed of "Power on the down-line catenary at Station A".

[0078] After generating the programmed control card to be executed, the target combined programmed control card can be generated based on the programmed control card to be executed. The specific implementation method is as follows:

[0079] In a specific embodiment provided in this specification, the method further includes:

[0080] Obtain the target combined card identification, target combined execution conditions, at least one programmed control card to be executed, and a preset execution order type of the initial combined programmed control card;

[0081] Add the target combined card identification, the target combined execution conditions, the at least one programmed control card to be executed, and the preset execution order type to the initial combined programmed control card to generate a target combined programmed control card.

[0082] Among them, the initial combined programmed control card refers to a blank combined programmed control card that has not been configured or a combined programmed control card that has been configured but needs to be adjusted. The target combined card identification can specifically be the coding serial number or card name of the target combined programmed control card, etc.

[0083] Specifically, obtain the target combination card identifier, target combination execution condition, at least one program control card to be executed, and preset execution order type of the initial combination program control card, and add the obtained target combination card identifier, target combination execution condition, at least one program control card to be executed, and preset execution order type to the initial combination program control card to generate a target combination program control card. Further, in practical applications, since the target combination program control card includes multiple program control cards to be executed, in order to ensure that the multiple program control cards to be executed can be executed in an orderly manner, the interval time between each program control card to be executed can also be preset, for example, 1 second, 2 seconds, etc.

[0084] The following combines the attached Figure 5 to illustrate the process of generating the target combination program control card. Refer to Figure 5 , Figure 5 shows a flowchart of generating a target combination program control card according to an embodiment of the present specification. As Figure 5 shown, obtain the target combination card identifier, add the target combination card identifier to the initial combination program control card, and add the obtained target combination execution condition to the initial combination program control card. Obtain the program control cards to be executed that have been configured, and preset the preset execution order type of each program control card to be executed in the target combination program control card, specifically the first execution order type or the second execution order type. Further, in the case where the preset execution order type is set to the second execution order type, the number of program control cards to be executed that can be controlled in parallel can also be customized. After setting the preset execution order type, add each program control card to the corresponding target combination program control card. In order to ensure that the multiple program control cards to be executed can be executed in an orderly manner, the interval time between each program control card to be executed can also be preset. At this time, one program control card to be executed is added. If it is necessary to continue adding program control cards to be executed to the initial combination program control card, continue to execute the step of adding program control cards to be executed until the program control cards to be executed are added; if it is not necessary to continue adding program control cards to be executed to the initial combination program control card, no longer add program control cards to be executed to the initial combination program control card, and generate a target combination program control card based on the added initial combination program control card.

[0085] After configuring the program control cards to be executed and the target combination program control card, to facilitate the user to control the program control cards to be executed, a visual program control card control interface can be created based on the configured program control cards to be executed and the target combination program control card. After the program control card control interface is created, the user can directly control the program control cards to be executed in the program control card control interface to achieve the control of each device to be controlled.

[0086] Refer to Figure 6 , Figure 6The figure shows a flowchart for configuring a programmed card control interface according to an embodiment of this specification. Specifically, a configuration software or a browser-based Web application can be used to create and configure the programmed card control interface. As Figure 6 shown, in the configuration software (only as an example), create an initial programmed card control interface, add an execution button for the programmed card to be executed in the initial programmed card control interface, and bind the identification of the programmed card to be executed to the ToolTip of the execution button for the programmed card to be executed. Add an execution button for the target combined programmed card in the initial programmed card control interface, and bind the identification of the target combined card to the ToolTip of the execution button for the target combined programmed card. After adding the execution button for the programmed card to be executed and the execution button for the target combined programmed card, add an execution script for the target combined programmed card to the script file corresponding to the initial programmed card control interface to generate a UZB file corresponding to the target programmed card control interface, and generate the target programmed card control interface based on the UZB file.

[0087] Based on this, the user can also send a card control instruction to the programmed card rule engine by clicking the execution button for the target combined programmed card in the target programmed card control interface of the client. At this time, the card control instruction carries the identification of the target combined card of the target combined programmed card, so as to realize the selection of all programmed cards to be executed under the same target combined programmed card. Further, since during the execution of the programmed card to be executed, the programmed card to be executed is executed as a part of its corresponding target combined programmed card, in order to improve the execution efficiency of the programmed card to be executed, in the card control instruction received by the programmed card rule engine, in addition to carrying the identification of the programmed card to be executed corresponding to the programmed card to be executed, it can also carry the identification of the target combined card of the target combined programmed card corresponding to the programmed card to be executed, so that after the programmed card rule engine obtains the identification of the programmed card to be executed and the identification of the target combined card, it can directly obtain the target combined execution condition corresponding to the target combined programmed card. Specifically, an example of a card control instruction carrying the identification of the programmed card to be executed and the identification of the target combined card is as follows:

[0088]

[0089]

[0090] The card identification carried in the card control instruction may include the identification of the programmed card to be executed, the identification of the target combined card, the identification of the programmed card to be executed and the identification of the target combined card, and can be specifically determined according to the actual application situation. This specification does not make a limitation here.

[0091] The program-controlled card control method provided in this specification can, before executing the program-controlled card to be executed, respectively configure and generate the program-controlled card to be executed and the target combined program-controlled card according to the actual application situation. During the process of generating the program-controlled card to be executed, multiple actions to be executed are added to the program-controlled card to be executed, increasing the comprehensiveness of device control over the device to be controlled; during the process of generating the target combined program-controlled card, after adding multiple program-controlled cards to be executed, the interval time between the program-controlled cards to be executed can be further set to ensure that during the subsequent execution of the program-controlled cards to be executed, the program-controlled cards to be executed can be executed in an orderly manner, improving the execution efficiency and accuracy of the program-controlled cards to be executed.

[0092] Step 306: When the target combined program-controlled card meets the target combined execution condition, execute each program-controlled card to be executed according to the preset execution order type corresponding to the target combined program-controlled card, and obtain the target card execution result of each program-controlled card to be executed, where the target card execution result includes the device control result of the device to be controlled based on each program-controlled card to be executed.

[0093] After determining the target combined program-controlled card corresponding to the program-controlled card to be executed and the target combined execution condition according to the program-controlled card identification to be executed, it is possible to determine whether each program-controlled card to be executed can be executed by judging whether the target combined program-controlled card meets the target combined execution condition. If the target combined program-controlled card meets the target combined execution condition, it means that each program-controlled card to be executed can be executed. Therefore, each program-controlled card to be executed can be executed according to the preset execution order type corresponding to the target combined program-controlled card to obtain the target card execution result of each program-controlled card to be executed.

[0094] Based on this, in a specific embodiment provided in this specification, executing each program-controlled card to be executed according to the preset execution order type corresponding to the target combined program-controlled card includes:

[0095] Obtain the card execution condition corresponding to each program-controlled card to be executed and the list of actions to be executed of each program-controlled card to be executed;

[0096] Execute each program-controlled card to be executed according to the preset execution order type, each card execution condition, and each list of actions to be executed.

[0097] In practical applications, after determining that the target combined program-controlled card corresponding to the program-controlled card to be executed meets its corresponding target combined execution condition, it is also necessary to further judge whether each program-controlled card to be executed meets its corresponding card execution condition. After the program-controlled card to be executed meets its corresponding card execution condition, then based on the list of actions to be executed corresponding to the program-controlled card to be executed, execute the program-controlled card to be executed, so that the device to be controlled added to the program-controlled card to be executed executes the actions to be executed in the list of actions to be executed.

[0098] Specifically, after determining that the target combined program control card corresponding to the program control card to be executed meets its corresponding target combined execution condition, obtain the card execution condition corresponding to the program control card to be executed and the list of actions to be executed of the program control card to be executed, and execute the program control card to be executed according to the preset execution sequence type, card execution condition, and list of actions to be executed of the target combined program control card. Since the preset execution sequence type specifically includes a first execution sequence type, i.e., sequential control execution, and a second execution sequence type, i.e., parallel control execution, therefore, when the preset execution sequence types of the target combined program control cards are different, the execution methods corresponding to each program control card to be executed are also different. The following separately explains the execution process of executing the program control card to be executed based on the first execution sequence type and the execution process of executing the program control card to be executed based on the second execution sequence type.

[0099] In a specific embodiment provided in this specification, executing each program control card to be executed according to the preset execution sequence type, each card execution condition, and each list of actions to be executed includes:

[0100] When the preset execution sequence type is the first execution sequence type, determine the program control card to be processed among the program control cards to be executed, and obtain the card execution condition to be processed of the program control card to be processed, where the program control card to be processed is any one of the program control cards to be executed;

[0101] Judge whether the program control card to be processed meets the card execution condition to be processed;

[0102] When the program control card to be processed meets the card execution condition to be processed, obtain the list of actions to be processed of the program control card to be processed, execute the program control card to be processed based on the list of actions to be processed, return to execute the step of determining the program control card to be processed among the program control cards to be executed and obtaining the card execution condition to be processed of the program control card to be processed until the program control card to be processed is the termination program control card;

[0103] When the program control card to be processed does not meet the card execution condition to be processed, return to execute the step of determining the program control card to be processed among the program control cards to be executed and obtaining the card execution condition to be processed of the program control card to be processed until the program control card to be processed is the termination program control card.

[0104] Among them, the program control card to be processed is any one of the program control cards to be executed, and the execution condition of the card to be processed is the card execution condition of the program control card to be processed. The list of actions to be processed is the list of actions to be executed for the program control card to be processed. The terminating program control card is the only program control card to be executed among the program control cards to be executed that has not been executed. If the program control cards to be executed are set with a preset card execution order, the terminating program control card is the last program control card to be executed among the program control cards to be executed.

[0105] Specifically, the following combines the attached Figure 7 to explain the execution process of executing each program control card to be executed based on the first execution order type. Refer to Figure 7 , Figure 7 shows a program control card execution flow chart of a first execution order type provided according to an embodiment of the present specification. As Figure 7 shown, when the preset execution order type is the first execution order type, that is, sequentially control and execute each program control card to be executed, determine the program control card to be processed among the program control cards to be executed, and obtain the execution condition of the card to be processed of the program control card to be processed, and determine whether the program control card to be processed meets the execution condition of the card to be processed. If so, further obtain the list of actions to be processed of the program control card to be processed, and execute the program control card to be processed based on each action to be executed in the list of actions to be processed. If the program control card to be processed is not the terminating program control card, return to execute the step of determining the program control card to be processed among the program control cards to be executed until the determined program control card to be processed is the terminating program control card. If not, directly return to execute the step of determining the program control card to be processed among the program control cards to be executed until the determined program control card to be processed is the terminating program control card.

[0106] Furthermore, after obtaining the list of actions to be processed, since there are often multiple actions to be executed stored in the list of actions to be processed, it is also necessary to execute each action to be executed in the list of actions to be processed.

[0107] Based on this, in a specific embodiment provided in the present specification, executing the program control card to be processed based on the list of actions to be processed includes:

[0108] Obtain the action execution conditions of each action to be executed in the list of actions to be processed;

[0109] Determine the action to be executed for the program control card to be processed in the list of actions to be processed, and obtain the action execution condition of the action to be executed, where the action to be executed is any one of the actions to be executed in the list of actions to be processed;

[0110] Determine whether the action to be executed meets the action execution condition;

[0111] When the to-be-processed execution action satisfies the to-be-processed action execution condition, execute the to-be-processed execution action on the to-be-controlled device, return to execute the step of determining the to-be-processed execution action of the to-be-processed program control card in the to-be-processed action list, and obtain the to-be-processed action execution condition of the to-be-processed execution action, until the to-be-processed execution action is the termination execution action;

[0112] When the to-be-processed execution action does not satisfy the to-be-processed action execution condition, return to execute the step of determining the to-be-processed execution action of the to-be-processed program control card in the to-be-processed action list, and obtain the to-be-processed action execution condition of the to-be-processed execution action, until the to-be-processed execution action is the termination execution action.

[0113] Wherein, the to-be-processed execution action is any one of the to-be-executed actions in the to-be-processed action list. The to-be-processed action execution condition is the action execution condition of the to-be-processed execution action. The termination execution action is the only to-be-executed action in the to-be-executed action list that has not been executed. If the to-be-executed actions in the to-be-executed action list are set with a preset action execution order, the termination execution action is the last to-be-executed action among the to-be-executed actions.

[0114] Specifically, the following explains the execution process of the to-be-executed action list in conjunction with the attached Figure 8 The execution process of the to-be-executed action list is explained. Refer to Figure 8 , Figure 8 shows an execution flow chart of a to-be-executed action list provided according to an embodiment of the present specification. As Figure 8 shown, after obtaining the action execution conditions of the to-be-executed actions in the to-be-processed action list, determine the to-be-processed execution action in the to-be-processed action list, and obtain the to-be-processed action execution condition of the to-be-processed execution action. Judge whether the to-be-processed execution action satisfies the to-be-processed action execution condition. If so, control the to-be-controlled device to execute the to-be-processed execution action. If the to-be-processed execution action is not the termination execution action, return to execute the step of determining the to-be-processed execution action in the to-be-processed action list until the determined to-be-processed execution action is the termination execution action. If not, directly return to execute the step of determining the to-be-processed execution action in the to-be-processed action list until the determined to-be-processed execution action is the termination execution action.

[0115] Further, in practical applications, each device to be controlled often has device verification conditions provided at the factory. To further improve the accuracy and security of controlling the devices to be controlled, when determining whether the to-be-processed execution action meets the to-be-processed action execution conditions, it is also necessary to determine whether the to-be-processed execution action meets the device verification conditions. For example, judge the control permission position (whether it is local) of the to-be-processed execution action, the control state (remote control or local control), the shielding state, the tagging state (maintenance tag, grounding tag or prohibition tag), the occupancy state, etc. If the to-be-processed execution action meets both the to-be-processed action execution conditions and the device verification conditions, it is considered that the to-be-processed execution action can be executed.

[0116] When the preset execution order type is the first execution order type, that is, sequentially controlling each to-be-executed program control card, it can make each to-be-executed program control card be executed in an orderly manner, avoid omission, and improve the execution accuracy of the to-be-executed program control card.

[0117] In another specific implementation manner provided in this specification, according to the preset execution order type, each card execution condition, and each to-be-executed action list, executing each to-be-executed program control card includes:

[0118] When the preset execution order type is the second execution order type, determine the preset execution card quantity corresponding to the target combined program control card;

[0119] According to the preset execution card quantity, determine the corresponding number of to-be-processed program control cards in each to-be-executed program control card, and respectively obtain the to-be-processed card execution conditions of each to-be-processed program control card;

[0120] Respectively judge whether each to-be-processed program control card meets the to-be-processed card execution conditions of each to-be-processed program control card;

[0121] When the to-be-determined program control card meets the to-be-determined card execution conditions, obtain the to-be-determined action list of the to-be-determined program control card, and execute the to-be-determined program control card based on the to-be-determined action list, where the to-be-determined program control card is any one of the to-be-processed program control cards;

[0122] When the to-be-determined program control card does not meet the to-be-determined card execution conditions, determine that the execution of the to-be-determined program control card fails.

[0123] Among them, the preset execution card quantity refers to the quantity of to-be-executed program control cards controlled in parallel set in advance. The to-be-determined program control card is any one of the to-be-processed program control cards. The to-be-determined action list refers to the to-be-executed action list of the to-be-determined program control card.

[0124] Specifically, when it is determined that the preset execution order type is the second execution order type, that is, the program control cards to be executed are controlled and executed in parallel. Determine the preset number of execution cards corresponding to the target combined program control card. According to the preset number of execution cards, determine the same number of program control cards to be processed among the program control cards to be executed. Obtain the execution conditions of the program control cards to be processed for each program control card to be processed, and respectively determine whether each program control card to be processed meets the corresponding execution conditions of the program control card to be processed. Taking any program control card (program control card to be determined) in the program control cards to be processed as an example, if the program control card to be determined meets the corresponding execution conditions of the card to be determined, obtain the action list to be determined of the program control card to be determined, and execute the program control card to be determined based on each action to be executed in the action list to be determined; if the program control card to be determined does not meet the corresponding execution conditions of the card to be determined, it can be determined that the execution of the program control card to be determined fails. Based on the same execution process as above, each program control card to be executed is executed respectively until all the program control cards to be executed are executed, and the process ends.

[0125] The following combination of appendices Figure 9 explains the execution process of executing each program control card to be executed based on the second execution order type. See Figure 9 , Figure 9 shows a program control card execution flow chart of a second execution order type provided according to an embodiment of the present specification. As Figure 9 shown, taking the preset number of execution cards as n as an example for explanation (hereinafter taking the program control card to be processed 1 as an example), obtain the execution conditions of the program control card to be processed 1, and determine whether the program control card to be processed 1 meets the execution conditions of the program control card to be processed. If so, obtain the action list 1 to be processed of the program control card to be processed 1, and sequentially execute each action to be executed in the action list 1 to be processed. If not, directly determine that the execution of the program control card to be processed 1 fails. Since the program control card to be processed 1, the program control card to be processed 2... the program control card to be processed n are controlled and executed in parallel, that is, when the preset number of execution cards is n, n program control cards to be processed are executed simultaneously. Therefore, the execution processes of the program control card to be processed 2... the program control card to be processed n are the same as that of the program control card to be processed 1, and are not described in detail in this specification. Until all the program control cards to be executed are executed, it means that the target combined program control card is executed, and the parallel execution process ends.

[0126] Furthermore, similar to the above first execution order type, after obtaining the action list to be processed, it is also necessary to execute each action to be executed in the action list to be processed.

[0127] In another specific embodiment provided in this specification, executing the program control card to be determined based on the action list to be determined includes:

[0128] Obtain the action execution conditions for each to-be-executed action in the to-be-determined action list;

[0129] Determine the to-be-determined execution action of the to-be-determined program control card in the to-be-determined action list, and obtain the to-be-determined action execution condition of the to-be-determined execution action, where the to-be-determined execution action is any to-be-executed action in the to-be-determined action list;

[0130] Judge whether the to-be-determined execution action meets the to-be-determined action execution condition;

[0131] When the to-be-determined execution action meets the to-be-determined action execution condition, execute the to-be-determined execution action on the to-be-controlled device, return to the step of determining the to-be-determined execution action of the to-be-determined program control card in the to-be-determined action list, and obtain the to-be-determined action execution condition of the to-be-determined execution action, until the to-be-determined execution action is the termination execution action;

[0132] When the to-be-determined execution action does not meet the to-be-determined action execution condition, return to the step of determining the to-be-determined execution action of the to-be-determined program control card in the to-be-determined action list, and obtain the to-be-determined action execution condition of the to-be-determined execution action, until the to-be-determined execution action is the termination execution action.

[0133] Wherein, the to-be-determined execution action is any one in the to-be-determined action list. The to-be-determined action execution condition is the action execution condition of the to-be-determined execution action.

[0134] Specifically, after obtaining the action execution conditions for each to-be-executed action in the to-be-determined action list, determine the to-be-determined execution action of the to-be-determined program control card in the to-be-determined action list, and obtain the to-be-determined action execution condition of the to-be-determined execution action. Judge whether the to-be-determined execution action meets the to-be-determined action execution condition. If so, control the to-be-controlled device to execute the to-be-determined execution action. If the to-be-determined execution action is not the termination execution action, then return to the step of determining the to-be-determined execution action in the to-be-determined action list, until the determined to-be-determined execution action is the termination execution action. If not, then directly return to the step of determining the to-be-determined execution action in the to-be-determined action list, until the determined to-be-determined execution action is the termination execution action. Correspondingly, when judging whether the to-be-determined execution action meets the to-be-determined action execution condition, it is also necessary to judge whether the to-be-determined execution action meets the device verification condition. If the to-be-determined execution action meets both the to-be-determined action execution condition and the device verification condition, it is considered that the to-be-determined execution action can be executed.

[0135] It should be noted that the execution processes of the to-be-executed program control cards based on the first execution order type and the to-be-executed program control cards based on the second execution order type only differ in the execution order type, and the execution processes for any to-be-executed program control card are the same.

[0136] When the preset execution order type is the second execution order type, that is, when controlling and executing each to-be-executed program control card, multiple to-be-executed program control cards can be executed in parallel simultaneously. In the case of a large number of to-be-executed program control cards, the execution efficiency of the to-be-executed program control cards can be greatly improved.

[0137] In practical applications, the client and the program control card rule engine can use the Websocket protocol for information interaction to achieve real-time information interaction between the client and the program control card rule engine. Based on this, during the execution process of each to-be-executed program control card, the execution status and the reason for the execution status of each to-be-executed program control card and each to-be-executed action can be fed back to the client based on the Websocket protocol.

[0138] In a specific embodiment provided in this specification, the method further includes:

[0139] When the to-be-processed program control card does not meet the to-be-processed card execution condition, determine that the to-be-processed card execution status of the to-be-processed program control card is execution failure, and generate a reason for the rejection of the to-be-processed program control card due to execution failure according to the to-be-processed card execution condition;

[0140] When the to-be-processed execution action does not meet the to-be-processed action execution condition, determine that the to-be-processed action execution status of the to-be-processed execution action is execution failure, and generate a reason for the rejection of the to-be-processed execution action due to execution failure according to the to-be-processed action execution condition;

[0141] Send the to-be-processed card execution status, the reason for the rejection of the to-be-processed card, the to-be-processed action execution status, and the reason for the rejection of the to-be-processed action to the client.

[0142] Among them, the reason for the rejection of the to-be-processed card refers to the reason for the execution failure of the to-be-processed program control card. The reason for the rejection of the to-be-processed action refers to the reason for the execution failure of the to-be-processed execution action.

[0143] Specifically, during the execution of each pending program-controlled card and each pending action, there may be a situation where some pending program-controlled cards and some pending actions fail to execute. At this time, the reasons for the failure of the pending program-controlled card and the failure of the pending action can be determined and fed back to the client. Based on this, when it is determined that the pending program-controlled card does not meet the pending card execution condition, the pending card execution state of the pending program-controlled card is determined to be execution failure, and according to the pending card execution condition, the pending card refusal reason for the failure of the pending program-controlled card execution is generated; when the pending action does not meet the pending action execution condition, the pending action execution state of the pending action is determined to be execution failure, and according to the pending action execution condition, the pending action refusal reason for the failure of the pending action execution is generated. Then, the pending card execution state (i.e., execution failure), the pending card refusal reason, the pending action execution state (i.e., execution failure) and the pending action refusal reason are sent to the client to realize the display of the real-time execution state of the pending program-controlled card to the user.

[0144] In actual applications, the target combination of program-controlled cards may not meet the target combination execution conditions. In this case, it means that each program-controlled card to be executed cannot be executed, and the execution status and the reason for rejection also need to be sent to the client.

[0145] In a specific implementation provided in this specification, the method further includes:

[0146] In the case where the target combination program-controlled card does not satisfy the target combination execution condition, determining that the target card execution state of the target combination program-controlled card is execution failure;

[0147] According to the target combination execution condition, a target card rejection reason for failure of the target combination program-controlled card execution is generated;

[0148] The target card execution status and the target card rejection reason are sent to the client.

[0149] The target card execution state refers to the execution state of the target combination program control card, that is, the execution state of each program control card to be executed. The target card refusal reason refers to the reason why the target combination program control card fails to execute, that is, the reason why each program control card to be executed fails to execute.

[0150] Specifically, when the target combined program control card does not meet the target combined execution condition, it is determined that the target card execution status of the target combined program control card is execution failure, that is, it is not feasible to perform combined execution on each to-be-executed program control card. Therefore, each to-be-executed program control card will not be executed. According to the target combined execution condition, a target card rejection reason for the execution failure of the target combined program control card is generated, and the target card execution status (i.e., execution failure) and the target card rejection reason are sent to the client, so that the user can know the execution status of the target combined program control card and determine the rejection reason for the execution failure.

[0151] Through the Websocket protocol, the execution status of each to-be-executed program control card, the execution status of each to-be-executed action, and the reason for the execution status can be fed back to the client in real time, so that the user can take relevant measures in a timely manner.

[0152] The method for controlling program control cards provided in this specification executes each to-be-executed program control card through a program control card rule engine to achieve the control of each to-be-controlled device. For example, power on / off, etc., which minimizes human intervention and improves the accuracy of operations; in the case of execution failure of the to-be-executed program control card, the reason for the execution failure is generated and fed back to the client in real time, which can shorten the time to determine the failure reason when the to-be-controlled device fails in the subsequent processing process.

[0153] Step 308: Send the target card execution result to the client.

[0154] After obtaining the target card execution result corresponding to each to-be-executed program control card, the target card execution result, that is, the execution result obtained after each to-be-executed program control card is executed, is sent to the client.

[0155] Furthermore, the execution status of the to-be-executed program control card specifically includes not executed, in delay, in execution, execution success, execution failure, etc. In addition to sending the execution status of execution failure and the execution result of execution success to the client as described above, the execution statuses such as not executed, in delay, in execution, etc. can also be fed back to the client in real time, so that the user can understand the execution progress of the to-be-executed program control card in real time. If the user needs to pause the execution of a certain to-be-executed program control card, a pause instruction can be sent to the program control card rule engine through the client during the execution process to pause the to-be-executed program control card, so that the execution status of the to-be-executed program control card is the pause state.

[0156] The program-controlled card control method provided in this specification includes: receiving a card control instruction from a client for at least one program-controlled card to be executed, where the card control instruction carries the to-be-executed card identifiers of each program-controlled card to be executed; determining the target combined program-controlled cards corresponding to each program-controlled card to be executed according to the to-be-executed card identifiers of each program-controlled card to be executed, and obtaining the target combined execution conditions of the target combined program-controlled cards; when the target combined program-controlled cards meet the target combined execution conditions, executing each program-controlled card to be executed according to the preset execution sequence type corresponding to the target combined program-controlled cards, and obtaining the target card execution results of each program-controlled card to be executed, where the target card execution results include the device control results for the device to be controlled based on each program-controlled card to be executed; and sending the target card execution results to the client.

[0157] One or more embodiments of this specification achieve that when receiving a card control instruction for multiple program-controlled cards to be executed, by determining the target combined program-controlled cards corresponding to the program-controlled cards to be executed and the target combined execution conditions of the target combined program-controlled cards, the program-controlled cards to be executed are executed according to the preset execution sequence type corresponding to the target combined program-controlled cards, without manual operation on the program-controlled cards to be executed, improving the operation efficiency and accuracy of power on / off based on program-controlled cards; after the execution of the program-controlled cards to be executed is completed, the target card execution results of each program-controlled card to be executed can be obtained, and sending the target card execution results to the client can enable the client to timely understand the execution progress of the program-controlled cards for the device to be controlled, improving the user experience.

[0158] The following combines the attached Figure 10 , taking the application of the program-controlled card control method provided in this specification in the full-line power on / off scenario as an example, further illustrates the program-controlled card control method. Among them, Figure 10 shows the processing process flow chart of a program-controlled card control method provided by an embodiment of this specification. As Figure 10 shown, the program-controlled card rule engine receives the card control instruction sent by the client ( Figure 10(not shown in the figure), in response to the card control instruction, determine the target combined program control card corresponding to each program control card to be executed, and obtain the target combined execution condition of the target combined program control card. Determine whether the target combined program control card meets the target combined execution condition. If not, determine that the execution of the target combined program control card fails. After generating the target card rejection reason for the failure of the target combined program control card execution, send the execution status of the execution failure and the target card rejection reason to the client. If it is satisfied, determine the preset execution order type corresponding to the target combined program control card. In the case of the first execution order type (i.e., sequential control execution), determine the program control card to be processed among the program control cards to be executed, and obtain the execution condition of the card to be processed for the program control card to be processed. Determine whether the program control card to be processed meets the execution condition of the card to be processed. If not, determine a new program control card to be processed among the program control cards to be executed; if it is satisfied, obtain the action list to be processed for the program control card to be processed, and sequentially execute the program control card to be processed according to the execution actions to be processed in the action list to be processed. If the program control card to be processed is not the termination program control card, continue to determine a new program control card to be processed among the program control cards to be executed. If the program control card to be processed is the termination program control card, it means that all the program control cards to be executed have been executed, and send all the program control cards to be executed and the target card execution result to the client. It is also possible to determine the target combined card execution result corresponding to the target combined program control card through the target card execution result corresponding to each program control card to be executed, and send the target combined program control card and the target combined card execution result to the client together.

[0159] It should be noted that the execution status of the program control card to be executed specifically includes not executed, in delay, in execution, execution success, execution failure, etc. In addition to sending the execution status of the execution failure and the execution result of the execution success to the client as described above, the execution statuses such as not executed, in delay, in execution, etc. can also be fed back to the client in real time so that the user can understand the execution progress of the program control card to be executed in real time. If the user needs to pause the execution of a certain program control card to be executed, a pause instruction can be sent to the program control card rule engine through the client during the execution process to pause the program control card to be executed, so that the execution status of the program control card to be executed is the pause state.

[0160] Further, in the case of the second execution order type (i.e., concurrent control execution), an example is given with the preset number of execution cards being 2. Obtain the execution conditions of the to-be-processed program control card 1, and determine whether the to-be-processed program control card 1 meets the execution conditions of the to-be-processed card. If so, obtain the to-be-processed action list 1 of the to-be-processed program control card 1, and sequentially execute the to-be-processed program control card 1 according to the to-be-processed execution actions in the to-be-processed action list 1. If not, directly determine that the execution of the to-be-processed program control card 1 fails. Since the to-be-processed program control card 1 and the to-be-processed program control card 2 are in concurrent control execution, that is, the to-be-processed program control card 1 and the to-be-processed program control card 2 are executed simultaneously, therefore, the execution process of the to-be-processed program control card 2 is the same as that of the to-be-processed program control card 1, and this is not elaborated in this specification. After all the to-be-executed program control cards are executed, the target combined program control card execution ends, and the execution result is sent to the client.

[0161] The implementation method of sequentially executing the to-be-processed program control card according to the to-be-processed execution actions in the to-be-processed action list is as follows ( Figure 10 not shown in the figure): After obtaining the action execution conditions of each to-be-executed action in the to-be-processed action list, determine the to-be-processed execution action in the to-be-processed action list, and obtain the to-be-processed action execution conditions of the to-be-processed execution action. Determine whether the to-be-processed execution action meets the to-be-processed action execution conditions. If so, control the to-be-controlled device to execute the to-be-processed execution action. If the to-be-processed execution action is not the termination execution action, return to the step of determining the to-be-processed execution action in the to-be-processed action list until the determined to-be-processed execution action is the termination execution action. If not, directly return to the step of determining the to-be-processed execution action in the to-be-processed action list until the determined to-be-processed execution action is the termination execution action.

[0162] Correspondingly, after the to-be-executed action is executed, the corresponding execution status can also be sent to the client. The execution status of the to-be-executed action specifically includes not executed, in delay, in execution, executed successfully, and executed failed, etc.

[0163] An embodiment of this specification realizes the control of each to-be-controlled device by executing each to-be-executed program control card through a program control card rule engine. For example, power on / off, etc., which minimizes human intervention and improves the accuracy of operations; sending the target card execution result to the client can enable the client to timely understand the execution progress of the to-be-controlled device based on the program control card, improving the user experience.

[0164] Corresponding to the above method embodiment, this specification also provides an embodiment of a program control card control device. Figure 11 The structural schematic diagram of a program control card control device provided by an embodiment of this specification is shown. As Figure 11 shown, this device includes:

[0165] A receiving module 1102, configured to receive a card control instruction sent by a client for at least one program-controlled card to be executed, where the card control instruction carries the identification of the program-controlled card to be executed for each program-controlled card to be executed;

[0166] A determining module 1104, configured to determine a target combined program-controlled card corresponding to each program-controlled card to be executed according to the identification of the program-controlled card to be executed for each program-controlled card to be executed, and obtain the target combined execution condition of the target combined program-controlled card;

[0167] An execution module 1106, configured to execute each program-controlled card to be executed according to a preset execution order type corresponding to the target combined program-controlled card when the target combined program-controlled card meets the target combined execution condition, and obtain a target card execution result of each program-controlled card to be executed, where the target card execution result includes a device control result for a device to be controlled based on each program-controlled card to be executed;

[0168] A sending module 1108, configured to send the target card execution result to the client.

[0169] Optionally, the execution module 1106 is further configured to:

[0170] Obtain a card execution condition corresponding to each program-controlled card to be executed and a list of actions to be executed for each program-controlled card to be executed;

[0171] Execute each program-controlled card to be executed according to the preset execution order type, each card execution condition, and each list of actions to be executed.

[0172] Optionally, the execution module 1106 is further configured to:

[0173] When the preset execution order type is a first execution order type, determine a program-controlled card to be processed among the program-controlled cards to be executed, and obtain a card execution condition to be processed for the program-controlled card to be processed, where the program-controlled card to be processed is any one of the program-controlled cards to be executed;

[0174] Determine whether the program-controlled card to be processed meets the card execution condition to be processed;

[0175] When the program-controlled card to be processed meets the card execution condition to be processed, obtain a list of actions to be processed for the program-controlled card to be processed, execute the program-controlled card to be processed based on the list of actions to be processed, return to the step of determining a program-controlled card to be processed among the program-controlled cards to be executed and obtaining a card execution condition to be processed for the program-controlled card to be processed until the program-controlled card to be processed is a termination program-controlled card;

[0176] In the case that the to-be-processed program control card does not meet the to-be-processed card execution condition, return to the step of determining the to-be-processed program control card among the to-be-executed program control cards and obtaining the to-be-processed card execution condition of the to-be-processed program control card, until the to-be-processed program control card is the termination program control card.

[0177] Optionally, the execution module 1106 is further configured to:

[0178] Obtain the action execution condition of each to-be-executed action in the to-be-processed action list;

[0179] Determine the to-be-processed execution action of the to-be-processed program control card in the to-be-processed action list, and obtain the to-be-processed action execution condition of the to-be-processed execution action, where the to-be-processed execution action is any to-be-executed action in the to-be-processed action list;

[0180] Judge whether the to-be-processed execution action meets the to-be-processed action execution condition;

[0181] In the case that the to-be-processed execution action meets the to-be-processed action execution condition, execute the to-be-processed execution action on the to-be-controlled device, return to the step of determining the to-be-processed execution action of the to-be-processed program control card in the to-be-processed action list and obtaining the to-be-processed action execution condition of the to-be-processed execution action, until the to-be-processed execution action is the termination execution action;

[0182] In the case that the to-be-processed execution action does not meet the to-be-processed action execution condition, return to the step of determining the to-be-processed execution action of the to-be-processed program control card in the to-be-processed action list and obtaining the to-be-processed action execution condition of the to-be-processed execution action, until the to-be-processed execution action is the termination execution action.

[0183] Optionally, the execution module 1106 is further configured to:

[0184] In the case that the preset execution order type is the second execution order type, determine the preset execution card quantity corresponding to the target combined program control card;

[0185] According to the preset execution card quantity, determine the to-be-processed program control cards corresponding to the preset execution card quantity among the to-be-executed program control cards, and respectively obtain the to-be-processed card execution conditions of the to-be-processed program control cards;

[0186] Respectively judge whether each to-be-processed program control card meets the to-be-processed card execution condition of each to-be-processed program control card;

[0187] When it is determined that the program control card to be determined meets the execution condition of the card to be determined, obtain the list of actions to be determined of the program control card to be determined, and execute the program control card to be determined based on the list of actions to be determined, where the program control card to be determined is any one of the program control cards to be processed;

[0188] When the program control card to be determined does not meet the execution condition of the card to be determined, determine that the execution of the program control card to be determined fails.

[0189] Optionally, the execution module 1106 is further configured to:

[0190] Obtain the action execution conditions of each action to be executed in the list of actions to be determined;

[0191] Determine the action to be determined for execution of the program control card to be determined in the list of actions to be determined, and obtain the action execution condition to be determined for the action to be determined for execution, where the action to be determined for execution is any one of the actions to be executed in the list of actions to be determined;

[0192] Determine whether the action to be determined for execution meets the action execution condition to be determined;

[0193] When the action to be determined for execution meets the action execution condition to be determined, execute the action to be determined for execution on the device to be controlled, return to execute the step of determining the action to be determined for execution of the program control card to be determined in the list of actions to be determined, and obtain the action execution condition to be determined for the action to be determined for execution, until the action to be determined for execution is the termination execution action;

[0194] When the action to be determined for execution does not meet the action execution condition to be determined, return to execute the step of determining the action to be determined for execution of the program control card to be determined in the list of actions to be determined, and obtain the action execution condition to be determined for the action to be determined for execution, until the action to be determined for execution is the termination execution action.

[0195] Optionally, the device further includes a first feedback module, configured to:

[0196] When the program control card to be processed does not meet the execution condition of the card to be processed, determine that the execution state of the program control card to be processed is execution failure, and generate a rejection reason for the program control card to be processed for the execution failure of the program control card to be processed according to the execution condition of the card to be processed;

[0197] When the action to be processed for execution does not meet the action execution condition to be processed, determine that the execution state of the action to be processed for execution is execution failure, and generate a rejection reason for the action to be processed for execution for the execution failure of the action to be processed for execution according to the action execution condition to be processed;

[0198] Send the execution status of the card to be processed, the reason for the failure of the card to be processed to actuate, the execution status of the action to be processed, and the reason for the failure of the action to be processed to actuate to the client.

[0199] Optionally, the device further includes a second feedback module, configured to:

[0200] In the case where the target combined programmed card does not meet the target combined execution condition, determine that the target card execution status of the target combined programmed card is a failure to execute;

[0201] Generate a target card failure reason for the failure of the target combined programmed card to execute according to the target combined execution condition;

[0202] Send the target card execution status and the target card failure reason to the client.

[0203] Optionally, the device further includes a first generation module, configured to:

[0204] Obtain the card identification to be executed, the card execution condition, and the list of actions to be executed of the initial programmed card;

[0205] Add the card identification to be executed, the card execution condition, and the list of actions to be executed to the initial programmed card to generate a programmed card to be executed.

[0206] Optionally, the device further includes a second generation module, configured to:

[0207] Obtain the target combined card identification, the target combined execution condition, at least one programmed card to be executed, and the preset execution order type of the initial combined programmed card;

[0208] Add the target combined card identification, the target combined execution condition, the at least one programmed card to be executed, and the preset execution order type to the initial combined programmed card to generate a target combined programmed card.

[0209] The program-controlled card control device provided in this specification includes: a receiving module configured to receive a card control instruction from a client for at least one to-be-executed program-controlled card, where the card control instruction carries the to-be-executed card identifiers of the to-be-executed program-controlled cards; a determining module configured to determine, according to the to-be-executed card identifiers of the to-be-executed program-controlled cards, the target combined program-controlled cards corresponding to the to-be-executed program-controlled cards, and obtain the target combined execution conditions of the target combined program-controlled cards; an execution module configured to, when the target combined program-controlled cards meet the target combined execution conditions, execute the to-be-executed program-controlled cards according to the preset execution sequence type corresponding to the target combined program-controlled cards, and obtain the target card execution results of the to-be-executed program-controlled cards, where the target card execution results include the device control results for the to-be-controlled device based on the to-be-executed program-controlled cards; and a sending module configured to send the target card execution results to the client.

[0210] One or more embodiments of this specification achieve that when receiving a card control instruction for multiple to-be-executed program-controlled cards, by determining the target combined program-controlled cards corresponding to the to-be-executed program-controlled cards and the target combined execution conditions of the target combined program-controlled cards, the to-be-executed program-controlled cards are executed according to the preset execution sequence type corresponding to the target combined program-controlled cards, without the need for manual operation of the to-be-executed program-controlled cards, improving the operation efficiency and accuracy of power on / off implemented based on program-controlled cards; after the to-be-executed program-controlled cards are executed, the target card execution results of the to-be-executed program-controlled cards can be obtained, and sending the target card execution results to the client can enable the client to timely understand the execution progress of the to-be-controlled device based on the program-controlled cards, improving the user experience.

[0211] The above is a schematic solution of a program-controlled card control device according to this embodiment. It should be noted that the technical solution of this program-controlled card control device and the technical solution of the above program-controlled card control method belong to the same concept. For the details not described in the technical solution of the program-controlled card control device, reference can be made to the description of the technical solution of the above program-controlled card control method.

[0212] Figure 12 The structural block diagram of a computing device 1200 provided according to an embodiment of this specification is shown. The components of the computing device 1200 include, but are not limited to, a memory 1210 and a processor 1220. The processor 1220 is connected to the memory 1210 through a bus 1230, and a database 1250 is used to store data.

[0213] The computing device 1200 also includes an access device 1240, which enables the computing device 1200 to communicate via one or more networks 1260. Examples of such networks include the Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or a combination of communication networks such as the Internet. The access device 1240 may include one or more of any type of wired or wireless network interfaces (e.g., network interface controller (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, Worldwide Interoperability for Microwave Access (Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, and so on.

[0214] In one embodiment of the present specification, the above components of the computing device 1200 and Figure 12 other components not shown therein may also be connected to each other, for example, via a bus. It should be understood that Figure 12 the block diagram of the computing device shown is for illustrative purposes only and is not a limitation on the scope of the present specification. Those skilled in the art can add or replace other components as needed.

[0215] The computing device 1200 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or personal computers (PCs). The computing device 1200 can also be a mobile or stationary server.

[0216] Wherein, when the processor 1220 executes the computer program / instructions, the steps of the programmed card control method are implemented.

[0217] The above is a schematic solution of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the above program-controlled card control method belong to the same concept. For the details not described in detail in the technical solution of the computing device, reference can be made to the description of the technical solution of the above program-controlled card control method.

[0218] An embodiment of this specification also provides a computer-readable storage medium that stores computer programs / instructions. When the computer programs / instructions are executed by a processor, the steps of the program-controlled card control method described above are implemented.

[0219] The above is a schematic solution of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium and the technical solution of the above program-controlled card control method belong to the same concept. For the details not described in detail in the technical solution of the storage medium, reference can be made to the description of the technical solution of the above program-controlled card control method.

[0220] An embodiment of this specification also provides a computer program product, including computer programs / instructions. When the computer programs / instructions are executed by a processor, the steps of the above program-controlled card control method are implemented.

[0221] The above is a schematic solution of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product and the technical solution of the above program-controlled card control method belong to the same concept. For the details not described in detail in the technical solution of the computer program product, reference can be made to the description of the technical solution of the above program-controlled card control method.

[0222] The above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the figures do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0223] The computer programs / instructions include computer program code, which can be in the form of source code, object code, executable files, or some intermediate forms, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memories, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media, etc.

[0224] It should be noted that, for the foregoing method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this specification is not limited by the described action sequence, because according to this specification, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this specification.

[0225] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0226] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not elaborate on all details and do not limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made according to the content of this specification. This specification selects and specifically describes these embodiments to better explain the principle and practical application of this specification, so that those skilled in the art can well understand and utilize this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A program-controlled card control method, characterized in that: include: Receiving a card control instruction from a client for at least one program-controlled card to be executed, wherein the card control instruction carries a card identifier of each program-controlled card to be executed; According to the to-be-executed card identifiers of the to-be-executed program-controlled cards, the target combination program-controlled cards corresponding to the to-be-executed program-controlled cards are determined, and the target combination execution conditions of the target combination program-controlled cards are obtained, wherein the target combination program-controlled card is a combination program-controlled card to which the at least one to-be-executed program-controlled card belongs, and the combination program-controlled card includes a plurality of to-be-executed program-controlled cards; In the case where the target combination program control card meets the target combination execution condition, each program control card to be executed is executed according to the preset execution sequence type corresponding to the target combination program control card to obtain the target card execution result of each program control card to be executed, wherein the target card execution result includes the device control result of the device to be controlled based on each program control card to be executed; The target card execution result is sent to the client.

2. The method according to claim 1, characterized in that Executing each program-controlled card to be executed according to the preset execution sequence type corresponding to the target combination program-controlled card includes: Obtain the card execution conditions corresponding to each program-controlled card to be executed and the list of pending actions of each program-controlled card to be executed; Execute each program-controlled card to be executed according to the preset execution sequence type, the execution conditions of each card and the list of actions to be executed.

3. The method according to claim 2, characterized in that According to the preset execution sequence type, the execution conditions of each card and the list of actions to be executed, each program-controlled card to be executed is executed, including: In the case where the preset execution sequence type is the first execution sequence type, determining a program-controlled card to be processed among the program-controlled cards to be executed, and obtaining a card execution condition of the program-controlled card to be processed, wherein the program-controlled card to be processed is any one of the program-controlled cards to be executed; Determine whether the program-controlled card to be processed meets the execution condition of the card to be processed; In the case where the program-controlled card to be processed satisfies the execution condition of the program-controlled card to be processed, a list of pending actions of the program-controlled card to be processed is obtained, the program-controlled card to be processed is executed based on the list of pending actions, and the step of determining the program-controlled card to be processed among the program-controlled cards to be executed and obtaining the execution condition of the program-controlled card to be processed is returned to the step of determining the program-controlled card to be processed among the program-controlled cards to be executed and obtaining the execution condition of the program-controlled card to be processed until the program-controlled card to be processed is a termination program-controlled card; When the program-controlled card to be processed does not satisfy the execution condition of the program-controlled card to be processed, the process returns to the step of determining the program-controlled card to be processed among the program-controlled cards to be processed and obtaining the execution condition of the program-controlled card to be processed until the program-controlled card to be processed is a termination program-controlled card.

4. The method according to claim 3, characterized in that Executing the pending program-controlled card based on the pending action list includes: Obtaining the action execution condition of each action to be executed in the list of actions to be processed; Determine the pending execution action of the pending program-controlled card in the pending action list, and obtain the pending action execution condition of the pending execution action, wherein the pending execution action is any pending execution action in the pending action list; Determine whether the pending action satisfies the pending action execution condition; In the case where the pending execution action satisfies the pending execution action execution condition, the pending execution action is executed on the controlled device, and the steps of determining the pending execution action of the pending program-controlled card in the pending action list and obtaining the pending action execution condition of the pending execution action are returned until the pending execution action is a termination execution action; When the pending action does not satisfy the pending action execution condition, return to the step of determining the pending action of the pending program-controlled card in the pending action list and obtaining the pending action execution condition of the pending action until the pending action is a termination action.

5. The method according to claim 2, characterized in that According to the preset execution sequence type, the execution conditions of each card and the list of actions to be executed, each program-controlled card to be executed is executed, including: In the case where the preset execution sequence type is the second execution sequence type, determining the number of preset execution cards corresponding to the target combination program-controlled card; According to the preset number of execution cards, determine the number of program-controlled cards to be processed corresponding to the preset number of execution cards in each program-controlled card to be executed, and obtain the execution conditions of the program-controlled cards to be processed respectively; Determine respectively whether each pending program-controlled card satisfies the pending card execution condition of each pending program-controlled card; When the program-controlled card to be determined meets the execution condition of the card to be determined, obtaining the action list to be determined of the program-controlled card to be determined, and executing the program-controlled card to be determined based on the action list to be determined, wherein the program-controlled card to be determined is any one of the program-controlled cards to be processed; In the case that the to-be-determined program-controlled card does not satisfy the to-be-determined card execution condition, it is determined that the to-be-determined program-controlled card execution fails.

6. The method according to claim 5, characterized in that Executing the to-be-determined program-controlled card based on the to-be-determined action list includes: Obtaining the action execution condition of each action to be executed in the list of actions to be determined; Determine the pending execution action of the pending program-controlled card in the pending action list, and obtain the pending action execution condition of the pending execution action, wherein the pending execution action is any pending action in the pending action list; Determining whether the to-be-determined action satisfies the to-be-determined action execution condition; In the case where the to-be-determined execution action satisfies the to-be-determined action execution condition, the to-be-determined execution action is executed on the to-be-determined device, and the to-be-determined execution action of the to-be-determined program-controlled card is determined in the to-be-determined action list, and the to-be-determined action execution condition of the to-be-determined execution action is obtained, until the to-be-determined execution action is a termination execution action; When the action to be determined does not satisfy the execution condition of the action to be determined, return to the step of determining the action to be determined of the program-controlled card to be determined in the list of actions to be determined, and obtaining the execution condition of the action to be determined, until the action to be determined is a termination action.

7. The method according to claim 4 or 6, characterized in that The method further comprises: In the case where the pending program-controlled card does not meet the pending card execution condition, the pending card execution state of the pending program-controlled card is determined to be execution failure, and the pending card rejection reason for the pending program-controlled card execution failure is generated according to the pending card execution condition; In the case where the pending action does not meet the pending action execution condition, determining the pending action execution state of the pending action is execution failure, and generating a pending action refusal reason for the pending action execution failure according to the pending action execution condition; The execution status of the pending card, the reason for rejection of the pending card, the execution status of the pending action and the reason for rejection of the pending action are sent to the client.

8. The method according to claim 1, characterized in that The method further comprises: In the case where the target combination program-controlled card does not satisfy the target combination execution condition, determining that the target card execution state of the target combination program-controlled card is execution failure; According to the target combination execution condition, a target card rejection reason for failure of the target combination program-controlled card execution is generated; The target card execution status and the target card rejection reason are sent to the client.

9. The method according to claim 1, characterized in that The method further comprises: Obtain the card ID to be executed, the card execution condition and the list of actions to be executed of the initial program-controlled card; The to-be-executed card identifier, the card execution condition and the to-be-executed action list are added to the initial program-controlled card to generate a to-be-executed program-controlled card.

10. The method according to claim 9, characterized in that The method further comprises: Obtaining a target combination card identifier, a target combination execution condition, at least one program control card to be executed, and a preset execution sequence type of an initial combination program control card; The target combination card identifier, the target combination execution condition, the at least one program-controlled card to be executed and the preset execution sequence type are added to the initial combination program-controlled card to generate a target combination program-controlled card.

11. A program-controlled card control system, characterized in that: The program-controlled card control system includes a client and a program-controlled card rule engine; The client is configured to receive a card control request for at least one program-controlled card to be executed, wherein the card control request carries a card identifier of each program-controlled card to be executed; in response to the card control request, obtain information to be reviewed; if the information to be reviewed is reviewed and approved, generate a card control instruction for each program-controlled card to be executed, and send the card control instruction to the program-controlled card rule engine; The programmable control card rule engine is configured to determine the target combination programmable control card corresponding to each programmable control card to be executed according to the to-be-executed card identifier of each programmable control card to be executed, and obtain the target combination execution condition of the target combination programmable control card, wherein the target combination programmable control card is the combination programmable control card to which the at least one programmable control card to be executed belongs, and the combination programmable control card includes multiple programmable control cards to be executed; when the target combination programmable control card meets the target combination execution condition, execute each programmable control card to be executed according to the preset execution sequence type corresponding to the target combination programmable control card, and obtain the target card execution result of each programmable control card to be executed, wherein the target card execution result includes the device control result of the device to be controlled based on each programmable control card to be executed; and send the target card execution result to the client.

12. A program-controlled card control device, characterized in that: include: A receiving module, configured to receive a card control instruction from a client for at least one program-controlled card to be executed, wherein the card control instruction carries a card identifier of each program-controlled card to be executed; A determination module is configured to determine the target combination program-controlled card corresponding to each program-controlled card to be executed according to the to-be-executed card identifier of each program-controlled card to be executed, and obtain the target combination execution condition of the target combination program-controlled card, wherein the target combination program-controlled card is the combination program-controlled card to which the at least one program-controlled card to be executed belongs, and the combination program-controlled card includes a plurality of program-controlled cards to be executed; An execution module is configured to execute each to-be-executed program control card according to a preset execution sequence type corresponding to the target combination program control card when the target combination program control card satisfies the target combination execution condition, and obtain a target card execution result of each to-be-executed program control card, wherein the target card execution result includes a device control result of the to-be-executed device based on each to-be-executed program control card; The sending module is configured to send the target card execution result to the client.

13. A computing device comprising: Memory and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions. It is characterized in that when the computer program / instructions are executed by the processor, the steps of the method described in any one of claims 1 to 10 are implemented.

14. A computer-readable storage medium storing a computer program / instruction, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Information processing method, system and device

    CN113595838A

  • Instruction execution method and device, equipment and medium

    CN116257288A