Program control card control method, program control card control device and program control card control system

The power outage operation of the power system is automatically performed through the program-controlled card control method, solving the problems of low manual operation efficiency and safety hazards, and achieving efficient and accurate power system maintenance.

CN119126595AActive Publication Date: 2024-12-13BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the power supply shutdown of the entire power system, manual operation of the program control card consumes a long time and is inefficient, which can easily lead to equipment operation errors, affect the power system's maintenance and construction plan and may cause safety accidents.

Method used

Through the program-controlled card control method, the client receives card control instructions, determines the target combination program-controlled cards and their execution conditions, and executes the cards to be executed according to the preset sequence type, automatically completes the equipment control operations, reduces manual intervention, and improves operation efficiency and accuracy .

Benefits of technology

It realizes automatic control of program-controlled cards, improves the efficiency and accuracy of power outage operations, reduces manual errors, improves user experience, and promptly feedback on execution progress and results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119126595A_ABST
    Figure CN119126595A_ABST
Patent Text Reader

Abstract

The invention provides a program-controlled card control method, a program-controlled card control device and a program-controlled card control system, and the program-controlled card control method comprises the steps: receiving a card control instruction of a client for at least one program-controlled card to be executed, the card control instruction carrying a to-be-executed card identifier of each program-controlled card to be executed; according to the to-be-executed card identifier of each to-be-executed program control card, determining a target combined program control card corresponding to each to-be-executed program control card, and obtaining a target combined execution condition of the target combined program control card; under the condition that the target combined program control card meets the target combined execution condition, executing each to-be-executed program control card according to a preset execution sequence type corresponding to the target combined program control card, and obtaining a target card execution result of each to-be-executed program control card; and sending the target card execution result to the client. Therefore, the program control card to be executed does not need to be manually operated, and the operation efficiency and accuracy of power cut and power transmission based on the program control card are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of rail transit technology, and in particular to a program-controlled card control method. This specification also relates to a program-controlled card control device and 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 is key to ensuring the reliability and safety of power supply. As power demand increases and the complexity of the power grid increases, full-line power outage, as an important operation and maintenance technology, has become increasingly important. Full-line power outage involves stopping the supply and transmission of power in part or all of the power system to perform necessary maintenance and upgrades, which is crucial to preventing failures and improving system performance.

[0003] In the current actual application of full-line power outage, the configuration of program control cards (referred to as "program control cards") is crucial. After the program control cards are configured, the dispatcher needs to manually dispatch the program control cards to perform control operations on a series of equipment. However, in the actual power system, multiple construction or maintenance plans may appear in a short period of time. In this case, manually triggering multiple program control cards to perform power outage operations consumes a long time and has low processing efficiency, which affects the dispatcher's control operation and further affects the maintenance and construction plan of the power system. In addition, manually operating program control cards to complete the control operation of the equipment may result in equipment operation errors, which in turn cause safety accidents. Summary of the invention

[0004] In view of this, the embodiments of this specification provide a program-controlled card control method. One or more embodiments of this specification also relate to a program-controlled card control device and 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 a first aspect of an embodiment of this specification, a program-controlled card control method is provided, comprising:

[0006] 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;

[0007] According to the to-be-executed card identifiers of the to-be-executed program control cards, the target combination program control cards corresponding to the to-be-executed program control cards are determined, and the target combination execution conditions of the target combination program control cards are obtained;

[0008] 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;

[0009] The target card execution result is sent to the client.

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

[0011] 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;

[0012] 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;

[0013] 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;

[0014] The sending module is configured to send the target card execution result to the client.

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

[0016] 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;

[0017] 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 card identification of each programmable control card to be executed, and obtain the target combination execution condition of the target combination programmable control card; 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.

[0018] According to a fourth aspect of an embodiment of this specification, a computing device is provided, including:

[0019] Memory and 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-mentioned program-controlled card control method are implemented.

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

[0022] According to a sixth aspect of the embodiments of this specification, a computer program product is provided, comprising a computer program / instruction, which implements the steps of the above-mentioned program-controlled card control method when executed by a processor.

[0023] An embodiment of the present specification realizes that, when a card control instruction for multiple programmable cards to be executed is received, the programmable cards to be executed are executed according to the preset execution sequence type corresponding to the target combination programmable cards by determining the target combination programmable cards corresponding to the programmable cards to be executed, and the target combination execution conditions of the target combination programmable cards, without the need for manual operation on the programmable cards to be executed, thereby improving the operational efficiency and accuracy of power outage based on programmable cards; after the execution of the programmable cards to be executed is completed, the target card execution results of each programmable card to be executed can be obtained, and the target card execution results can be sent to the client, so that the client can timely understand the execution progress of the programmable cards for the devices to be controlled, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is an architectural diagram of a program-controlled card control system provided by an embodiment of this specification;

[0025] Figure 2aIt is a process flow chart of a program-controlled card control system provided by one embodiment of this specification;

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

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

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

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

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

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

[0032] Figure 8 is an execution flow chart of a to-be-executed action list provided by an embodiment of this specification;

[0033] Fig. 9 It is a program-controlled card execution flow chart of a second execution sequence type provided by an embodiment of this specification;

[0034] Fig.10 It is a process flow chart of a program-controlled card control method provided by an embodiment of this specification;

[0035] Fig.11 It is a structural schematic diagram of a program-controlled card control device provided by an embodiment of this specification;

[0036] Fig.12 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0037] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

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

[0039] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information 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 "at the time of" or "when" 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 used for analysis, stored data, displayed data, etc.) involved in one or more embodiments of this specification are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

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

