CN117640713B - RPC-based data processing method and device for chemical composition equipment - Google Patents

RPC-based data processing method and device for chemical composition equipment Download PDF

Info

Publication number
CN117640713B
CN117640713B CN202410101142.0A CN202410101142A CN117640713B CN 117640713 B CN117640713 B CN 117640713B CN 202410101142 A CN202410101142 A CN 202410101142A CN 117640713 B CN117640713 B CN 117640713B
Authority
CN
China
Prior art keywords
rpc
data
power
power supply
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410101142.0A
Other languages
Chinese (zh)
Other versions
CN117640713A (en
Inventor
李东升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Herunda Technology Co ltd
Original Assignee
Shenzhen Herunda Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Herunda Technology Co ltd filed Critical Shenzhen Herunda Technology Co ltd
Priority to CN202410101142.0A priority Critical patent/CN117640713B/en
Publication of CN117640713A publication Critical patent/CN117640713A/en
Application granted granted Critical
Publication of CN117640713B publication Critical patent/CN117640713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Power Sources (AREA)

Abstract

The invention relates to the technical field of power batteries, and discloses a data processing method and device of a chemical composition device based on RPC, wherein the method comprises the following steps: the RPC client acquires characteristic data corresponding to the power supply scheduling request and sends the characteristic data to the RPC server in an RPC connection mode; the RPC server receives the characteristic data corresponding to the power supply scheduling request, and performs correctness check on the characteristic data corresponding to the power supply scheduling request to obtain a first check result; the RPC server generates power response information matched with the first check result, wherein the power response information is used for indicating whether to respond to a power scheduling request or not and is information for executing power control operation on the chemical composition equipment. Therefore, the invention can improve the real-time transmission speed and the data processing efficiency of the data by the way of communication through the RPC connection, thereby realizing the real-time control of the chemical composition equipment and being beneficial to improving the control stability of the chemical composition equipment.

Description

RPC-based data processing method and device for chemical composition equipment
Technical Field
The invention relates to the technical field of power batteries, in particular to a data processing method and device of a chemical composition equipment based on RPC.
Background
The traditional battery control scheme mainly comprises the following steps: and adopting communication protocols such as HTTP and the like to transmit the data of the client and the data of the server, so that the server can control the power module of the chemical composition equipment through the data sent by the client.
However, the conventional HTTP communication protocol has a relatively large time delay, is easy to limit the real-time transmission speed of data, reduces the data processing efficiency, and cannot meet the requirement of real-time control of chemical component equipment, and the HTTP communication protocol is easy to be influenced by factors such as network fluctuation or delay, so that the data loss or the control instruction execution failure is easy to be caused, and the stability of the control of the chemical component equipment is not high. Therefore, the technical scheme for realizing the real-time control of the chemical composition equipment and improving the control stability of the chemical composition equipment is particularly important.
Disclosure of Invention
The invention provides a data processing method and a data processing device for a chemical composition device based on RPC, which can improve the real-time transmission speed and the data processing efficiency of data, realize the real-time control of the chemical composition device and simultaneously are beneficial to improving the control stability of the chemical composition device based on a stably provided network.
In order to solve the technical problem, the first aspect of the present invention discloses a data processing method of a chemical composition component device based on RPC, the method is applied to a remote scheduling platform of the chemical composition component device, the remote scheduling platform includes an RPC client and an RPC server, and the method includes:
the RPC client acquires characteristic data corresponding to a power supply scheduling request and sends the characteristic data to the RPC server in an RPC connection mode;
the RPC server receives the characteristic data corresponding to the power scheduling request, and performs correctness checking on the characteristic data corresponding to the power scheduling request to obtain a first checking result;
the RPC server side generates power response information matched with the first verification result, the power response information is used for indicating whether to respond to the power scheduling request or not, the information of performing power control operation on the formation component equipment, and the power response information comprises response power success information or response power failure information.
As an optional implementation manner, in the first aspect of the present invention, the sending, by the RPC client, the feature data to the RPC server includes:
The RPC client performs serialization operation on the characteristic data to obtain serialized data;
the RPC client sends the serialized data to the RPC server;
and the RPC server receives the characteristic data corresponding to the power scheduling request, including:
and the RPC server receives the serialized data and executes deserialization operation on the serialized data to obtain deserialized data.
In an optional implementation manner, in a first aspect of the present invention, the generating, by the RPC server, power response information that matches the first verification result includes:
when the first verification result indicates that the characteristic data is incorrect, the RPC server generates response power failure information, and determines the response power failure information as power response information matched with the first verification result;
when the first verification result indicates that the characteristic data are correct, the RPC server matches a power scheduling instruction of the power scheduling request and sends the power scheduling instruction to a power module of the component forming equipment so as to trigger the power module to switch a power mode of the power module to obtain a target power mode;
And the RPC server detects a following power mode of the power module and generates power response information matched with the first verification result according to the following power mode.
In an optional implementation manner, in a first aspect of the present invention, the generating, by the RPC server, power response information that matches the first verification result according to the subsequent power mode includes:
the RPC server judges whether the following power mode is the same as the target power mode;
when the subsequent power supply mode is judged to be different from the target power supply mode, triggering the RPC server to execute the operation of generating the response power supply failure information;
and when the following power supply mode is judged to be the same as the target power supply mode, the RPC server generates response power supply success information, and determines the response power supply success information as power supply response information matched with the first verification result.
As an alternative embodiment, in the first aspect of the present invention, the method further includes:
when the power supply response information is the response power supply failure information, the RPC server side disconnects the RPC connection, wherein the RPC connection is a remote connection between the RPC client side and the RPC server side;
When the power supply response information is the response power supply success information, the RPC server determines return data corresponding to the response power supply success information according to the response power supply success information, and sends the return data corresponding to the response power supply success information to the RPC client, wherein the return data comprises the determined serial number of a power supply scheduling instruction and/or working data of the power supply scheduling instruction;
the RPC client receives the returned data and performs security check on the returned data to obtain a second check result;
and the RPC client performs an updating operation matched with the second checking result.
As an optional implementation manner, in the first aspect of the present invention, the performing, by the RPC client, security verification on the returned data to obtain a second verification result includes:
the RPC client selects storage data corresponding to the sequence number from a storage database of the RPC client according to the sequence number of the power supply scheduling instruction contained in the return data, wherein the storage data and the return data have corresponding data formats;
and the RPC client executes security check operation on the returned data according to the stored data to obtain a second check result, wherein the security check operation comprises check operation of a data format of the returned data.
As an optional implementation manner, in the first aspect of the present invention, the update operation includes a data update operation or a format update operation;
and the RPC client performs an updating operation matched with the second checking result, including:
when the second check result indicates that the returned data is safe, the RPC client judges whether the power scheduling instruction is successfully executed or not;
when the power supply scheduling instruction is judged to be successfully executed, the RPC client executes the data updating operation on the stored data according to the returned data;
and when judging that the power supply scheduling instruction fails to execute or the second check result indicates that the returned data is not safe, the RPC client executes the format updating operation on the data format of the stored data according to the data format of the returned data.
The invention discloses a data processing device of a chemical composition equipment based on RPC, which is applied to a remote scheduling platform of the chemical composition equipment, wherein the remote scheduling platform comprises an RPC client and an RPC server, the RPC client comprises an acquisition module and a first sending module, and the RPC server comprises a first receiving module, a first checking module and a generating module, wherein:
The acquisition module is used for acquiring characteristic data corresponding to the power supply scheduling request;
the first sending module is configured to send the feature data to the first receiving module by using an RPC connection method;
the first receiving module is used for receiving the characteristic data corresponding to the power supply scheduling request;
the first verification module is used for verifying the correctness of the characteristic data corresponding to the power supply scheduling request to obtain a first verification result;
the generation module is configured to generate power response information that matches the first verification result, where the power response information is used to indicate whether to respond to the power scheduling request, and the power response information includes response power success information or response power failure information.
In a second aspect of the present invention, the means for transmitting the feature data to the first receiving module by means of RPC connection specifically includes:
performing serialization operation on the characteristic data to obtain serialized data;
transmitting the serialized data to the first receiving module in an RPC connection mode;
And the mode of the first receiving module for receiving the characteristic data corresponding to the power scheduling request specifically includes:
and receiving the serialized data, and performing deserialization operation on the serialized data to obtain deserialized data.
In a second aspect of the present invention, the generating module generates the power response information matched with the first verification result specifically includes:
when the first verification result indicates that the characteristic data is incorrect, generating response power failure information, and determining the response power failure information as power response information matched with the first verification result;
when the first verification result shows that the characteristic data are correct, matching a power supply scheduling instruction of the power supply scheduling request, and sending the power supply scheduling instruction to a power supply module of the component forming equipment so as to trigger the power supply module to switch a power supply mode of the power supply module to obtain a target power supply mode;
and detecting a later power supply mode of the power supply module, and generating power supply response information matched with the first verification result according to the later power supply mode, wherein the detection moment of the later power supply mode is later than the sending moment of the power supply scheduling instruction.
In a second aspect of the present invention, the generating module generates the power response information matched with the first verification result according to the subsequent power mode specifically includes:
judging whether the following power supply mode is the same as the target power supply mode;
when the subsequent power supply mode is judged to be different from the target power supply mode, triggering and executing the operation of generating the response power supply failure information;
and when the following power supply mode is judged to be the same as the target power supply mode, generating response power supply success information, and determining the response power supply success information as power supply response information matched with the first verification result.
As an optional implementation manner, in the second aspect of the present invention, the RPC server further includes a disconnection module, a determination module, and a second sending module, and the RPC client further includes a second receiving module, a second checking module, and an executing module, where:
the disconnecting module is configured to disconnect the RPC connection when the power response information is the response power failure information, where the RPC connection is a remote connection between the RPC client and the RPC server;
The determining module is used for determining return data corresponding to the response power supply success information according to the response power supply success information when the power supply response information is the response power supply success information;
the second sending module is configured to send return data corresponding to the response power success information to the second receiving module, where the return data includes the determined serial number of the power scheduling instruction and/or working data of the power scheduling instruction;
the second receiving module is used for receiving the return data;
the second checking module is used for carrying out security check on the returned data to obtain a second checking result;
the execution module is used for executing the updating operation matched with the second checking result.
In a second aspect of the present invention, as an optional implementation manner, the second checking module performs security checking on the returned data to obtain a second checking result specifically includes:
selecting storage data corresponding to the sequence number from a storage database of the RPC client according to the sequence number of the power supply scheduling instruction contained in the return data, wherein the storage data and the return data have corresponding data formats;
And according to the stored data, executing security check operation on the returned data to obtain a second check result, wherein the security check operation comprises a check operation of a data format of the returned data.
As an optional implementation manner, in the second aspect of the present invention, the update operation includes a data update operation or a format update operation;
and the mode of the execution module executing the updating operation matched with the second checking result specifically comprises the following steps:
when the second check result indicates that the returned data is safe, judging whether the power supply scheduling instruction is successfully executed or not;
when the power supply scheduling instruction is judged to be successfully executed, executing the data updating operation on the stored data according to the returned data;
and when the power supply scheduling instruction is judged to be failed to be executed, or when the second check result indicates that the returned data is not safe, executing the format updating operation on the data format of the stored data according to the data format of the returned data.
A third aspect of the present invention discloses another data processing apparatus for an RPC-based chemical composition device, the apparatus comprising:
A memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the data processing method of the RPC-based chemical composition device disclosed in the first aspect of the present invention.
A fourth aspect of the invention discloses a computer storage medium storing computer instructions that, when invoked, are adapted to perform the data processing method of the RPC-based chemical composition device disclosed in the first aspect of the invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, an RPC client acquires characteristic data corresponding to a power supply scheduling request and sends the characteristic data to an RPC server in an RPC connection mode; the RPC server receives the characteristic data corresponding to the power supply scheduling request, and performs correctness check on the characteristic data corresponding to the power supply scheduling request to obtain a first check result; the RPC server generates power response information matched with the first verification result, the power response information is used for indicating whether to respond to a power scheduling request or not to execute power control operation on the chemical composition equipment, and the power response information comprises response power success information or response power failure information. The method and the system can acquire the characteristic data corresponding to the power scheduling request through the RPC client, send the characteristic data to the RPC server through the RPC connection mode, improve the sending stability and timeliness of the characteristic data, and facilitate improving the accuracy of the characteristic data sent to the RPC server through the RPC connection mode, then receive the characteristic data corresponding to the power scheduling request through the RPC server, and perform accuracy check on the characteristic data corresponding to the power scheduling request, obtain a first check result, improve the accuracy and timeliness of the accuracy check on the characteristic data, and facilitate improving the accuracy of the determination of the first check result, automatically generate power response information matched with the first check result, and improve the generating accuracy of the power response information.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow diagram of a data processing method of an RPC-based chemical composition device according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for processing data of an RPC-based chemical composition device according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method of another RPC-based chemical composition device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a remote scheduling platform according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another remote scheduling platform according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data processing apparatus of an RPC-based chemical composition device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or article that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or article.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The invention discloses a data processing method and a device for chemical component equipment based on RPC, which can collect feature data corresponding to a power dispatching request through an RPC client, send the feature data to an RPC server in an RPC connection mode, improve the sending stability and timeliness of the feature data, and facilitate the accuracy of sending the feature data to the RPC server, then receive the feature data corresponding to the power dispatching request through the RPC server, and perform correctness check on the feature data corresponding to the power dispatching request to obtain a first check result, improve the accuracy and timeliness of the correctness check on the feature data, and facilitate the improvement of the determination accuracy of the first check result, and automatically generate power response information matched with the first check result accurately determined. The following will describe in detail.
Example 1
Referring to fig. 1, fig. 1 is a flow chart of a data processing method of an RPC-based chemical composition device according to an embodiment of the present invention. The data processing method of the chemical-mechanical device based on RPC described in fig. 1 may be applied to a remote scheduling platform of the chemical-mechanical device, where the remote scheduling platform may be used to implement a power control function of the chemical-mechanical device. The remote scheduling platform may include an RPC client and an RPC server, where the RPC server may include an RPC server, and the RPC server may include a cloud server or a local server. As shown in fig. 1, the data processing method of the RPC-based chemical composition device may include the following operations:
101. the RPC client collects the characteristic data corresponding to the power supply scheduling request.
In the embodiment of the present invention, step 101 is performed after the power scheduling request is detected. In the process of performing power control on the chemical component and the capacity of storage and calculation, the control process often needs larger capacity, and the client side does not directly generate a power control instruction, but sends a power scheduling request to the server side to trigger the server side to generate a power control instruction in response to the power scheduling request, and then the server side sends the power control instruction to the power module of the chemical component and the capacity of calculation, so as to trigger the power module to perform power control operation according to the power control instruction.
In the embodiment of the present invention, specifically, the RPC client collects feature data corresponding to the power scheduling request, which may include:
the RPC client selects an RPC server function matched with the power supply scheduling request from a preset function database according to the power supply scheduling request, wherein the function database can comprise different RPC server functions which are obtained by splitting according to different power supply scheduling requests in advance;
the RPC client collects power supply data of the power supply module in the triggering time of the power supply scheduling request;
the RPC client determines the RPC server function and the power supply data of the power supply module as the characteristic data corresponding to the power supply scheduling request. Therefore, the acquisition accuracy and reliability of the characteristic data corresponding to the power supply scheduling request can be improved.
In the embodiment of the present invention, optionally, the power data of the power module may include one or more combinations of current of the power module, voltage of the power module, off-current of the power module, and off-voltage of the power module, which is not limited in the embodiment of the present invention.
102. And the RPC client sends the characteristic data to the RPC server by an RPC connection mode.
In the embodiment of the present invention, specifically, before the RPC client sends the feature data to the RPC server through the RPC connection, the method may further include:
The RPC client sends a request for establishing the RPC connection to the RPC server, and the RPC server receives the request for establishing the RPC connection and establishes the RPC connection with the RPC client. Therefore, when the RPC client and the RPC server carry out data transmission, the stability of a network required by the transmission is improved in an RPC connection mode, so that the control stability of a power module of the composition equipment is improved, and the accuracy of the transmitted data is improved based on the accurately established RPC connection.
In the embodiment of the present invention, further, before the RPC server receives the request for establishing the RPC connection, the method may further include: the RPC server starts heartbeat detection and waits for a new connection request. The heartbeat detection is used for detecting whether the RPC server side is abnormal or not. Therefore, the accuracy of judging whether the RPC server side is abnormal or not can be improved based on heartbeat detection.
103. The RPC server receives the characteristic data corresponding to the power scheduling request.
104. And the RPC server performs correctness checking on the characteristic data corresponding to the power supply scheduling request to obtain a first checking result.
In the embodiment of the present invention, optionally, the correctness may be used to indicate the correctness between the first parameter of the RPC server function and the second parameter of the homonymous function in the RPC server. Specifically, when the first parameter is the same as the second parameter, the first parameter is correct at this time, that is, the first verification result indicates that the feature data is correct; when the first parameter is different from the second parameter, the first parameter is incorrect, that is, the first verification result indicates that the feature data is incorrect.
105. And the RPC server generates power supply response information matched with the first verification result.
In the embodiment of the invention, the power response information is used for indicating whether to respond to the power scheduling request and execute the power control operation on the chemical composition equipment, and the power response information comprises response power success information or response power failure information.
It can be seen that, implementing the data processing method of the chemical component device based on RPC described in fig. 1 can collect the feature data corresponding to the power scheduling request through the RPC client, and send the feature data to the RPC server through the RPC connection mode, can improve the sending stability and timeliness of the feature data based on the RPC connection mode, and is beneficial to improving the accuracy of sending the feature data to the RPC server, then receives the feature data corresponding to the power scheduling request through the RPC server, and performs correctness check on the feature data corresponding to the power scheduling request, to obtain the first check result, can improve the accuracy and timeliness of correctness check on the feature data, and is beneficial to improving the determination accuracy of the first check result, and then automatically generating the power response information matched with the first check result accurately determined.
In an alternative embodiment, the method for sending the feature data to the RPC server by the RPC client in step 102 through the RPC connection may include:
the RPC client performs serialization operation on the characteristic data to obtain serialized data;
and the RPC client sends the serialized data to the RPC server by an RPC connection mode.
In the embodiment of the present invention, the serialized data may include a serialized RPC server function and serialized power supply data.
Therefore, in the alternative embodiment, the serialization operation can be performed on the feature data through the RPC client to obtain the serialized data, so that the accuracy of performing the serialization operation on the feature data can be improved, the accuracy of determining the serialized data can be improved, then the accurately determined serialized data is sent to the RPC server through the RPC connection mode, the accuracy of sending the serialized data to the RPC server can be improved, and the situations of data loss, tampering and the like in the data sending process can be reduced through the mode of sending the serialized data.
In this optional embodiment, as an optional implementation manner, the receiving, by the RPC server, the feature data corresponding to the power scheduling request in step 103 may include:
And the RPC server receives the serialized data and performs deserialization operation on the serialized data to obtain deserialized data.
In the embodiment of the present invention, the deserialized data may include an deserialized RPC server function and deserialized power data. The feature data for performing correctness checking may be: parameters of the deserialized RPC server-side function. Specifically, the performing, by the RPC server in step 104, correctness checking on the feature data corresponding to the power scheduling request to obtain a first checking result may include: and the RPC server performs correctness checking on the parameters of the reverse-sequenced RPC server function to obtain a first checking result.
Therefore, the alternative implementation manner can receive the serialized data through the RPC server and perform the deserialization operation on the serialized data to obtain the deserialized data, so that the execution accuracy of the deserialization operation on the serialized data can be improved, the accuracy of the feature data received by the RPC server can be improved based on the serialization operation and the deserialization operation, and the occurrence of the condition that the RPC server subsequently processes the inaccurate feature data can be reduced.
In another alternative embodiment, the generating, by the RPC server in step 105, power response information that matches the first verification result may include:
when the first verification result shows that the characteristic data is incorrect, the RPC server generates response power failure information, and determines the response power failure information as power response information matched with the first verification result;
when the first verification result shows that the characteristic data are correct, the RPC server matches a power dispatching instruction of a power dispatching request and sends the power dispatching instruction to a power module of the component forming equipment so as to trigger the power module to switch the power mode of the power module to obtain a target power mode;
the RPC server detects a later power mode of the power module and generates power response information matched with the first verification result according to the later power mode.
In the embodiment of the invention, the RPC server stores a plurality of predetermined initial power supply scheduling instructions, wherein each initial power supply scheduling instruction has a corresponding initial power supply scheduling request. Specifically, the power scheduling instruction of the RPC server matched with the power scheduling request may include: the RPC server selects one of the power scheduling requests from the plurality of initial power scheduling instructions to be matched with the power scheduling request as the power scheduling instruction. Therefore, the matching accuracy and timeliness of the power supply scheduling instruction can be improved.
In the embodiment of the invention, the detection time of the post power mode is later than the sending time of the power scheduling instruction. The sending time of the power scheduling instruction may include a time corresponding to sending the power scheduling instruction from the RPC server to the power module. For example, assuming that the power scheduling command is sent from the RPC server to the power module at 15:00, 15:10 may be the detection time of the following power mode described above.
Therefore, in this optional embodiment, when the first verification result indicates that the feature data is incorrect, the RPC server side directly generates the response power failure information, so that the accuracy and the speed of generating the response power failure information are improved, and when the first verification result indicates that the feature data is correct, the RPC server side matches the power scheduling instruction of the power scheduling request and sends the power scheduling instruction to the power module of the component forming device, so that the accuracy of sending the power scheduling instruction can be improved, then the RPC server side detects the later power mode of the power module, and generates the power response information matched with the first verification result according to the later power mode, so that the accuracy and the reliability of generating the power response information can be improved based on the later power mode when the feature data is correct.
In this optional embodiment, as an optional implementation manner, the generating, by the RPC server, power response information that matches the first verification result according to the subsequent power mode may include:
the RPC server judges whether the post power mode is the same as the target power mode;
when the post power mode is judged to be different from the target power mode, triggering the operation of generating response power failure information, which is executed by the RPC server;
when the post power mode is judged to be the same as the target power mode, the RPC server generates response power success information, and determines the response power success information as power response information matched with the first verification result.
In the embodiment of the present invention, after the operation of triggering the RPC server to generate the response power failure information, the operation of triggering the RPC server to execute the determination of the response power failure information as the power response information matched with the first verification result is also required. Therefore, the diversity and the flexibility of the determination mode of the response power failure information can be improved, and the determination accuracy of the response power failure information can be improved.
It can be seen that, in this optional embodiment, if the feature data is correct, the RPC server may determine whether the post power mode is the same as the target power mode, and directly generate the response power failure information if it is determined that the post power mode is different, so as to improve accuracy of determining the response power failure information, and if it is determined that the post power mode is the same, generate the response power success information, so as to improve accuracy and reliability of determining the response power success information, and be beneficial to improving diversity and flexibility of determining the power response information based on the first verification result and the post power mode.
Example two
Referring to fig. 2, fig. 2 is a flow chart of a data processing method of an RPC-based chemical composition device according to an embodiment of the present invention. The data processing method of the chemical-mechanical device based on RPC described in fig. 2 may be applied to a remote scheduling platform of the chemical-mechanical device, where the remote scheduling platform may be used to implement a power control function of the chemical-mechanical device. The remote scheduling platform may include an RPC client and an RPC server, where the RPC server may include an RPC server, and the RPC server may include a cloud server or a local server. As shown in fig. 2, the data processing method of the RPC-based chemical composition device may include the following operations:
201. the RPC client collects the characteristic data corresponding to the power supply scheduling request.
202. And the RPC client sends the characteristic data to the RPC server by an RPC connection mode.
203. The RPC server receives the characteristic data corresponding to the power scheduling request.
204. And the RPC server performs correctness checking on the characteristic data corresponding to the power supply scheduling request to obtain a first checking result.
205. And the RPC server generates power supply response information matched with the first verification result.
In the embodiment of the present invention, for other descriptions of step 201 to step 205, please refer to the detailed descriptions of step 101 to step 105 in the first embodiment, and the description of the embodiment of the present invention is omitted.
In the embodiment of the present invention, when the power response information is response power failure information, the execution step 206 is triggered; when the power response information is the response power success information, execution of step 207 is triggered.
206. The RPC server disconnects the RPC connection.
In the embodiment of the invention, the RPC connection is a remote connection between the RPC client and the RPC server.
207. And the RPC server determines the returned data corresponding to the response power supply success information according to the response power supply success information.
In this embodiment of the present invention, optionally, the return data may include instruction data of a power scheduling instruction of the power scheduling request, where the instruction data may include one or more combinations of an instruction sending time, an instruction sending object (for example, sending to a certain battery pack in the power module), an instruction control duration, and the like, and the return data may also include power operation data returned by the power module under control of the power scheduling instruction. Optionally, the power supply operation data may include an operation voltage and/or an operation current, which is not limited by the embodiment of the present invention.
208. And the RPC server sends the returned data corresponding to the response power success information to the RPC client.
In the embodiment of the invention, the returned data comprises the determined serial number of the power dispatching instruction and/or the working data of the power dispatching instruction. The specific way for the RPC server to send the returned data corresponding to the power success information to the RPC client may include: and the RPC server side executes serialization operation on the returned data corresponding to the response power success information to obtain serialized returned data, and sends the serialized returned data to the RPC client side.
209. The RPC client receives the return data.
In the embodiment of the present invention, the specific manner of receiving the returned data by the RPC client may include: and the RPC client receives the serialized return data and performs deserialization operation on the serialized return data to obtain deserialized return data.
210. And the RPC client performs security check on the returned data to obtain a second check result.
In the embodiment of the invention, the second check result can be used for indicating that the returned data is safe or unsafe.
211. The RPC client performs an update operation matching the second check result.
As can be seen, implementing the data processing method of the chemical component device based on RPC described in fig. 2 can collect feature data corresponding to a power scheduling request through an RPC client, and send the feature data to an RPC server through an RPC connection mode, so that the sending stability and timeliness of the feature data can be improved, and the accuracy of sending the feature data to the RPC server can be improved, then the feature data corresponding to the power scheduling request is received through the RPC server, and the correctness check is performed on the feature data corresponding to the power scheduling request, so as to obtain a first check result, the accuracy and timeliness of the correctness check on the feature data can be improved, and the accuracy of the determination of the first check result can be improved. In addition, under the condition that the power supply response information is response power supply failure information, the RPC connection can be directly disconnected through the RPC server, and the situation that data which are not required to be transmitted in the RPC server are sent to the RPC client can be reduced through the operation of disconnecting the RPC connection; and under the condition that the power supply response information is response power supply success information, determining returned data corresponding to the response power supply success information according to the response power supply success information through the RPC server, so that the determination accuracy of the returned data can be improved, the accurately determined returned data is sent to the RPC client, the RPC client can perform security check on the returned data to obtain a second check result, the timeliness and the efficiency of the security check on the returned data can be improved, the determination accuracy of the second check result can be improved, then the RPC client performs an updating operation matched with the accurately determined second check result, the execution accuracy and the timeliness of the updating operation matched with the second check result can be improved, and the situation that the data stored in the RPC client is tampered can be reduced through the security check.
In an alternative embodiment, the security check on the returned data by the RPC client in step 209 may include:
the RPC client selects storage data corresponding to the sequence number from a storage database of the RPC client according to the sequence number of the power scheduling instruction contained in the returned data;
and the RPC client executes security check operation on the returned data according to the stored data to obtain a second check result.
In the embodiment of the invention, the storage data and the return data have corresponding data formats, and the security check operation comprises a check operation of the data format of the return data. Specifically, the RPC client performs a security check operation on the returned data according to the stored data to obtain a second check result, and may include: the RPC client judges whether the data format of the stored data is the same as the data format of the returned data, and when the data format of the stored data is the same as the data format of the returned data, the RPC client determines the safety of the returned data; and when the data format of the stored data is judged to be different from the data format of the returned data, determining that the returned data is unsafe. Therefore, the accuracy and the reliability of judging whether the returned data is safe or not can be improved based on the data format, and the accuracy and the reliability of executing the security check operation on the returned data can be improved.
Therefore, in this optional embodiment, the RPC client may select, according to the serial number of the power supply scheduling instruction included in the returned data, the stored data corresponding to the serial number from the storage database of the RPC client, so that the accuracy of selecting the stored data may be improved, and then, according to the stored data, the security check operation is performed on the returned data to obtain a second check result, and the accuracy of performing the security check operation on the returned data may be improved, so that the accuracy of performing the subsequent update operation may be improved according to the second check result obtained by accurately performing the second check result.
In another alternative embodiment, the update operation includes a data update operation or a format update operation. And, the RPC client in step 211 performs an update operation matched with the second check result, which may include:
when the second check result indicates that the returned data is safe, the RPC client judges whether the power dispatching instruction is successfully executed or not;
when judging that the power supply scheduling instruction is successfully executed, the RPC client executes data updating operation on the stored data according to the returned data;
when the power supply scheduling instruction is judged to be failed to be executed, or when the second check result indicates that the returned data is not safe, the RPC client executes format updating operation on the data format of the stored data according to the data format of the returned data.
In the embodiment of the present invention, the judging, by the RPC client, whether the power scheduling instruction is executed successfully may include: the RPC client detects the following power supply parameters of the power supply module and judges whether the following power supply parameters accord with a power supply scheduling request or not; when the following power supply parameters are judged to accord with the power supply scheduling request, determining that the power supply scheduling instruction is successfully executed; and when the subsequent power supply parameters are judged to be not in accordance with the power supply scheduling request, determining that the power supply scheduling instruction fails to execute. The detection time at which the post-power parameter is located may be a time after the power mode of the power module is switched to the target power mode. Thus, the accuracy and reliability of judging whether the power supply scheduling instruction is successfully executed can be improved.
In an embodiment of the present invention, specifically, after the RPC client performs a format update operation on a data format of the stored data according to a data format of the returned data, the method may further include: the RPC client generates alarm information. The alarm information comprises: and the power supply scheduling instruction executes the first alarm information of failure or returns the second alarm information of unsafe data. Therefore, after the format of the stored data is updated, the alarm information can be automatically generated, and the display accuracy and the comprehensiveness of the content of the alarm information can be improved based on the alarm information with diversified information.
Therefore, in the optional embodiment, whether the power scheduling instruction is successfully executed or not can be judged and judged through the RPC client under the condition that the returned data is safe, and the data updating operation is executed on the stored data according to the returned data under the condition that the power scheduling instruction is successfully executed, so that the execution accuracy of the data updating operation on the stored data can be improved; under the condition that the power supply scheduling instruction fails to execute/the returned data is unsafe, the RPC client executes the format updating operation on the data format of the stored data according to the data format of the returned data, so that the execution accuracy of the format updating operation on the data format of the stored data can be improved, the determination accuracy of the updating operation required to be executed on the stored data can be improved, and the diversity and the flexibility of the updating operation required to be executed can be improved based on the second checking result and whether the power supply scheduling instruction is executed successfully or not.
In the embodiment of the present invention, as shown in fig. 3, an exemplary embodiment of the present invention, fig. 3 is a schematic flow chart of a data processing method of another RPC-based component forming device disclosed in the embodiment of the present invention, where the schematic flow chart shown in fig. 3 may include steps in the data processing method of the RPC-based component forming device described in the first embodiment of the present invention or the second embodiment of the present invention. The assembling the power scheduling request in fig. 3 refers to splitting the power scheduling request to obtain the function name of the corresponding RPC server function.
Example III
Referring to fig. 4, fig. 4 is a schematic structural diagram of a remote scheduling platform according to an embodiment of the present invention. The data processing apparatus of the formation component device based on RPC described in fig. 4 may be applied to a remote scheduling platform of the formation component device, where the remote scheduling platform may be used to implement a power control function of the formation component device. The remote scheduling platform may include an RPC client and an RPC server, where the RPC server may include an RPC server, and the RPC server may include a cloud server or a local server. As shown in fig. 4, the remote scheduling platform may include an RPC client 301 and an RPC server 302, where the RPC client 301 may include an acquisition module 3011 and a first sending module 3012, and the RPC server 302 may include a first receiving module 3021, a first checking module 3022 and a generating module 3023, where:
and the acquisition module 3011 is used for acquiring the characteristic data corresponding to the power supply scheduling request.
The first sending module 3012 is configured to send the feature data to the first receiving module 3021 by means of RPC connection.
The first receiving module 3021 is configured to receive feature data corresponding to the power scheduling request.
The first verification module 3022 is configured to perform correctness verification on the feature data corresponding to the power supply scheduling request, to obtain a first verification result.
A generating module 3023 for generating power response information matched with the first verification result, the power response information being information indicating whether to perform a power control operation on the chemical composition device in response to the power scheduling request, and the power response information including response power success information or response power failure information.
It can be seen that, implementing the data processing apparatus of the chemical component device based on RPC described in fig. 4 can collect the feature data corresponding to the power scheduling request through the RPC client, and send the feature data to the RPC server through the RPC connection, and can improve the sending stability and timeliness of the feature data, and facilitate improving the accuracy of sending the feature data to the RPC server, then receive the feature data corresponding to the power scheduling request through the RPC server, and perform correctness check on the feature data corresponding to the power scheduling request, obtain the first check result, and can improve the accuracy and timeliness of the determination of the feature data, and then automatically generate the power response information matched with the first check result accurately determined, and can improve the generating accuracy of the power response information.
In an alternative embodiment, the manner in which the first sending module 3012 sends the feature data to the first receiving module by using an RPC connection may specifically include:
performing serialization operation on the characteristic data to obtain serialized data;
the serialized data is sent to the first receiving module 3021 by means of an RPC connection.
Therefore, in the alternative embodiment, the serialization operation can be performed on the feature data through the RPC client to obtain the serialized data, so that the accuracy of performing the serialization operation on the feature data can be improved, the accuracy of determining the serialized data can be improved, then the accurately determined serialized data is sent to the RPC server through the RPC connection mode, the accuracy of sending the serialized data to the RPC server can be improved, and the situations of data loss, tampering and the like in the data sending process can be reduced through the mode of sending the serialized data.
In this optional embodiment, as an optional implementation manner, a manner in which the first receiving module 3021 receives the feature data corresponding to the power scheduling request may specifically include:
and receiving the serialized data, and performing deserialization operation on the serialized data to obtain deserialized data.
Therefore, the alternative implementation manner can receive the serialized data through the RPC server and perform the deserialization operation on the serialized data to obtain the deserialized data, so that the execution accuracy of the deserialization operation on the serialized data can be improved, the accuracy of the feature data received by the RPC server can be improved based on the serialization operation and the deserialization operation, and the occurrence of the condition that the RPC server subsequently processes the inaccurate feature data can be reduced.
In another alternative embodiment, the generating module 3023 may specifically generate the power supply response information matching the first verification result by including:
when the first verification result shows that the characteristic data is incorrect, generating response power failure information, and determining the response power failure information as power response information matched with the first verification result;
when the first verification result shows that the characteristic data are correct, matching a power supply scheduling instruction of a power supply scheduling request, and sending the power supply scheduling instruction to a power supply module of the component forming equipment so as to trigger the power supply module to switch a power supply mode of the power supply module to obtain a target power supply mode;
and detecting a later power supply mode of the power supply module, generating power supply response information matched with the first verification result according to the later power supply mode, and enabling the detection time of the later power supply mode to be later than the sending time of the power supply scheduling instruction.
Therefore, in this optional embodiment, when the first verification result indicates that the feature data is incorrect, the RPC server side directly generates the response power failure information, so that the accuracy and the speed of generating the response power failure information are improved, and when the first verification result indicates that the feature data is correct, the RPC server side matches the power scheduling instruction of the power scheduling request and sends the power scheduling instruction to the power module of the component forming device, so that the accuracy of sending the power scheduling instruction can be improved, then the RPC server side detects the later power mode of the power module, and generates the power response information matched with the first verification result according to the later power mode, so that the accuracy and the reliability of generating the power response information can be improved based on the later power mode when the feature data is correct.
In this optional embodiment, as an optional implementation manner, the generating module 3023 may specifically generate, according to the subsequent power mode, power response information that matches the first verification result, where the mode includes:
judging whether the rear power supply mode is the same as the target power supply mode;
when the latter power supply mode is judged to be different from the target power supply mode, triggering the executed operation for generating the response power supply failure information;
And when the post power supply mode is judged to be the same as the target power supply mode, generating response power supply success information, and determining the response power supply success information as power supply response information matched with the first verification result.
It can be seen that, in this optional embodiment, if the feature data is correct, the RPC server may determine whether the post power mode is the same as the target power mode, and directly generate the response power failure information if it is determined that the post power mode is different, so as to improve accuracy of determining the response power failure information, and if it is determined that the post power mode is the same, generate the response power success information, so as to improve accuracy and reliability of determining the response power success information, and be beneficial to improving diversity and flexibility of determining the power response information based on the first verification result and the post power mode.
In yet another alternative embodiment, as shown in fig. 5, fig. 5 is a schematic structural diagram of another remote scheduling platform according to an embodiment of the present invention, as shown in fig. 5, the RPC server 302 further includes a disconnection module 3024, a determination module 3025, and a second sending module 3026, and the RPC client 301 further includes a second receiving module 3013, a second checking module 3014, and an executing module 3015, where:
And the disconnecting module 3024 is configured to disconnect the RPC connection when the power response information is response power failure information, where the RPC connection is a remote connection between the RPC client and the RPC server.
And the determining module 3025 is configured to determine, when the power response information is response power success information, return data corresponding to the response power success information according to the response power success information.
The second sending module 3026 is configured to send, to the second receiving module 3013, return data corresponding to the power success response information, where the return data includes the determined serial number of the power scheduling instruction and/or working data of the power scheduling instruction.
And a second receiving module 3013, configured to receive the return data.
And the second checking module 3014 is configured to perform security check on the returned data to obtain a second checking result.
And an execution module 3015, configured to execute an update operation that matches the second test result.
It can be seen that, in the case that the power response information is the response power failure information, the device described in fig. 5 can also disconnect the RPC directly through the RPC server, and can reduce the occurrence of sending the data that does not need to be transmitted in the RPC server to the RPC client through the operation of disconnecting the RPC connection; and under the condition that the power supply response information is response power supply success information, determining returned data corresponding to the response power supply success information according to the response power supply success information through the RPC server, so that the determination accuracy of the returned data can be improved, the accurately determined returned data is sent to the RPC client, the RPC client can perform security check on the returned data to obtain a second check result, the timeliness and the efficiency of the security check on the returned data can be improved, the determination accuracy of the second check result can be improved, then the RPC client performs an updating operation matched with the accurately determined second check result, the execution accuracy and the timeliness of the updating operation matched with the second check result can be improved, and the situation that the data stored in the RPC client is tampered can be reduced through the security check.
In this optional embodiment, as an optional implementation manner, the second verification module 3014 performs security verification on the returned data, and a manner of obtaining the second verification result may specifically include:
selecting storage data corresponding to the serial number from a storage database of the RPC client according to the serial number of the power supply scheduling instruction contained in the return data, wherein the storage data and the return data have corresponding data formats;
and according to the stored data, performing security check operation on the returned data to obtain a second check result, wherein the security check operation comprises a check operation of a data format of the returned data.
Therefore, according to the alternative implementation manner, the storage data corresponding to the serial number can be selected from the storage database of the RPC client according to the serial number of the power supply scheduling instruction contained in the returned data by the RPC client, so that the selection accuracy of the storage data can be improved, then the security check operation is performed on the returned data according to the storage data to obtain the second check result, the execution accuracy of the security check operation on the returned data can be improved, and the execution accuracy of the subsequent update operation is improved according to the second check result obtained by accurate execution.
In this alternative embodiment, as another alternative implementation, the update operation includes a data update operation or a format update operation. And, the manner in which the execution module 3015 executes the update operation that matches the second test result may specifically include:
when the second check result indicates that the returned data is safe, judging whether the power supply scheduling instruction is successfully executed or not;
when the power supply scheduling instruction is judged to be successfully executed, executing data updating operation on the stored data according to the returned data;
when it is judged that the power supply scheduling instruction fails to execute, or when the second check result indicates that the returned data is not safe, a format updating operation is executed on the data format of the stored data according to the data format of the returned data.
Therefore, in the optional implementation manner, whether the power scheduling instruction is executed successfully or not can be judged and judged through the RPC client side under the condition that the returned data is safe, and the data updating operation is executed on the stored data according to the returned data under the condition that the power scheduling instruction is judged to be executed successfully, so that the execution accuracy of the data updating operation on the stored data can be improved; under the condition that the power supply scheduling instruction fails to execute/the returned data is unsafe, the RPC client executes the format updating operation on the data format of the stored data according to the data format of the returned data, so that the execution accuracy of the format updating operation on the data format of the stored data can be improved, the determination accuracy of the updating operation required to be executed on the stored data can be improved, and the diversity and the flexibility of the updating operation required to be executed can be improved based on the second checking result and whether the power supply scheduling instruction is executed successfully or not.
Example IV
Referring to fig. 6, fig. 6 is a schematic structural diagram of a data processing apparatus of an RPC-based chemical composition device according to an embodiment of the present invention. As shown in fig. 6, the data processing apparatus of the RPC-based chemical composition device may include:
a memory 401 storing executable program codes;
a processor 402 coupled with the memory 401;
the processor 402 invokes the executable program code stored in the memory 401 to perform the steps in the data processing method of the RPC-based component device described in the first or second embodiment of the present invention.
Example five
The embodiment of the invention discloses a computer storage medium which stores computer instructions for executing the steps in the data processing method of the RPC-based chemical composition device described in the first or second embodiment of the invention when the computer instructions are called.
Example six
An embodiment of the present invention discloses a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the data processing method of the RPC-based chemical composition device described in the first or second embodiment.
The apparatus embodiments described above are merely illustrative, wherein the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the invention discloses a data processing method and a device for forming component equipment based on RPC, which are disclosed by the embodiment of the invention only for illustrating the technical scheme of the invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (8)

1. The method is applied to a remote scheduling platform of the chemical composition equipment, wherein the remote scheduling platform comprises an RPC client and an RPC server, and the method comprises the following steps:
the RPC client acquires characteristic data corresponding to a power supply scheduling request and sends the characteristic data to the RPC server in an RPC connection mode;
the RPC server receives the characteristic data corresponding to the power scheduling request, and performs correctness checking on the characteristic data corresponding to the power scheduling request to obtain a first checking result;
The RPC server side generates power response information matched with the first verification result, the power response information is used for indicating whether to respond to the power scheduling request or not, the information of performing power control operation on the formation component equipment, and the power response information comprises response power success information or response power failure information;
the method for transmitting the characteristic data to the RPC server by the RPC client through the RPC connection mode comprises the following steps:
the RPC client performs serialization operation on the characteristic data to obtain serialized data;
the RPC client sends the serialized data to the RPC server through an RPC connection mode;
and the RPC server receives the characteristic data corresponding to the power scheduling request, including:
the RPC server receives the serialized data and performs deserialization operation on the serialized data to obtain deserialized data;
and the RPC server generates power supply response information matched with the first check result, including:
when the first verification result indicates that the characteristic data is incorrect, the RPC server generates response power failure information, and determines the response power failure information as power response information matched with the first verification result;
When the first verification result indicates that the characteristic data are correct, the RPC server matches a power scheduling instruction of the power scheduling request and sends the power scheduling instruction to a power module of the component forming equipment so as to trigger the power module to switch a power mode of the power module to obtain a target power mode;
and the RPC server detects a later power supply mode of the power supply module, and generates power supply response information matched with the first verification result according to the later power supply mode, wherein the detection moment of the later power supply mode is later than the sending moment of the power supply scheduling instruction.
2. The method for processing data of an RPC-based chemical composition device according to claim 1, wherein the generating, by the RPC server, power response information matching the first check result according to the subsequent power mode includes:
the RPC server judges whether the following power mode is the same as the target power mode;
when the subsequent power supply mode is judged to be different from the target power supply mode, triggering the RPC server to execute the operation of generating the response power supply failure information;
And when the following power supply mode is judged to be the same as the target power supply mode, the RPC server generates response power supply success information, and determines the response power supply success information as power supply response information matched with the first verification result.
3. A data processing method of an RPC-based chemical composition device according to claim 1 or 2, characterized in that the method further comprises:
when the power supply response information is the response power supply failure information, the RPC server side disconnects the RPC connection, wherein the RPC connection is a remote connection between the RPC client side and the RPC server side;
when the power supply response information is the response power supply success information, the RPC server determines return data corresponding to the response power supply success information according to the response power supply success information, and sends the return data corresponding to the response power supply success information to the RPC client, wherein the return data comprises the determined serial number of a power supply scheduling instruction and/or working data of the power supply scheduling instruction;
the RPC client receives the returned data and performs security check on the returned data to obtain a second check result;
And the RPC client performs an updating operation matched with the second checking result.
4. A data processing method of an RPC-based chemical composition device according to claim 3, wherein the RPC client performs security verification on the returned data to obtain a second verification result, and includes:
the RPC client selects storage data corresponding to the sequence number from a storage database of the RPC client according to the sequence number of the power supply scheduling instruction contained in the return data, wherein the storage data and the return data have corresponding data formats;
and the RPC client executes security check operation on the returned data according to the stored data to obtain a second check result, wherein the security check operation comprises check operation of a data format of the returned data.
5. The RPC-based data processing method of the chemical composition device of claim 4, wherein the update operation comprises a data update operation or a format update operation;
and the RPC client performs an updating operation matched with the second checking result, including:
when the second check result indicates that the returned data is safe, the RPC client judges whether the power scheduling instruction is successfully executed or not;
When the power supply scheduling instruction is judged to be successfully executed, the RPC client executes the data updating operation on the stored data according to the returned data;
and when judging that the power supply scheduling instruction fails to execute or the second check result indicates that the returned data is not safe, the RPC client executes the format updating operation on the data format of the stored data according to the data format of the returned data.
6. The utility model provides a formation of components equipment's data processing apparatus based on RPC, its characterized in that, the device is applied to in the remote scheduling platform of formation of components equipment, remote scheduling platform includes RPC customer end and RPC service end, RPC customer end includes collection module and first sending module, RPC service end includes first receiving module, first check-up module and generating module, wherein:
the acquisition module is used for acquiring characteristic data corresponding to the power supply scheduling request;
the first sending module is configured to send the feature data to the first receiving module by using an RPC connection method;
the first receiving module is used for receiving the characteristic data corresponding to the power supply scheduling request;
The first verification module is used for verifying the correctness of the characteristic data corresponding to the power supply scheduling request to obtain a first verification result;
the generating module is configured to generate power response information that matches the first verification result, where the power response information is used to indicate whether to respond to the power scheduling request, and the power response information includes response power success information or response power failure information;
the method for transmitting the characteristic data to the first receiving module by the first transmitting module through the RPC connection method specifically includes:
performing serialization operation on the characteristic data to obtain serialized data;
transmitting the serialized data to the first receiving module in an RPC connection mode;
and the mode of the first receiving module for receiving the characteristic data corresponding to the power scheduling request specifically includes:
receiving the serialization data, and performing deserialization operation on the serialization data to obtain deserialized data;
and the mode of generating the power supply response information matched with the first verification result by the generating module specifically comprises the following steps:
When the first verification result indicates that the characteristic data is incorrect, generating response power failure information, and determining the response power failure information as power response information matched with the first verification result;
when the first verification result shows that the characteristic data are correct, matching a power supply scheduling instruction of the power supply scheduling request, and sending the power supply scheduling instruction to a power supply module of the component forming equipment so as to trigger the power supply module to switch a power supply mode of the power supply module to obtain a target power supply mode;
and detecting a later power supply mode of the power supply module, and generating power supply response information matched with the first verification result according to the later power supply mode, wherein the detection moment of the later power supply mode is later than the sending moment of the power supply scheduling instruction.
7. A data processing apparatus for an RPC-based chemical composition device, the apparatus comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform the data processing method of the RPC-based chemical composition device of any one of claims 1-5.
8. A computer storage medium storing computer instructions which, when invoked, are operable to perform the data processing method of the RPC-based chemical composition device of any one of claims 1-5.
CN202410101142.0A 2024-01-25 2024-01-25 RPC-based data processing method and device for chemical composition equipment Active CN117640713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410101142.0A CN117640713B (en) 2024-01-25 2024-01-25 RPC-based data processing method and device for chemical composition equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410101142.0A CN117640713B (en) 2024-01-25 2024-01-25 RPC-based data processing method and device for chemical composition equipment

Publications (2)

Publication Number Publication Date
CN117640713A CN117640713A (en) 2024-03-01
CN117640713B true CN117640713B (en) 2024-04-02

Family

ID=90032380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410101142.0A Active CN117640713B (en) 2024-01-25 2024-01-25 RPC-based data processing method and device for chemical composition equipment

Country Status (1)

Country Link
CN (1) CN117640713B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819371A (en) * 2021-02-24 2021-05-18 中国电力科学研究院有限公司 Block chain-based distributed power scheduling method and system
CN116208654A (en) * 2021-12-01 2023-06-02 腾讯科技(深圳)有限公司 Information calling method, device, equipment, storage medium and program product
CN116500549A (en) * 2023-06-28 2023-07-28 南京邮电大学 LTCC-based four-channel X-band three-dimensional stacking structure TR assembly

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819371A (en) * 2021-02-24 2021-05-18 中国电力科学研究院有限公司 Block chain-based distributed power scheduling method and system
CN116208654A (en) * 2021-12-01 2023-06-02 腾讯科技(深圳)有限公司 Information calling method, device, equipment, storage medium and program product
CN116500549A (en) * 2023-06-28 2023-07-28 南京邮电大学 LTCC-based four-channel X-band three-dimensional stacking structure TR assembly

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种远程智能电源管理系统服务平台的设计与实现;徐涛;;测控技术;20170418(第04期);全文 *
一种远程网络智能电源管理系统的硬件设计;王晨;;电子制作;20130415(第07期);全文 *

Also Published As

Publication number Publication date
CN117640713A (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN107886952B (en) Method, device and system for controlling intelligent household electrical appliance through voice and electronic equipment
CN107453889B (en) A kind of method for uploading and device of journal file
CN112988485B (en) Simulation test method and device for electric power Internet of things equipment
CN112732135A (en) Health information display method and device, storage medium and electronic equipment
CN117640713B (en) RPC-based data processing method and device for chemical composition equipment
CN111124891B (en) Method and device for detecting access state, storage medium and electronic device
CN113840002A (en) Information processing method, system, equipment and medium for locker under weak network environment
CN116846702A (en) Communication control method, device, system and storage medium based on BMS daisy chain
CN110572315A (en) Information interaction method and device, robot and storage medium
CN113472850B (en) Link data acquisition method, device, system, electronic equipment and storage medium
CN111918236B (en) Internet of things security sensor network searching method, device, equipment and storage medium
EP3038390B1 (en) Processing method and apparatus for signaling tracing
CN113452603A (en) Data transmission method and related device
CN114186046A (en) Information processing method, information processing apparatus, server, and storage medium
CN111290897A (en) Asynchronous storage test method, electronic device, computer equipment and storage medium
CN111722886A (en) Tool starting method and device, computer equipment and computer readable storage medium
CN111191552A (en) Image recognition method based on visual terminal and visual terminal
CN113691593B (en) Internet of things monitoring equipment and Internet of things monitoring method
CN112564211B (en) Current detection method and device based on intelligent charging cabinet
CN112351090B (en) Log information transmission method and device based on intelligent large screen and storage medium
CN116055320A (en) Method for remotely upgrading battery through intelligent take-out electric bicycle
CN117857381A (en) Method and device for automatic dial testing of distributed service
CN116132849A (en) Data transmission method and device based on 4G electric energy meter and electronic equipment
CN116383163A (en) Service processing and information query method, device, medium and equipment
CN116962550A (en) API message forwarding method, device, system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant