Method, system and device for determining instruction issuing state and storage medium
By acquiring and storing command issuance and change information in the IoT platform and sorting them by time, the problem of disordered command response status is solved, and consistent status display and fault diagnosis are achieved.
Patent Information
- Application Number
- CN202111524938.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-14
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2041-12-14
AI Technical Summary
In a distributed, high-concurrency environment, the command response status messages of IoT devices may be out of order, causing a mismatch between the command status seen by the user and the actual status.
By obtaining the instruction issuance request, saving the first instruction issuance information to the database, obtaining and saving the instruction issuance change information, and combining the instruction issuance status and time sorting, the final status of instruction issuance is obtained.
Maintain consistency in command issuance status and intuitively display the occurrence time of each status to facilitate quick troubleshooting.
Smart Images

Figure CN114371972B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of Internet of Things platforms, and in particular to a method, system and device for determining instruction issue state and a storage medium. BACKGROUND
[0002] With the large-scale development of the Internet of Things, the number of devices and applications accessing the general enabling platform of the Internet of Things is growing. In related technologies, the phenomenon that the last state message of the same instruction is still queued in the queue while the instruction response state message arrives first is not fully considered in the distributed high-concurrency environment, resulting in out-of-order storage of instruction states in the database and the problem that the instruction state seen by the user does not match the actual state. SUMMARY
[0003] The present application aims to at least partially solve one of the problems in the prior art.
[0004] To this end, an object of an embodiment of the present application is to provide a method, system, device and medium for determining instruction issue state, which can maintain the consistency of instruction issue state and intuitively show the occurrence time of each state for the user.
[0005] To achieve the above technical purpose, the technical solution adopted by an embodiment of the present application comprises:
[0006] In one aspect, an embodiment of the present application provides a method for determining instruction issue state, comprising the following steps:
[0007] Obtaining an instruction issue request;
[0008] Saving first instruction issue information into a database according to the instruction issue request;
[0009] Obtaining instruction issue change information;
[0010] Saving second instruction issue information into the database according to the instruction issue change information;
[0011] Obtaining instruction issue state and instruction issue time from the first instruction issue information and the second instruction issue information;
[0012] Obtaining final instruction issue state according to the instruction issue state and the instruction issue time.
[0013] Further, after the step of obtaining final instruction issue state according to the instruction issue state and the instruction issue time, the following steps are further included:
[0014] Obtaining an instruction issue query request;
[0015] extracting the instruction issuing state and the instruction issuing time according to the instruction issuing query request;
[0016] obtaining an instruction issuing final state according to the instruction issuing state and the instruction issuing time.
[0017] Further, the step of obtaining the instruction issuing final state according to the instruction issuing state and the instruction issuing time specifically comprises:
[0018] sorting the instruction issuing state corresponding to the instruction issuing time;
[0019] correcting the sorted instruction issuing state to obtain the instruction issuing final state.
[0020] Further, the first instruction issuing information is transmitted through a message queue, and the step of saving the first instruction issuing information into the database according to the instruction issuing request specifically comprises:
[0021] obtaining the first instruction issuing information from the message queue;
[0022] decoding the first instruction issuing information to obtain the instruction issuing state and the instruction issuing time;
[0023] saving the instruction issuing state and the instruction issuing time into the database.
[0024] On the other hand, an embodiment of the present application proposes a system for determining an instruction issuing state, comprising:
[0025] a first module for obtaining an instruction issuing request;
[0026] a second module for saving first instruction issuing information into a database according to the instruction issuing request;
[0027] a third module for obtaining instruction issuing change information;
[0028] a fourth module for saving second instruction issuing information into the database according to the instruction issuing change information;
[0029] a fifth module for obtaining an instruction issuing state and an instruction issuing time from the first instruction issuing information and the second instruction issuing information;
[0030] a sixth module for obtaining an instruction issuing final state according to the instruction issuing state and the instruction issuing time.
[0031] Further, it further comprises a seventh module for performing the following steps:
[0032] obtaining an instruction issuing query request according to the instruction issuing state and the instruction issuing time;
[0033] obtaining the instruction issuing state and the instruction issuing time according to the instruction issuing query request;
[0034] obtaining a final instruction issuing state according to the instruction issuing state and the instruction issuing time.
[0035] Further, the step of obtaining the final instruction issuing state according to the instruction issuing state and the instruction issuing time specifically comprises:
[0036] sorting the instruction issuing state corresponding to the instruction issuing time;
[0037] correcting the sorted instruction issuing state to obtain the final instruction issuing state.
[0038] Further, the first instruction issuing information and the second instruction issuing information are transmitted through a message queue, and the step of obtaining the instruction issuing state and the instruction issuing time from the first instruction issuing information and the second instruction issuing information specifically comprises:
[0039] obtaining the first instruction issuing information and the second instruction issuing information from the message queue;
[0040] decoding the first instruction issuing information and the second instruction issuing information to obtain the instruction issuing state and the instruction issuing time.
[0041] In another aspect, an embodiment of the present application provides a determination device for an instruction issuing state, comprising:
[0042] at least one processor;
[0043] at least one memory for storing at least one program;
[0044] when the at least one program is executed by the at least one processor, the at least one processor implements the determination method for the instruction issuing state.
[0045] In another aspect, an embodiment of the present application provides a storage medium having processor-executable instructions stored therein, and the processor-executable instructions are used to implement the determination method for the instruction issuing state when executed by a processor.
[0046] The present application discloses a determination method for an instruction issuing state, and has the following beneficial effects:
[0047] The embodiment records the information change corresponding to the instruction issuing request in real time by obtaining the instruction issuing request and saving the first instruction issuing information into the database according to the instruction issuing request, then records the information change corresponding to the instruction issuing request in real time by obtaining the instruction issuing change information and saving the second instruction issuing information into the database according to the instruction issuing change information, saves the first instruction issuing information and the second instruction issuing information into the database, so as to facilitate the calling of the information in the subsequent steps, obtains the instruction issuing state and the instruction issuing time from the first instruction issuing information and the second instruction issuing information, and then obtains the final instruction issuing state according to the instruction issuing state and the instruction issuing time, so as to keep the consistency of the instruction issuing state, intuitively show the occurrence time of each state, and facilitate the rapid troubleshooting. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following introduces the drawings of the related technical solutions in the embodiments of the present application or the prior art. It should be understood that the drawings in the following introduction are only for the convenience of clearly describing some embodiments in the technical solutions of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0049] Figure 1 The flowchart of the instruction issuing state determination method provided by the embodiment of the present application is shown in the figure.
[0050] Figure 2 The module schematic diagram of the Internet of Things general enabling system provided by the embodiment of the present application is shown in the figure.
[0051] Figure 3 The structure schematic diagram of the instruction issuing state determination system provided by the embodiment of the present application is shown in the figure.
[0052] Figure 4 The structure schematic diagram of the instruction issuing state determination device provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0053] This part will describe the specific embodiments of the present application in detail, and the preferred embodiments of the present application are shown in the drawings. The drawings serve to supplement the description in the text part of the specification, so that people can intuitively and visually understand each technical feature and the overall technical solution of the present application. However, it cannot be understood as a limitation on the protection scope of the present application.
[0054] In the description of the embodiments of the present application, the meaning of several is one or more, the meaning of multiple is more than two, greater than, less than, more than, etc. are understood as not including the number, above, below, within, etc. are understood as including the number, "at least one" means one or more, "at least one of the following" and the like means any combination of the items, including single or multiple items. If there is a description of "first", "second", etc. is only used to distinguish technical features for the purpose, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or implicitly indicating the sequence of indicated technical features.
[0055] It should be noted that the words such as setting, installing, connecting and the like in the embodiments of the present application should be understood broadly, and those skilled in the art can reasonably determine the specific meaning of the above words in the embodiments of the present application in combination with the specific content of the technical solutions. For example, the term "connection" can be mechanical connection, or electrical connection or can communicate with each other; it can be directly connected, or indirectly connected through an intermediate medium.
[0056] In the description of the embodiments of the present application, the description of the terms "one embodiment", "another embodiment" or "some embodiments", "in the above embodiment" and the like means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least two embodiments or embodiments of the present disclosure. In the present disclosure, the illustrative description of the above terms does not necessarily refer to the same example or embodiment. Moreover, the described specific features, structures, materials or characteristics can be combined in any one or more embodiments or embodiments in a suitable manner.
[0057] It should be noted that the technical features involved in each of the embodiments of the present application described below can be combined with each other as long as there is no conflict.
[0058] During program execution, there are synchronous and asynchronous instructions, and usually used for transmitting data (for example, data records of modules, communication data, diagnostic data). Asynchronous instructions are different from synchronous instructions: the execution of asynchronous instructions is not necessarily completed when the asynchronous instruction call is completed. This also means that the execution of asynchronous instructions can be called multiple times. In the CPU, the execution of asynchronous instructions is performed simultaneously with the user program loop, and the asynchronous instructions generate pending jobs in the CPU.
[0059] With the large-scale development of the Internet of Things, the number of devices and applications accessing the general enabling platform of the Internet of Things is growing. In the related technology, after the instruction issuing message of various applications reaches the general enabling platform of the Internet of Things, the platform first sends the initial state of the instruction to the message queue, and then if the instruction issuing response message is received, the database is updated in real time by an asynchronous manner. However, this method will cause the issuing instruction and the response request to be interleaved, that is, the last state message of the same instruction is still in the queue, and the instruction response state message is preferentially arrived.
[0060] To this end, the present application provides a method, system, device and medium for determining the instruction issuing state. The method comprises the following steps: obtaining an instruction issuing request; saving first instruction issuing information into a database according to the instruction issuing request; obtaining instruction issuing change information; saving second instruction issuing information into the database according to the instruction issuing change information; obtaining an instruction issuing state and an instruction issuing time from the first instruction issuing information and the second instruction issuing information; and obtaining a final instruction issuing state according to the instruction issuing state and the instruction issuing time. This method can keep the consistency of the instruction issuing state, and can intuitively show the occurrence time of each state, which is convenient for quickly troubleshooting.
[0061] Referring to Figure 1 , the present application provides a method for determining the instruction issuing state. The present application can be applied to Figure 2 the general enabling system of the Internet of Things as shown in the figure. The network communication module 201 is used to receive the instruction issuing request from the terminal, the memory 203 is used to store the instruction issuing information, the instruction information and the instruction change information and other data, and the processor 202 completes the method for determining the instruction issuing state by calling the data in the memory 203.
[0062] Referring to Figure 2 , Figure 2 is a module schematic diagram of the general enabling system of the Internet of Things related to the embodiments of the present application. In the embodiments of the present application, the general enabling system of the Internet of Things can include a communication bus, a network communication module 201, a processor 202 (such as a central processing unit, CPU) and a memory 203. The communication bus is used to realize the connection communication between the components; the memory 203 can be a high-speed RAM memory, or a stable memory (non-volatile memory) such as a disk memory, and the memory 203 can optionally be a storage device independent of the aforementioned processor 202. Those skilled in the art can understand that Figure 2The hardware structure shown in the foregoing embodiments does not constitute a limitation on the present application, and can include more or fewer components, or combine certain components, or arrange different components.
[0063] The memory 203 as a readable storage medium can include an operating system, application modules, and a control program of the distributed platform. In Figure 2 In the foregoing embodiments, the network communication module 201 is mainly used to obtain an instruction issuing request and transmit the request to the processor 202; and the processor 202 can call the control program of the Internet of Things general enabling system stored in the memory 203 and execute the method for determining the instruction issuing state provided in the embodiments.
[0064] It should be noted that only a part of the modules of the Internet of Things general enabling system is exemplarily given in the embodiments, and the Internet of Things general enabling system can further include other components included in other existing Internet of Things general enabling system devices to realize corresponding functions, and the specific implementation is not limited.
[0065] Based on the Internet of Things general enabling system shown in the foregoing embodiments, the embodiments provide a method for determining an instruction issuing state, as shown in the foregoing embodiments. Figure 2 The embodiments provide a method for determining an instruction issuing state, as shown in the foregoing embodiments. Figure 1 The embodiments provide a method for determining an instruction issuing state, including but not limited to steps S101, S102, S103, S104 and S105:
[0066] S101, obtaining an instruction issuing request.
[0067] In step S101, the instruction issuing request is a request for the Internet of Things general enabling system to respond to the client, and the Internet of Things general enabling system will respond to the instruction when receiving the instruction issuing request. The user performs certain interactive operations (such as clicking, touching, gestures, input box input, drop-down menu selection, etc.) on the display interface of the client, thereby generating the request of the instruction issuing. Then, the processor 202 obtains the request of the instruction issuing sent by the client through the network communication module 201. Exemplarily, the user clicks the “query” button in the visual interface of the client, and the terminal where the client is located issues the instruction issuing request of “requesting to query”, and the processor 202 will respond accordingly after receiving the instruction, such as sending the feedback instruction “querying” and calling the data in the database to perform the query work.
[0068] S102, saving first instruction issuing information into a database according to the instruction issuing request.
[0069] It should be noted that the first instruction issuing information refers to the information sent by the processor 202 in response to the instruction issuing request, for example, when the user clicks the "query" button in the visual interface of the client, the terminal where the client is located sends the instruction issuing request of "requesting query", the processor 202 will respond accordingly after receiving the instruction, and send the first instruction issuing information "querying" and call the data in the database for query work. After the processor 202 responds to the instruction issuing request, that is, after sending the first instruction issuing information, the content of the first instruction issuing information is saved to the storage 203, and the saved content includes the instruction state and the instruction issuing time of the first instruction issuing information. It can be understood that the specific content of the first instruction issuing information will change according to the change of the instruction issuing request, and those skilled in the art can make appropriate adjustments according to the actual situation, and the embodiment does not specifically limit the content of the first instruction issuing information.
[0070] Optionally, the step of saving the first instruction issuing information into the database according to the instruction issuing request can further include the following steps:
[0071] Obtaining the first instruction issuing information from the message queue;
[0072] Decoding the first instruction issuing information to obtain the instruction issuing state and the instruction issuing time;
[0073] Saving the instruction issuing state and the instruction issuing time into the database.
[0074] In the embodiment, the instruction is sent to the queue, and the message queue is a container for saving the instruction in the transmission process of the instruction. The message queue manager acts as an intermediary when relaying the instruction from its source to its target. The main purpose of the queue is to provide routing and guarantee the delivery of the instruction; if the receiver is unavailable when the instruction is sent, the message queue will keep the message until it can be successfully delivered. The instruction is mainly transmitted through the message queue, so the first instruction issuing information can be obtained from the message queue, then the instruction issuing information is decoded to obtain the corresponding instruction issuing state and instruction issuing time, and then the instruction issuing state and the instruction issuing time are saved into the database, so that the instruction issuing state and the instruction issuing time are called in the subsequent steps.
[0075] S103, obtaining instruction issuing change information.
[0076] In step S103, the instruction issuing change information needs to be acquired, which is information for changing the current instruction state. The information can be issued by the client or generated by the processor 202 itself, and the specific case is determined by the specific content of the instruction. When the client or the processor 202 completes the specific response of the first instruction issuing information, the instruction issuing change information is generated to prompt the instruction to enter the next state. For example, when the processor 202 receives the instruction issuing request, it will respond accordingly, send the first instruction issuing information "querying", and call the data in the database for query work. When the processor 202 completes the query work, it will automatically generate the instruction issuing change information "completed", so that the instruction enters the next state. It can be understood that the number of times of transmitting the instruction issuing change information can be several times, that is, the instruction issuing change information can be acquired multiple times after step S102, and the specific number of times is determined by the specific content of the instruction.
[0077] S104, save the second instruction issuing information into the database according to the instruction issuing change information.
[0078] After acquiring the instruction issuing change information, the processor 202 will respond to the instruction issuing change information, and save the content of the instruction issuing change information to the storage 203 after responding. It can be understood that the instruction issuing change information can be acquired multiple times in step S103, so the content of the instruction issuing change information needs to be saved after responding each time the instruction issuing change information is acquired. Similarly, the instruction issuing change information can be acquired from the message queue, then the second instruction issuing information is obtained by decoding the instruction issuing information, and then the instruction issuing state and the instruction issuing time of the second instruction issuing information are saved to the database for subsequent steps to call the instruction issuing state and the instruction issuing time.
[0079] S105, acquire the instruction issuing state and the instruction issuing time from the first instruction issuing information and the second instruction issuing information.
[0080] After obtaining the instruction issuing state and the instruction issuing time by the above method, only the corresponding instruction issuing state and instruction issuing time need to be read from the database.
[0081] S106, obtain the final instruction issuing state according to the instruction issuing state and the instruction issuing time.
[0082] Further, the step of obtaining the final instruction issuing state according to the instruction issuing state and the instruction issuing time specifically includes the following steps:
[0083] Sort the instruction issuing state corresponding to the instruction issuing time;
[0084] The ordered instruction issuing state is modified to obtain the final instruction issuing state.
[0085] After the instruction issuing state and the instruction issuing time are obtained, the instruction issuing time is first sorted according to the time sequence, and if the instruction issuing time is the same or the instruction issuing time of the state occurring first is later than the instruction issuing time of the state occurring later, the states are sorted in the order of state values from small to large. The state value is an inherent attribute value given to each instruction state, and the state value is determined according to the sequence in which the instruction should occur. For example, there are three instruction states of "query", "querying", and "completed query", and the instruction should have "query" first, then "querying", and finally "completed query", so the state value of the "query" state can be set to 1, the state value of the "querying" state can be set to 2, and the state value of the "completed query" state can be set to 3. Exemplarily, assuming that the instruction issuing state and the corresponding instruction issuing time are as follows: "query" at 14:25 with a state value of 1, "querying" at 14:30 with a state value of 2, "completed query" at 14:28 with a state value of 3, and "save result" at 14:34 with a state value of 4, the instruction issuing time is first sorted to obtain the order of "query", "completed query", "querying", and "save result", but the state value of the "completed query" state is 3 and the state value of the "querying" state is 2, that is, the instruction issuing time of the state occurring first is later than the instruction issuing time of the state occurring later, so the order of the "completed query" state and the "querying" state needs to be exchanged to obtain "query", "querying", "completed query", and "save result", and after the correct instruction issuing order is obtained, the instruction issuing state at the end of the order is taken as the final instruction issuing state.
[0086] Optionally, the method for determining an instruction issuing state according to an embodiment of the present application can further include the following steps after the step of obtaining the final instruction issuing state according to the instruction issuing state and the instruction issuing time.
[0087] An instruction issuing query request is obtained.
[0088] The instruction issuing state and the instruction issuing time are extracted according to the instruction issuing query request.
[0089] The final instruction issuing state is obtained according to the instruction issuing state and the instruction issuing time.
[0090] Based on the foregoing description, taking the general enabling system of the Internet of Things as an example, as shown in Figure 2 the method for determining an instruction issuing state according to an embodiment of the present application specifically includes the following steps:
[0091] S101, acquire an instruction issuing request.
[0092] S102, save first instruction issuing information into a database according to the instruction issuing request.
[0093] S103, acquire instruction issuing change information.
[0094] S104, save second instruction issuing information into the database according to the instruction issuing change information.
[0095] S105, acquire instruction issuing state and instruction issuing time from the first instruction issuing information and the second instruction issuing information.
[0096] S106, obtain instruction issuing final state according to the instruction issuing state and the instruction issuing time.
[0097] Exemplarily, assume that instruction issuing state and corresponding instruction issuing time are as follows: "request query" 14:25, state value is 1; "querying" 14:30, state value is 2; "query completed" 14:28, state value is 3; and "save result" 14:34, state value is 4. A user clicks the "query" button in the visual interface of the client, and the terminal where the client is located sends the instruction issuing request of "request query". After receiving the instruction, the processor 202 will respond accordingly, sends the first instruction issuing information "querying", and calls the data in the database to perform query work. After the processor 202 responds to the instruction issuing request, i.e. after sending the first instruction issuing information, the content of the first instruction issuing information such as "request query" 14:25 is saved to the storage 203. When the processor 202 completes the query work, it will automatically generate instruction issuing change information "querying", so that the instruction enters the next state. After obtaining the instruction issuing state and the instruction issuing time by the above method, the corresponding instruction issuing state and instruction issuing time in the database can be read. By calling the instruction issuing state and the instruction issuing time saved in the storage, the "request query" 14:25, the "querying" 14:30, the "query completed" 14:28, and the "save result" 14:34 are obtained, and the state values are 1, 2, 3, and 4 respectively. First, the instruction issuing time is sorted to obtain the order of "query", "query completed", "querying", and "save result". However, the state value of "query completed" is 3, and the state value of "querying" is 2, i.e. the instruction issuing time of the state occurring first is later than that of the state occurring later, so the order of the "query completed" state and the "querying" state needs to be exchanged to obtain "query", "querying", "query completed", and "save result". After obtaining the correct instruction issuing order, the instruction issuing state at the end of the order is taken as the instruction issuing final state.
[0098] From the above, the present application obtains an instruction issuing request, saves first instruction issuing information into a database according to the instruction issuing request, then obtains instruction issuing change information, saves second instruction issuing information into the database according to the instruction issuing change information, obtains an instruction issuing state and an instruction issuing time from the first instruction issuing information and the second instruction issuing information, and finally obtains a final instruction issuing state according to the instruction issuing state and the instruction issuing time. This method can keep the consistency of the instruction issuing state, and can intuitively show the occurrence time of each state, which is convenient for quickly troubleshooting.
[0099] With reference to Figure 3 The embodiment of the present application provides a kind of determination system of instruction issuing state, comprising:
[0100] The first module 301 is used to obtain instruction issuing request;
[0101] The second module 302 is used to save first instruction issuing information into database according to the instruction issuing request;
[0102] The third module 303 is used to obtain instruction issuing change information;
[0103] The fourth module 304 is used to save second instruction issuing information into the database according to the instruction issuing change information;
[0104] The fifth module 305 is used to obtain instruction issuing state and instruction issuing time from the first instruction issuing information and the second instruction issuing information;
[0105] The sixth module 306 is used to obtain final instruction issuing state according to the instruction issuing state and the instruction issuing time.
[0106] The content in the above method embodiment is applicable to the present system embodiment, the function realized by the present system embodiment is the same as the above method embodiment, and the beneficial effects achieved are also the same as the above method embodiment.
[0107] With reference to Figure 4 The embodiment of the present application provides a kind of determination system of instruction issuing state, comprising:
[0108] At least one processor 401;
[0109] At least one memory 402 is used to store at least one program;
[0110] When the at least one program is executed by the at least one processor 401, the at least one processor 401 realizesFigure 1 The determination method of the instruction issuing state shown.
[0111] The content in the above method embodiments is applicable to the device embodiments, the device embodiments specifically implement the same functions as the above method embodiments, and achieve the same beneficial effects as the above method embodiments.
[0112] The embodiment of the application further provides a storage medium, wherein the storage medium stores processor-executable instructions, and the processor-executable instructions are used for implementing the method when executed by a processor. Figure 1 The determination method of the instruction issuing state shown.
[0113] The above is a specific description of the preferred embodiments of the application, but the application is not limited to the embodiments, and those skilled in the art can make various equivalent modifications or replacements without departing from the spirit of the application, and these equivalent modifications or replacements are all included in the scope defined by the claims of the application.
Claims
1. A method for determining the state of instruction issuance, characterized in that, Includes the following steps: Request to receive instruction; Save the first instruction issuance information to the database according to the instruction issuance request; Obtain instruction issuance change information; wherein, the instruction issuance change information is information that changes the current instruction state, and the instruction issuance change information is generated when the client or processor completes the response to the first instruction issuance information; According to the instruction, the change information is issued and the second instruction issuance information is saved to the database; Obtain the instruction issuance status and instruction issuance time from the first instruction issuance information and the second instruction issuance information; The final state of instruction issuance is obtained based on the instruction issuance status and the instruction issuance time. The step of obtaining the final state of instruction issuance based on the instruction issuance status and the instruction issuance time specifically includes: Sort the instruction issuance status corresponding to the instruction issuance time; The sorted instruction issuance states are corrected to obtain the final instruction issuance state; wherein, after correcting the sorted instruction issuance states, the correct instruction issuance order for the instruction issuance states is obtained, and the final instruction issuance state is the instruction issuance state at the end of the correct instruction issuance order.
2. The method for determining the instruction issuance status according to claim 1, characterized in that, After the step of obtaining the final state of instruction issuance based on the instruction issuance status and the instruction issuance time, the following steps are also included: Obtain the instruction and issue a query request; Extract the instruction issuance status and instruction issuance time based on the instruction issuance query request; The final state of instruction issuance is obtained based on the instruction issuance status and the instruction issuance time.
3. The method for determining the instruction issuance status according to claim 1, characterized in that, The first instruction issuance information is transmitted via a message queue. The step of saving the first instruction issuance information to the database according to the instruction issuance request specifically includes: Retrieve the first instruction issuance information from the message queue; Decode the first instruction issuance information to obtain the instruction issuance status and the instruction issuance time; The command issuance status and the command issuance time are saved to the database.
4. A system for determining the status of instruction issuance, characterized in that, include: The first module is used to obtain instruction issuance requests; The second module is used to save the first instruction issuance information to the database according to the instruction issuance request; The third module is used to obtain instruction issuance change information; wherein, the instruction issuance change information is information that changes the current instruction state, and the instruction issuance change information is generated when the client or processor completes the response to the first instruction issuance information; The fourth module is used to save the second instruction issuance information to the database according to the instruction issuance change information; The fifth module is used to obtain the instruction issuance status and instruction issuance time from the first instruction issuance information and the second instruction issuance information; The sixth module is used to obtain the final state of instruction issuance based on the instruction issuance status and the instruction issuance time; The sixth module is specifically used for: Sort the instruction issuance status corresponding to the instruction issuance time; The sorted instruction issuance states are corrected to obtain the final instruction issuance state; wherein, after correcting the sorted instruction issuance states, the correct instruction issuance order for the instruction issuance states is obtained, and the final instruction issuance state is the instruction issuance state at the end of the correct instruction issuance order.
5. The system for determining the command issuance status according to claim 4, characterized in that, It also includes a seventh module, which is used to perform the following steps: Obtain the instruction and issue a query request; Extract the instruction issuance status and instruction issuance time based on the instruction issuance query request; The final state of instruction issuance is obtained based on the instruction issuance status and the instruction issuance time.
6. The system for determining the instruction issuance status according to claim 4, characterized in that, The first instruction issuance information and the second instruction issuance information are transmitted through a message queue. The step of obtaining the instruction issuance status and instruction issuance time from the first instruction issuance information and the second instruction issuance information specifically includes: Retrieve the first instruction issuance information and the second instruction issuance information from the message queue; The first instruction issuance information and the second instruction issuance information are decoded to obtain the instruction issuance status and the instruction issuance time.
7. A device for determining the state of instruction issuance, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method for determining the instruction issuance state as described in any one of claims 1-3.
8. A computer-readable storage medium storing processor-executable instructions, characterized in that, The processor-executable instructions, when executed by the processor, are used to implement the method for determining the instruction issuance state as described in any one of claims 1-3.
Citation Information
Patent Citations
Control method of equipment background instruction management system based on memory
CN105426238A
Data synchronization device and method
CN105701159A