[0042] Programmable card: A collection of actions used by the power professional to control equipment in an integrated monitoring system (a system that integrates multiple technologies and equipment).

[0043] ToolTip: A user interface element that displays a small text box when the user hovers the mouse over an interface element, providing additional information or a tip about the element.

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

[0045] UZB: The format for generating screen files in configuration software.

[0046] Websocket: A network communication protocol that provides the ability to conduct full-duplex communication on a single persistent connection. This means that the client (such as a browser) and the server can send and receive data simultaneously on the same connection, without opening a new connection for each communication like a traditional HTTP request.

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

[0048] The operation and maintenance of power systems is key to ensuring the reliability and safety of power supply. As power demand increases and the complexity of the power grid increases, full-line power outage, as an important operation and maintenance technology, has become increasingly important. Full-line power outage involves stopping the supply and transmission of power in part or all of the power system to perform necessary maintenance and upgrades, which is crucial to preventing failures and improving system performance.

[0049] In the current practical application of full-line power outage, the configuration of programmable control cards is crucial. After the programmable control cards are configured, the dispatcher needs to manually dispatch the programmable control cards to perform control operations on a series of equipment. However, in the actual power system, multiple construction or maintenance plans may appear in a short period of time. In this case, manually triggering multiple programmable control cards to perform power outage operations consumes a long time and has low processing efficiency, which affects the dispatcher's control operation and further affects the maintenance and construction plan of the power system. In addition, manually operating programmable control cards to complete the control operation of the equipment may result in equipment operation errors, which in turn cause safety accidents.

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

[0051] See also Figure 1 , Figure 1 The figure shows an architecture diagram of a program-controlled card control system provided according to an embodiment of the present specification.

[0052] The following is an embodiment 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, 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 104;

[0055] The programmable control card rule engine 104 is configured to determine the target combination programmable control card corresponding to each programmable control card to be executed according to the card identification of each programmable control card to be executed, and obtain the target combination execution condition of the target combination programmable control card; 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 102.

[0056] Among them, the program-controlled card to be executed refers to the program-controlled card that needs to be executed selected by the user on the client. The program-controlled card to be executed is set with the control authority of multiple devices to be controlled. One program-controlled card to be executed has a separate execution function. For example, the program-controlled card to be executed can execute "upward power supply on the 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 identifier of the program-controlled card to be executed. The card identifier to be executed can specifically be the coding serial number or card name of the program-controlled card to be executed.

[0057] The information to be reviewed refers to the information used to review the card control request, which can be the user information to be reviewed, for example, the account number and password of the user to be reviewed. 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 the instruction generated to control the program-controlled card to be executed when the information to be reviewed is passed, which can be specifically understood as the card control request after the review is passed.

[0058] Specifically, after receiving a card control request for at least one program-controlled card to be executed, the client obtains the pending information by obtaining the pending card identifier carried in the card control request, and reviews the pending information. For example, if the pending information is the account and password of the user to be audited, the account and password of the user to be audited are audited to determine whether the user to be audited has the control authority for each program-controlled card to be executed. If not, it is determined that the pending information has not been audited, and the program-controlled card control process ends here. If it has, it is determined that the pending information has been audited, and a card control instruction for the program-controlled card to be executed is generated, and the pending card identifier of each program-controlled card to be executed is carried in the card control instruction and sent to the program-controlled card rule engine. The program-controlled card rule engine controls and executes the program-controlled card to be executed. In actual applications, users can switch the operation screen on the client to the execution interface for executing the program-controlled card to be executed, that is, the target program-controlled card control interface described in the following content (for example, the full-line power supply / full-line power outage interface), select the program-controlled card to be executed in the execution interface, and click the card execution button of the program-controlled card to be executed to generate a card control request corresponding to the program-controlled card to be executed.

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

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

[0061] Specifically, see Figure 2a , the following combined with Figure 2aThe execution process of the programmable card control system is further explained. Figure 2a FIG. 1 shows a process flow chart of a program-controlled card control system according to an embodiment of the present specification. Figure 2a As shown, after receiving the card control instruction sent by the client, the program-controlled card rule engine determines the target combination program-controlled card to which each program-controlled card to be executed belongs based on the card identifier to be executed carried in the card control instruction, and obtains the target combination execution condition of the target combination program-controlled card. It is judged whether the target combination program-controlled card meets the target combination execution condition. For example, if the target combination execution condition is the executable time period of the target combination program-controlled card, it is necessary to judge whether the execution time of the target combination program-controlled card to be executed by the program-controlled card rule engine is within the executable time period of the target combination program-controlled card. If not, it means that the target combination program-controlled card does not meet the target combination execution condition, and the program-controlled card control process ends here, and the message of the failure of the execution of each program-controlled card to be executed is sent to the client; if so, it means that the target combination program-controlled card meets the target combination execution condition. At this time, each program-controlled card to be executed can be executed according to the preset execution sequence type of the target combination program-controlled card. If the preset execution sequence type is sequential execution, each program-controlled card to be executed can be executed in sequence according to the preset order. If the preset execution sequence type is parallel execution, each program-controlled card to be executed can be executed in parallel. After all the program-controlled cards to be executed are executed, the target card execution results of each program-controlled card to be executed 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 program-controlled card to be executed. Further, if the target card execution results of each program-controlled card to be executed are all successful, the target combination card execution result of the target combination program-controlled card is successful execution, and if any one of the program-controlled cards to be executed fails, the target combination card execution result of the target combination program-controlled card is failed execution.

[0062] Furthermore, the target card execution results and the target combination card execution results are displayed on the client interface as follows: Figure 2b As shown, Figure 2b FIG. 1 shows a schematic diagram of a display interface for a target card execution result provided according to an embodiment of the present specification. Figure 2b As shown, the to-be-executed program-controlled cards are to-be-executed program-controlled card 1 and to-be-executed program-controlled card 2 as examples for explanation. Both to-be-executed program-controlled card 1 and to-be-executed program-controlled card 2 belong to target combination program-controlled card 1. Among them, the to-be-executed action list 1-1 is a to-be-executed action list of 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 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. Figure 2bIn the display interface of the target card execution result, the target card execution status of the program-controlled card 1 to be executed and the program-controlled card 2 to be executed are also displayed, that is, the execution of the program-controlled card 1 to be executed failed, and the execution of the program-controlled card 2 to be executed was successful. Therefore, the execution status corresponding to the target combination program-controlled card is execution failure. In addition, the interface also displays the execution status and refusal reason of the action to be executed, the start time and end time of each program-controlled card and the action to be executed, etc. After the user selects the program-controlled card to be executed, the user controls the execution of the program-controlled card to be executed through the "Execute", "Pause", "Continue" and "Terminate" buttons in the interface.

[0063] As described above, multiple clients can be deployed in the program-controlled card control system, and each client can interact with the program-controlled card rule engine. Therefore, in the process of multiple clients interacting with the program-controlled card rule engine, multiple clients may control the same program-controlled card at the same time, that is, multiple clients send card control instructions for the same program-controlled card to be executed to the program-controlled card rule engine. At this time, the program-controlled card rule engine executes the corresponding program-controlled card to be executed only in response to the first received card control instruction according to the order in which the card control instructions are received, and sets the execution status of the program-controlled card to be executed to being executed. The program-controlled card in execution cannot be executed again to prevent multiple control devices from causing equipment loss. However, the program-controlled card rule engine can feed back the execution process of the program-controlled card to be executed to each client, so that the user can obtain the execution process of the program-controlled card to be executed based on each client.

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

[0065] See also Figure 3 , Figure 3A flow chart of a program-controlled card control method provided according to an embodiment of this specification is shown, which specifically includes the following steps:

[0066] Step 302: receiving a card control instruction from the 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.

[0067] The programmable card control method is applied to a programmable card rule engine. In actual applications, the programmable card rule engine realizes the control and execution of the programmable card to be executed by receiving the card control instruction for the programmable card to be executed sent by the client. The card identifier to be executed carried in the card control instruction is helpful for the programmable card rule engine to determine the programmable card to be executed.

[0068] Step 304: Determine the target combination program control card corresponding to each program control card to be executed according to the to-be-executed card identification of each program control card to be executed, and obtain the target combination execution condition of the target combination program control 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 to be executed carried in the card control instruction. Since the program-controlled cards to be executed are deployed in each combination of program-controlled cards, in the process of executing the program-controlled cards to be executed, the program-controlled cards to be executed are executed as part of their corresponding target combination of program-controlled cards. Therefore, before the program-controlled cards to be executed are executed, it is also necessary to determine the target combination of program-controlled cards corresponding to the program-controlled cards to be executed, as well as the target combination execution conditions of the target combination of program-controlled cards. In the subsequent process, according to the target combination execution conditions, it is determined whether the target combination of program-controlled cards can be executed, thereby improving the security of executing the program-controlled cards to be executed.

[0070] Before executing each program control card to be executed, the configuration of each program control card to be executed is also very important. Only after the configuration of the program control card to be executed is the device to be controlled accurately based on the program control card to be executed. The following describes the specific configuration process of the program control card to be executed and the target combination program control card.

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

[0072] 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;

[0073] 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.

[0074] Among them, the initial programmable control card refers to a blank programmable control card that has not been configured, or a programmable control card that has been configured but needs to be adjusted. The card execution condition refers to the prerequisite that needs to be met to execute the programmable control card to be executed. For example, the card execution condition can be the authority position of the device to be controlled, the control method of the device to be controlled, etc. The list of actions to be executed refers to a pre-set list of device control actions that need to be executed by the programmable control card to be executed. The list of actions to be executed includes multiple actions to be executed. For example, the action to be executed can be to supply power to subway station A.

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

[0076] The following combination Figure 4 This chapter describes the process of generating a program-controlled card to be executed. Figure 4 , Figure 4 A flowchart of generating a program-controlled card to be executed according to an embodiment of this specification is shown. Figure 4As shown, the identification of the card to be executed is obtained, the identification of the card to be executed is added to the initial program-controlled card, and the obtained card execution conditions are added to the initial program-controlled card, and the actions to be executed and the action execution conditions corresponding to the actions to be executed are added to the initial program-controlled card, and then the corresponding equipment points and the point values ​​of the equipment points are set for each action to be executed, and the addition of an action to be executed is completed. If it is necessary to continue to add actions to be executed to the initial program-controlled card, continue to perform the steps of adding actions to be executed until the addition of actions to be executed is completed; if it is not necessary to continue to add actions to be executed to the initial program-controlled card, no actions to be executed are added to the initial program-controlled card, and a program-controlled card to be executed is generated based on the initial program-controlled card that has been added.

[0077] In the process of configuring and generating the program-controlled cards 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 program-controlled cards to be executed. In actual applications, a large number of devices to be controlled need to be added. In order to avoid errors in the addition of the devices to be controlled, they can be classified according to stations and up and down trains. For example, the program-controlled cards to be executed "A station contact network up power transmission" and the program-controlled cards to be executed "A station contact network down power transmission", then the devices to be controlled in the up line of A station will be added to the program-controlled card to be executed "A station contact network up power transmission", and the devices to be controlled in the down line of A station will be added to the program-controlled card to be executed "A station contact network down power transmission".

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

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

[0080] 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;

[0081] 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.

[0082] The initial combination program-controlled card refers to a blank combination program-controlled card that has not been configured, or a combination program-controlled card that has been configured but needs to be adjusted. The target combination card identifier may specifically be a coding serial number or card name of the target combination program-controlled card.

[0083] Specifically, the target combination card identifier, target combination execution condition, at least one program-controlled card to be executed, and the preset execution sequence type of the initial combination program-controlled card are obtained, and the obtained target combination card identifier, target combination execution condition, 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 the target combination program-controlled card. Furthermore, in practical applications, since the target combination program-controlled card includes multiple program-controlled cards to be executed, in order to ensure that the multiple program-controlled cards to be executed can be executed in order, the interval time between each program-controlled card to be executed can also be preset, for example, 1 second, 2 seconds, etc.

[0084] The following combination Figure 5 Describes the process of generating the target combination programmable card. Figure 5 , Figure 5 FIG. 1 shows a flow chart of generating a target combination program-controlled card according to an embodiment of the present specification. Figure 5 As shown, the target combination card identifier is obtained, the target combination card identifier is added to the initial combination program-controlled card, and the obtained target combination execution condition is added to the initial combination program-controlled card. The configured program-controlled card to be executed is obtained, and the preset execution sequence type of each program-controlled card to be executed in the target combination program-controlled card is pre-set, specifically the first execution sequence type or the second execution sequence type. Furthermore, when the preset execution sequence type is set to the second execution sequence type, the number of program-controlled cards to be executed that can be controlled in parallel can also be customized. After the preset execution sequence type is set, each program-controlled card to be executed is added to the corresponding target combination program-controlled card. In order to ensure that multiple program-controlled cards to be executed can be executed in an orderly manner, the interval time between each program-controlled card to be executed can also be pre-set. At this time, the addition of one program-controlled card to be executed is completed. If it is necessary to continue adding programmable control cards to be executed to the initial combination of programmable control cards, continue to execute the steps of adding programmable control cards to be executed until the addition of programmable control cards to be executed is completed; if it is not necessary to continue adding programmable control cards to be executed to the initial combination of programmable control cards, no longer add programmable control cards to be executed to the initial combination of programmable control cards, and generate the target combination of programmable control cards based on the added initial combination of programmable control cards.

[0085] After completing the configuration of the program control cards to be executed and the target combination program control cards, in order to facilitate users 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 cards. After the program control card control interface is created, users can directly control the program control cards to be executed in the program control card control interface to achieve control over each device to be controlled.

[0086] See also Figure 6 , Figure 6The flowchart of configuring a program-controlled card control interface according to an embodiment of the present specification is shown. Specifically, configuration software or a browser-based Web application can be used to create and configure the program-controlled card control interface. Figure 6 As shown, in the configuration software (only as an example), an initial program-controlled card control interface is created, an execution button of the program-controlled card to be executed is added in the initial program-controlled card control interface, and the card identifier to be executed is bound to the ToolTip of the execution button of the program-controlled card to be executed. A target combination program-controlled card execution button is added in the initial program-controlled card control interface, and the target combination card identifier is bound to the ToolTip of the execution button of the target combination program-controlled card. After the execution button of the program-controlled card to be executed and the execution button of the target combination program-controlled card are added, the execution script of the target combination program-controlled card is added to the script file corresponding to the initial program-controlled card control interface to generate the UZB file corresponding to the target program-controlled card control interface, and the target program-controlled card control interface is generated based on the UZB file.

[0087] Based on this, the user can also send a card control instruction to the program-controlled card rule engine by clicking the target combination program-controlled card execution button in the target program-controlled card control interface of the client. At this time, the card control instruction carries the target combination card identifier of the target combination program-controlled card, thereby realizing the selection of all the program-controlled cards to be executed under the same target combination program-controlled card. Further, since in the process of executing the program-controlled card to be executed, the program-controlled card to be executed is executed as a part of its corresponding target combination program-controlled card, therefore, in order to improve the execution efficiency of the program-controlled card to be executed, in addition to carrying the card identifier to be executed corresponding to the program-controlled card to be executed, the card control instruction received by the program-controlled card rule program-controlled engine can also carry the target combination card identifier of the target combination program-controlled card corresponding to the program-controlled card to be executed, so that the program-controlled card rule engine can directly obtain the target combination execution condition corresponding to the target combination program-controlled card after obtaining the card identifier to be executed and the target combination card identifier. Specifically, the example of the card control instruction carrying the card identifier to be executed and the target combination card identifier is as follows:

[0088]

[0089]

[0090] The card identification carried in the card control instruction may include the card identification to be executed, the target combination card identification, the card identification to be executed and the target combination card identification, which can be determined according to the actual application situation and is not limited in this specification.

[0091] The program-controlled card control method provided in this specification can configure and generate the program-controlled card to be executed and the target combination program-controlled card according to the actual application situation before executing the program-controlled card to be executed. In 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 to increase the extensiveness of the device control of the controlled device; in the process of generating the target combination 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 in the subsequent execution process of the program-controlled card to be executed, the program-controlled cards to be executed can be executed in order, thereby improving the execution efficiency and accuracy of the program-controlled cards to be executed.

[0092] Step 306: When the target combination programmable control card satisfies the target combination execution condition, each programmable control card to be executed is executed according to the preset execution sequence type corresponding to the target combination programmable control card to 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.

[0093] After determining the target combination program-controlled card corresponding to the program-controlled card to be executed and the target combination execution condition according to the card identifier to be executed, it is possible to determine whether each program-controlled card to be executed can be executed by judging whether the target combination program-controlled card meets the target combination execution condition. If the target combination program-controlled card meets the target combination 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 sequence type corresponding to the target combination 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 implementation provided in this specification, each program-controlled card to be executed is executed according to the preset execution sequence type corresponding to the target combination program-controlled card, including:

[0095] 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;

[0096] 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.

[0097] In actual applications, after determining that the target combination programmable control card corresponding to the programmable control card to be executed meets its corresponding target combination execution condition, it is necessary to further determine whether each programmable control card to be executed meets its corresponding card execution condition. After the programmable control card to be executed meets its corresponding card execution condition, the programmable control card to be executed is executed based on the list of actions to be executed corresponding to the programmable control card to be executed, so that the device to be controlled added in the programmable control card to be executed executes the action to be executed in the list of actions to be executed.

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

[0099] In a specific implementation provided in this specification, executing each program-controlled 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] 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;

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

[0102] 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;

[0103] 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.

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

[0105] Specifically, the following Figure 7 Explain the execution process of each program-controlled card to be executed based on the first execution order type. Figure 7 , Figure 7 FIG. 1 shows a program-controlled card execution flow chart of a first execution sequence type provided according to an embodiment of this specification. Figure 7 As shown, when the preset execution sequence type is the first execution sequence type, that is, the sequence control executes each program-controlled card to be executed, determines the program-controlled card to be processed in each program-controlled card to be executed, obtains the execution condition of the program-controlled card to be processed, and determines whether the program-controlled card to be processed meets the execution condition of the program-controlled card to be processed. If so, further obtain the list of pending actions of the program-controlled card to be processed, and execute the program-controlled card to be processed based on each pending action in the list of pending actions. If the program-controlled card to be processed is not a termination program-controlled card, return to the step of determining the program-controlled card to be processed in each program-controlled card to be executed, until the determined program-controlled card to be processed is a termination program-controlled card. If not, directly return to the step of determining the program-controlled card to be processed in each program-controlled card to be executed, until the determined program-controlled card to be processed is a termination program-controlled card.

[0106] Furthermore, after the pending action list is obtained, since the pending action list often stores a plurality of pending actions, each pending action in the pending action list needs to be executed.

[0107] Based on this, in a specific implementation provided in this specification, executing the pending program-controlled card based on the pending action list includes:

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

[0109] 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;

[0110] Determine whether the pending action satisfies the pending action execution condition;

[0111] 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;

[0112] 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.

[0113] The pending action is any one of the pending actions in the pending action list. The pending action execution condition is the action execution condition of the pending action. The terminated action is the only pending action in the pending action list that has not been executed. If a preset action execution order is set for each pending action in the pending action list, the terminated action is the last pending action to be executed.

[0114] Specifically, the following Figure 8 Explain the execution process of the action list to be executed. Figure 8 , Figure 8 FIG. 1 shows an execution flow chart of a to-be-executed action list provided according to an embodiment of this specification. Figure 8 As shown, after obtaining the action execution conditions of each pending action in the pending action list, determine the pending action in the pending action list, and obtain the pending action execution conditions of the pending action. Determine whether the pending action satisfies the pending action execution conditions. If so, control the device to be controlled to execute the pending action. If the pending action is not a termination action, return to the step of determining the pending action in the pending action list until the determined pending action is a termination action. If not, directly return to the step of determining the pending action in the pending action list until the determined pending action is a termination action.

[0115] Furthermore, in practical applications, each device to be controlled often has factory-provided device verification conditions when it leaves the factory. In order to further improve the accuracy and safety of controlling the device to be controlled, when judging whether the pending action meets the pending action execution conditions, it is also necessary to judge whether the pending action meets the device verification conditions. For example, the control authority position (whether it is local), control status (remote control or local control), shielding status, hanging status (maintenance sign, grounding sign or prohibition sign), occupied status, etc. of the pending action are judged. If the pending action satisfies both the pending action execution conditions and the device verification conditions, it is considered that the pending action can be executed.

[0116] When the preset execution sequence type is the first execution sequence type, that is, sequentially executing each program-controlled card to be executed, each program-controlled card to be executed can be executed in order to avoid omissions, thereby improving the execution accuracy of the program-controlled cards to be executed.

[0117] In another specific implementation provided in this specification, executing each program-controlled card to be executed according to the preset execution sequence type, each card execution condition and each list of actions to be executed includes:

[0118] 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;

[0119] 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;

[0120] Determine respectively whether each pending program-controlled card satisfies the pending card execution condition of each pending program-controlled card;

[0121] 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;

[0122] 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.

[0123] The preset execution card quantity refers to the preset number of parallel control pending program control cards. The pending program control card is any one of the pending program control cards. The pending action list refers to the pending action list of the pending program control card.

[0124] Specifically, when it is determined that the preset execution sequence type is the second execution sequence type, each program-controlled card to be executed is executed in parallel. The preset execution card number corresponding to the target combination program-controlled card is determined, and according to the preset execution card number, the same number of program-controlled cards to be processed as the preset execution card number is determined in each program-controlled card to be executed, and the execution conditions of the cards to be processed of each program-controlled card to be processed are obtained, and it is judged whether each program-controlled card to be processed satisfies the execution conditions of the cards to be processed corresponding to it. Taking any program-controlled card (program-controlled card to be determined) among the program-controlled cards to be processed as an example, if the program-controlled card to be determined satisfies the execution conditions of the cards to be determined corresponding to it, the list of actions to be determined of the program-controlled card to be determined is obtained, and the program-controlled card to be determined is executed based on each action to be executed in the list of actions to be determined; if the program-controlled card to be determined does not satisfy the execution conditions of the cards to be determined corresponding to it, it can be determined that the execution of the program-controlled card to be determined fails. Based on the same execution process as above, each program-controlled card to be executed is executed respectively until each program-controlled card to be executed is completed, and the process ends.

[0125] The following combination Fig. 9 Explain the execution process of each program-controlled card to be executed based on the second execution sequence type. Fig. 9 , Fig. 9 FIG. 2 shows a program-controlled card execution flow chart of a second execution sequence type provided according to an embodiment of this specification. Fig. 9 As shown, the explanation is given by taking the preset number of execution cards as n as an example (the following takes the pending program-controlled card 1 as an example), obtaining the pending card execution condition of the pending program-controlled card 1, and judging whether the pending program-controlled card 1 satisfies the pending card execution condition. If so, obtaining the pending action list 1 of the pending program-controlled card 1, and executing each pending action in the pending action list 1 in sequence. If not, directly determining that the pending program-controlled card 1 fails to execute. Since the pending program-controlled card 1, the pending program-controlled card 2...the pending program-controlled card n are executed in parallel, that is, when the preset number of execution cards is n, the n pending program-controlled cards are executed at the same time, therefore, the execution process of the pending program-controlled card 2...the pending program-controlled card n is the same as that of the pending program-controlled card 1, and this specification will not be repeated here. Until all the pending program-controlled cards are executed, it means that the target combination program-controlled card is executed, and the parallel execution process ends.

[0126] Further, similar to the above-mentioned first execution order type, after obtaining the list of pending actions, each pending action in the list of pending actions needs to be executed.

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

[0128] Obtaining the action execution condition of each action to be executed in the list of actions to be determined;

[0129] 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;

[0130] Determining whether the to-be-determined action satisfies the to-be-determined action execution condition;

[0131] 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;

[0132] 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.

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

[0134] Specifically, after obtaining the action execution conditions of each action to be executed in the list of actions to be determined, determine the action to be determined of the program-controlled card to be determined in the list of actions to be determined, and obtain the action execution conditions to be determined of the action to be determined. Determine whether the action to be determined satisfies the action execution conditions to be determined. If so, control the device to be controlled to execute the action to be determined. If the action to be determined is not a termination action, return to the step of determining the action to be determined in the list of actions to be determined until the determined action to be determined is a termination action. If not, directly return to the step of determining the action to be determined in the list of actions to be determined until the determined action to be determined is a termination action. Accordingly, when determining whether the action to be determined satisfies the action execution conditions to be determined, it is also necessary to determine whether the action to be determined satisfies the device verification conditions. If the action to be determined satisfies both the action execution conditions to be determined and the device verification conditions, it is considered that the action to be determined can be executed.

[0135] It should be noted that the execution process of the program-controlled card to be executed based on the first execution sequence type is different from the execution process of the program-controlled card to be executed based on the second execution sequence type. The execution process for any program-controlled card to be executed is the same.

[0136] When the preset execution sequence type is the second execution sequence type, that is, each program-controlled card to be executed is executed in parallel, multiple program-controlled cards to be executed can be executed in parallel at the same time. When the number of program-controlled cards to be executed is large, the execution efficiency of the program-controlled cards to be executed can be greatly improved.

[0137] In actual applications, the client and the program-controlled card rule engine can use the Websocket protocol to exchange information, so as to realize real-time information exchange between the client and the program-controlled card rule engine. Based on this, during the execution of each program-controlled card to be executed, the execution status of each program-controlled card to be executed, each action to be executed, and the reason for the execution status can be fed back to the client based on the Websocket protocol.

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

[0139] 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;

[0140] 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;

[0141] 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.

[0142] The reason for the rejection of the pending card refers to the reason why the pending program-controlled card fails to execute. The reason for the rejection of the pending action refers to the reason why the pending action fails to execute.

[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 combination program-controlled card does not meet the target combination execution condition, the target card execution state of the target combination program-controlled card is determined to be execution failure, that is, it is not feasible to execute the program-controlled cards to be executed in combination. Therefore, the program-controlled cards to be executed will not be executed. According to the target combination execution condition, the target card refusal reason for the failure of the target combination program-controlled card execution is generated, and the target card execution state (i.e., execution failure) and the target card refusal reason are sent to the client, so that the user can know the execution state of the target combination program-controlled card and determine the refusal reason for the failure of the execution.

[0151] Through the Websocket protocol, the execution status of each pending program control card, each pending 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 time.

[0152] The method of programmable card control provided in this specification executes each programmable card to be executed through the programmable card rule engine to achieve control of each device to be controlled, such as power outage, etc., thereby minimizing human intervention and improving the accuracy of operation; in the event that the execution of the programmable card to be executed fails, 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 reason for the failure when the execution of the device to be controlled 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 results corresponding to each to-be-executed program-controlled card, the target card execution results, that is, the execution results obtained after each to-be-executed program-controlled card is executed, are sent to the client.

[0155] Furthermore, the execution status of the program-controlled card to be executed specifically includes not executed, delayed, executed, executed successfully and failed, etc. In addition to sending the execution status of failed execution and the execution result of successful execution to the client as described above, the execution status of not executed, delayed and executed can also be fed back to the client in real time, so that the user can understand the execution progress of the program-controlled card to be executed in real time. If the user needs to suspend the execution of a program-controlled card to be executed, the user can send a pause instruction to the program-controlled card rule engine through the client during the execution process to suspend the program-controlled card to be executed, so that the execution status of the program-controlled card to be executed is a paused state.

[0156] The programmable card control method provided in this specification includes: receiving a card control instruction from a client for at least one programmable card to be executed, wherein the card control instruction carries the card identification of each programmable card to be executed; determining the target combination programmable card corresponding to each programmable card to be executed according to the card identification of each programmable card to be executed, and obtaining the target combination execution condition of the target combination programmable card; when the target combination programmable card meets the target combination execution condition, executing each programmable card to be executed according to the preset execution sequence type corresponding to the target combination programmable card, and obtaining the target card execution result of each programmable 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 card to be executed; and sending the target card execution result to the client.

[0157] One or more embodiments of the present specification realize that, when a card control instruction for multiple programmable cards to be executed is received, the programmable cards to be executed are executed according to the preset execution sequence type corresponding to the target combination programmable cards by determining the target combination programmable cards corresponding to the programmable cards to be executed, and the target combination execution conditions of the target combination programmable cards, without the need for manual operation on the programmable cards to be executed, thereby improving the operational efficiency and accuracy of power outage based on programmable cards; after the execution of the programmable cards to be executed is completed, the target card execution results of each programmable card to be executed can be obtained, and the target card execution results can be sent to the client, so that the client can timely understand the execution progress of the programmable cards for the devices to be controlled, thereby improving the user experience.

[0158] The following combination Fig.10 Taking the application of the program-controlled card control method provided in this specification in the scenario of power outage of the entire line as an example, the program-controlled card control method is further explained. Fig.10 FIG. 1 shows a process flow chart of a program-controlled card control method provided by an embodiment of the present specification, such as Fig.10 As shown, the program-controlled card rule engine receives the card control instruction sent by the client ( Fig.10(not shown), in response to the card control instruction, the target combination program-controlled card corresponding to each program-controlled card to be executed is determined, and the target combination execution condition of the target combination program-controlled card is obtained. It is judged whether the target combination program-controlled card meets the target combination execution condition. If not, it is determined that the execution of the target combination program-controlled card fails. After generating the target card refusal reason for the failure of the execution of the target combination program-controlled card, the execution status of the failed execution and the target card refusal reason are sent to the client. If it meets, the preset execution sequence type corresponding to the target combination program-controlled card is determined. In the case of the first execution sequence type (i.e., sequential control execution), the program-controlled card to be processed is determined in each program-controlled card to be executed, and the execution condition of the program-controlled card to be processed is obtained. It is judged whether the program-controlled card to be processed meets the execution condition of the card to be processed. If not, a new program-controlled card to be processed is determined in each program-controlled card to be executed; if it meets, the pending action list of the program-controlled card to be processed is obtained, and the program-controlled card to be processed is executed in sequence according to the pending execution actions in the pending action list. If the program-controlled card to be processed is not a terminated program-controlled card, then a new program-controlled card to be processed is determined among the program-controlled cards to be executed. If the program-controlled card to be processed is a terminated program-controlled card, then all the program-controlled cards to be executed have been completed, and the execution results of the program-controlled cards to be executed and the target cards are sent to the client. The execution results of the target combination cards corresponding to the program-controlled cards to be executed can also be used to determine the execution results of the target combination cards corresponding to the program-controlled cards to be executed, and the target combination program-controlled cards and the execution results of the target combination cards are sent to the client together.

[0159] It should be noted that the execution status of the program-controlled card to be executed specifically includes not executed, delayed, executed, executed successfully and failed, etc. In addition to sending the execution status of failed execution and the execution result of successful execution to the client as described above, the execution status of not executed, delayed and executed can also be fed back to the client in real time, so that the user can understand the execution progress of the program-controlled card to be executed in real time. If the user needs to suspend the execution of a program-controlled card to be executed, the user can send a pause instruction to the program-controlled card rule engine through the client during the execution process to suspend the program-controlled card to be executed, so that the execution status of the program-controlled card to be executed is a paused state.

[0160] Further, in the case of the second execution sequence type (i.e., parallel control execution), the explanation is given with the preset number of execution cards being 2. Obtain the pending card execution condition of the pending program-controlled card 1, and determine whether the pending program-controlled card 1 meets the pending card execution condition. If so, obtain the pending action list 1 of the pending program-controlled card 1, and execute the pending program-controlled card 1 in sequence according to the pending execution actions in the pending action list 1. If not, directly determine that the pending program-controlled card 1 has failed to execute. Since the pending program-controlled card 1 and the pending program-controlled card 2 are executed in parallel, that is, the pending program-controlled card 1 and the pending program-controlled card 2 are executed at the same time, the execution process of the pending program-controlled card 2 is the same as that of the pending program-controlled card 1, and this specification will not be repeated here. After all the pending program-controlled cards are executed, the execution of the target combination program-controlled card is completed, and the execution result is sent to the client.

[0161] The implementation method of executing the pending program control cards in sequence according to the pending execution actions in the pending action list is as follows: Fig.10 (not shown): After obtaining the action execution conditions of each pending action in the pending action list, determine the pending action in the pending action list, and obtain the pending action execution conditions of the pending action. Determine whether the pending action satisfies the pending action execution conditions. If so, control the device to be controlled to execute the pending action. If the pending action is not a terminating action, return to the step of determining the pending action in the pending action list until the determined pending action is a terminating action. If not, directly return to the step of determining the pending action in the pending action list until the determined pending action is a terminating action.

[0162] Correspondingly, after the pending action is completed, the corresponding execution status may also be sent to the client. The execution status of the pending action specifically includes not executed, delayed, executing, executed successfully, and executed failed.

[0163] An embodiment of the present specification realizes that each programmable card to be executed is executed through a programmable card rule engine to achieve control of each device to be controlled, for example, power outage, etc., thereby minimizing human intervention and improving the accuracy of operations; the target card execution result is sent to the client, so that the client can timely understand the execution progress of the device to be controlled based on the programmable card, thereby improving the user experience.

[0164] Corresponding to the above method embodiment, this specification also provides a program-controlled card control device embodiment, Fig.11 FIG. 1 shows a schematic diagram of the structure of a program-controlled card control device provided by an embodiment of the present specification. Fig.11 As shown, the device comprises:

[0165] The receiving module 1102 is 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;

[0166] The determination module 1104 is configured to determine the target combination program control card corresponding to each program control card to be executed according to the to-be-executed card identification of each program control card to be executed, and obtain the target combination execution condition of the target combination program control card;

[0167] The execution module 1106 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;

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

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

[0170] 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;

[0171] 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.

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

[0173] 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;

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

[0175] 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;

[0176] 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.

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

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

[0179] 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;

[0180] Determine whether the pending action satisfies the pending action execution condition;

[0181] 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;

[0182] 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.

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

[0184] 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;

[0185] 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;

[0186] Determine respectively whether each pending program-controlled card satisfies the pending card execution condition of each pending program-controlled card;

[0187] 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;

[0188] 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.

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

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

[0191] 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;

[0192] Determining whether the to-be-determined action satisfies the to-be-determined action execution condition;

[0193] 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;

[0194] 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.

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

[0196] 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;

[0197] 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;

[0198] 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.

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

[0200] 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;

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

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

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

[0204] 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;

[0205] 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.

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

[0207] 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;

[0208] 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.

[0209] The programmable card control device provided in the present specification includes: a receiving module, configured to receive a card control instruction from a client for at least one programmable card to be executed, wherein the card control instruction carries a card identifier of each programmable card to be executed; a determining module, configured to determine a target combination programmable card corresponding to each programmable card to be executed according to the card identifier of each programmable card to be executed, and obtain a target combination execution condition of the target combination programmable card; an executing module, configured to execute each programmable card to be executed according to a preset execution sequence type corresponding to the target combination programmable card when the target combination programmable card meets the target combination execution condition, and obtain a target card execution result of each programmable card to be executed, wherein the target card execution result includes a device control result of the device to be controlled based on each programmable card to be executed; and a sending module, configured to send the target card execution result to the client.

[0210] One or more embodiments of the present specification realize that, when a card control instruction for multiple programmable cards to be executed is received, the programmable cards to be executed are executed according to the preset execution sequence type corresponding to the target combination programmable cards by determining the target combination programmable cards corresponding to the programmable cards to be executed, and the target combination execution conditions of the target combination programmable cards, without the need for manual operation on the programmable cards to be executed, thereby improving the operational efficiency and accuracy of power outage based on programmable cards; after the execution of the programmable cards to be executed is completed, the target card execution results of each programmable card to be executed can be obtained, and the target card execution results can be sent to the client, so that the client can timely understand the execution progress of the programmable cards for the devices to be controlled, thereby improving the user experience.

[0211] The above is a schematic scheme of a program-controlled card control device of this embodiment. It should be noted that the technical scheme of the program-controlled card control device and the technical scheme of the program-controlled card control method described above are of the same concept, and the details of the technical scheme of the program-controlled card control device that are not described in detail can all be referred to the description of the technical scheme of the program-controlled card control method described above.

[0212] Fig.12 The structure block diagram of a computing device 1200 provided according to an embodiment of the present 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 via a bus 1230, and the 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 these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a 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 network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0214] In one embodiment of the present specification, the above components of the computing device 1200 and Fig.12 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Fig.12 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0215] The computing device 1200 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or a personal computer (PC). The computing device 1200 may also be a mobile or stationary server.

[0216] When the processor 1220 executes the computer program / instructions, the steps of the program-controlled card control method are implemented.

[0217] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the program-controlled card control method described above are of the same concept, and the details of the technical scheme of the computing device not described in detail can be found in the description of the technical scheme of the program-controlled card control method described above.

[0218] An embodiment of the present specification further provides a computer-readable storage medium storing a computer program / instruction, which implements the steps of the program-controlled card control method as described above when the computer program / instruction is executed by a processor.

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

[0220] An embodiment of the present specification also provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned program-controlled card control method when executed by a processor.

[0221] The above is a schematic scheme of a computer program product of this embodiment. It should be noted that the technical scheme of the computer program product and the technical scheme of the program-controlled card control method described above are of the same concept, and the details not described in detail in the technical scheme of the computer program product can be found in the description of the technical scheme of the program-controlled card control method described above.

[0222] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0223] The computer program / instruction includes a computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0224] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.

[0225] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0226] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only 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 control cards, the target combination program control cards corresponding to the to-be-executed program control cards are determined, and the target combination execution conditions of the target combination program control cards are obtained; 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 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, 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 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, 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 card identification of each programmable control card to be executed, and obtain the target combination execution condition of the target combination programmable control card; 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; 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

  • Method of generating new cards for controlling mobile robot by employing existing card combinations

    CN108238397A

  • Instruction processing method and device, equipment and storage medium

    CN113312111A

  • Information processing method, system and device

    CN113595838A

  • Instruction execution method and device, equipment and medium

    CN116257288A

  • Interaction control method and device, equipment and storage medium

    CN116889730A