Method and device for controlling hydrogen methanol synthesis equipment and storage medium

By using network connection and signal line communication methods in the hydrogen synthesis methanol system, real-time monitoring and control of hydrogen synthesis methanol equipment is achieved, and the control inaccurate problem caused by inflexible communication in the prior art is solved, and the accuracy and response speed of control are improved.

CN119561968APending Publication Date: 2025-03-04SHANGHAI ELECTRIC DISTRIBUTED ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411661935.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-20
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

The existing hydrogen synthesis methanol system is inflexible during operation, resulting in inaccurate control, making it difficult to adapt to rapidly changing load requirements.

Method used

Connect the communication system to the cloud platform through the network, collect the operating parameters of the hydrogen synthesis methanol equipment, and send the control strategy to the equipment through the signal line, real-time monitoring and control of the hydrogen synthesis methanol equipment.

Benefits of technology

The convenience and speed of parameter collection and control strategies for hydrogen synthesis methanol equipment is achieved, the accuracy and response speed of control are improved, and the rapid adaptation of rapidly changing load needs can be better adapted to the fast-changing load needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561968A_ABST
    Figure CN119561968A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of control, and discloses a method and device for controlling equipment for synthesizing methanol from hydrogen and a storage medium, applied to a communication system, the communication system is connected with at least one cloud platform through a network, and the communication system is connected with at least one piece of equipment for synthesizing methanol from hydrogen through a signal line. At least one client logs in through a cloud platform, and the method comprises the steps that operation parameters of the hydrogen synthesis methanol equipment are collected, the operation parameters are sent to a target cloud platform through a network, the target cloud platform is a cloud platform sending a subscription request to a communication system, and a control strategy is sent to the target hydrogen synthesis methanol equipment through a signal line, and the control strategy is determined by the target cloud platform based on the operation parameters and the authority of the client and is sent to the communication system through the network, so that parameter acquisition and control strategy issuing of the hydrogen-to-methanol equipment can be conveniently and quickly realized through the network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of control technology and provides a method, a device and a storage medium for controlling a hydrogen-to-methanol device. Background Art

[0002] In order to reduce the pollution of carbon emissions to the environment, the proportion of renewable energy (such as wind and solar energy) used in power systems has gradually increased, which has brought new challenges to the stable operation of traditional power systems. Traditional power systems mainly rely on fossil fuel power plants to adjust frequency and power, but this method has a slow response speed and is difficult to adapt to rapidly changing load demands. Based on this, most power systems use hydrogen synthesis methanol systems to provide energy.

[0003] During the implementation process, it is necessary to monitor the operation of the hydrogen-to-methanol system in real time, that is, to collect parameters of the hydrogen-to-methanol system and issue control strategies for the hydrogen-to-methanol system based on this. However, the existing hydrogen-to-methanol system and the cloud platform can only be connected through local signal lines, and the communication is not flexible enough, resulting in inaccurate control of the hydrogen-to-methanol system. Summary of the invention

[0004] The embodiments of the present application provide a method, device and storage medium for controlling a hydrogen-to-methanol synthesis device, which are used to conveniently and quickly control the hydrogen-to-methanol synthesis device through a network.

[0005] The specific technical solutions provided by this application are as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for controlling a hydrogen-to-methanol device, which is applied to a communication system, wherein the communication system is connected to at least one cloud platform via a network, the communication system is connected to at least one hydrogen-to-methanol device via a signal line, and at least one client logs in via a cloud platform, the method comprising:

[0007] collecting operating parameters of the hydrogen-to-methanol equipment, and sending the operating parameters to a target cloud platform through a network, wherein the target cloud platform is a cloud platform that sends a subscription request to the communication system; and

[0008] The control strategy is sent to the target hydrogen-to-methanol device through a signal line so that the target hydrogen-to-methanol device adjusts operating parameters during operation, wherein the control strategy is determined by the target cloud platform based on operating parameters and client permissions, and sent to the communication system via the network.

[0009] Optionally, collecting the operating parameters of the hydrogen-to-methanol equipment and sending the operating parameters to the target cloud platform through the network includes:

[0010] Collecting the operating parameters of each hydrogen-to-methanol device at preset time intervals, and writing the collected operating parameters into the first temporary memory, wherein different operating parameters have different corresponding address pointers in the first temporary memory;

[0011] In response to the subscription request sent by the target cloud platform, read the operating parameters corresponding to the subscription request from the first temporary memory;

[0012] The read operating parameters are sent to the target cloud platform through the network.

[0013] Optionally, writing each collected operating parameter into the first temporary memory respectively includes:

[0014] Writing the collected operating parameters into the first temporary memory through different sub-threads respectively;

[0015] If it is monitored that at least two child threads write operating parameters to the first temporary memory corresponding to the same address pointer, it is prohibited to write operating parameters to the first temporary memory corresponding to the same address pointer, and at least two memory spaces that are identical to the first temporary memory corresponding to the same address pointer are copied. After at least two child threads write operating parameters to the memory spaces respectively, the operating parameters in each memory space are merged, and it is allowed to write operating parameters to the first temporary memory corresponding to the same address pointer, and the merged operating parameters are written to the first temporary memory corresponding to the same address pointer, wherein the memory space and the first temporary memory have different corresponding addresses in the memory of the communication system.

[0016] Optionally, sending the read operating parameters to the target cloud platform via a network includes:

[0017] Establish the main thread for communication with the target cloud platform;

[0018] The main thread sends the read operating parameters to the target cloud platform through the network.

[0019] Optionally, the target cloud platform determines the control strategy in the following ways:

[0020] The target cloud platform determines the pre-selected control strategy that matches the operating parameters based on the mapping relationship between the preset parameters and strategies;

[0021] The target cloud platform determines the control strategy based on the pre-selected control strategy and the permissions of each client.

[0022] Optionally, before collecting the operating parameters of the hydrogen-to-methanol device, the method further includes:

[0023] Setting the communication protocol of the network connection between the communication system and at least one cloud platform to the MQTT protocol;

[0024] Configure different IP addresses for each cloud platform;

[0025] Based on the type of operating parameters to be transmitted, different topics are configured for each port number of each cloud platform.

[0026] Optionally, after collecting the operating parameters of the hydrogen-to-methanol device and before sending the operating parameters to the target cloud platform through the network, the method further includes:

[0027] If it is detected that the network connection between the communication system and at least one cloud platform is disconnected, the operating parameters are written into the second temporary memory, wherein the second temporary memory is different from the memory space and the address corresponding to the first temporary memory in the memory of the communication system;

[0028] Monitor whether the disconnected network connection is unblocked at preset time intervals;

[0029] If it is detected that the disconnected network connection is restored, the operating parameters are read from the second temporary memory.

[0030] In a second aspect, the embodiment of the present application further provides a device for controlling a hydrogen-to-methanol device, comprising:

[0031] a collection unit, used for collecting operating parameters of the hydrogen-to-methanol equipment, and sending the operating parameters to a target cloud platform through a network, wherein the target cloud platform is a cloud platform that sends a subscription request to the communication system; and

[0032] A control unit is used to send a control strategy to a target hydrogen-to-methanol device through a signal line so that the target hydrogen-to-methanol device adjusts operating parameters during operation, wherein the control strategy is determined by the target cloud platform based on operating parameters and client permissions, and sent to the communication system via the network.

[0033] Optionally, the operating parameters of the hydrogen-to-methanol device are collected and sent to the target cloud platform through the network. The collection unit is used to:

[0034] Collecting the operating parameters of each hydrogen-to-methanol device at preset time intervals, and writing the collected operating parameters into the first temporary memory, wherein different operating parameters have different corresponding address pointers in the first temporary memory;

[0035] In response to the subscription request sent by the target cloud platform, read the operating parameters corresponding to the subscription request from the first temporary memory;

[0036] The read operating parameters are sent to the target cloud platform through the network.

[0037] Optionally, each collected operating parameter is written into the first temporary memory respectively, and the collection unit is used to:

[0038] Writing the collected operating parameters into the first temporary memory through different sub-threads respectively;

[0039] If it is monitored that at least two child threads write operating parameters to the first temporary memory corresponding to the same address pointer, it is prohibited to write operating parameters to the first temporary memory corresponding to the same address pointer, and at least two memory spaces that are identical to the first temporary memory corresponding to the same address pointer are copied. After at least two child threads write operating parameters to the memory spaces respectively, the operating parameters in each memory space are merged, and it is allowed to write operating parameters to the first temporary memory corresponding to the same address pointer, and the merged operating parameters are written to the first temporary memory corresponding to the same address pointer, wherein the memory space and the first temporary memory have different corresponding addresses in the memory of the communication system.

[0040] Optionally, the read operating parameters are sent to the target cloud platform via the network, and the acquisition unit is used to:

[0041] Establish the main thread for communication with the target cloud platform;

[0042] The main thread sends the read operating parameters to the target cloud platform through the network.

[0043] Optionally, the target cloud platform determines the control strategy in the following ways:

[0044] The target cloud platform determines the pre-selected control strategy that matches the operating parameters based on the mapping relationship between the preset parameters and strategies;

[0045] The target cloud platform determines the control strategy based on the pre-selected control strategy and the permissions of each client.

[0046] Optionally, before collecting the operating parameters of the hydrogen-to-methanol device, the method further includes:

[0047] Setting the communication protocol of the network connection between the communication system and at least one cloud platform to the MQTT protocol;

[0048] Configure different IP addresses for each cloud platform;

[0049] Based on the type of operating parameters to be transmitted, different topics are configured for each port number of each cloud platform.

[0050] Optionally, after collecting the operating parameters of the hydrogen-to-methanol device and before sending the operating parameters to the target cloud platform through the network, the method further includes:

[0051] If it is detected that the network connection between the communication system and at least one cloud platform is disconnected, the operating parameters are written into the second temporary memory, wherein the second temporary memory is different from the memory space and the address corresponding to the first temporary memory in the memory of the communication system;

[0052] Monitor whether the disconnected network connection is unblocked at preset time intervals;

[0053] If it is detected that the disconnected network connection is restored, the operating parameters are read from the second temporary memory.

[0054] In a third aspect, a communication system includes:

[0055] A memory for storing executable instructions;

[0056] A processor is used to read and execute executable instructions stored in a memory to implement any method as described in the first aspect.

[0057] In a fourth aspect, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor, the processor is enabled to execute any method described in the first aspect.

[0058] The beneficial effects of this application are as follows:

[0059] To summarize, in an embodiment of the present application, a method, device and storage medium for controlling a hydrogen synthesis methanol device are provided. The method is applied to a communication system, wherein the communication system is connected to at least one cloud platform via a network, the communication system is connected to at least one hydrogen synthesis methanol device via a signal line, and at least one client logs in via a cloud platform. The method includes: collecting operating parameters of the hydrogen synthesis methanol device, sending the operating parameters to a target cloud platform via the network, the target cloud platform is a cloud platform that sends a subscription request to the communication system, and sending a control strategy to the target hydrogen synthesis methanol device via a signal line so that the target hydrogen synthesis methanol device adjusts the operating parameters during operation. The control strategy is determined by the target cloud platform based on the operating parameters and the client's authority, and sent to the communication system via the network, thereby enabling the parameter collection and control strategy issuance of the hydrogen synthesis methanol device to be conveniently and quickly realized through the network.

[0060] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0062] Figure 1 This is a schematic diagram of a system architecture for controlling a hydrogen-to-methanol device in an embodiment of the present application;

[0063] Figure 2 This is a schematic diagram of a process for controlling a hydrogen-to-methanol synthesis device in an embodiment of the present application;

[0064] Figure 3 A schematic diagram of a process for establishing a network connection between a communication system and a cloud platform in an embodiment of the present application;

[0065] Figure 4 A schematic diagram of a process for monitoring a network connection in an embodiment of the present application;

[0066] Figure 5 A schematic diagram of a process for collecting operating parameters of a hydrogen-to-methanol device in an embodiment of the present application and sending the operating parameters to a target cloud platform via a network;

[0067] Figure 6 This is a flow chart of writing each collected operating parameter into the first temporary memory in an embodiment of the present application;

[0068] Figure 7 A schematic diagram of a process of sending the operating parameters read out in an embodiment of the present application to a target cloud platform via a network;

[0069] Figure 8 This is a schematic diagram of the logical architecture of a device for controlling a hydrogen-to-methanol device in an embodiment of the present application;

[0070] Fig. 9 This is a schematic diagram of the physical architecture of a communication system in an embodiment of the present application. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0072] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented using sequences other than those illustrated or described herein.

[0073] The preferred implementation modes of the present application are described in detail below with reference to the accompanying drawings.

[0074] See also Figure 1 As shown, in the embodiment of the present application, the system includes a hydrogen-to-methanol device, a communication system and at least one cloud platform. Figure 1 In the embodiment, the communication system is connected to at least one cloud platform via a network, the communication system is connected to at least one hydrogen-to-methanol device via a signal line, and at least one client logs in via a cloud platform.

[0075] During the implementation process, usually multiple hydrogen synthesis methanol equipment operates at the same time, but the parameters of different hydrogen synthesis methanol equipment (for example, temperature, concentration, etc.) may be different. Each hydrogen synthesis methanol equipment is connected to the communication system through a signal line (for example, RS422, IEC104, MODBUS, IEC61850 protocol signal line). In this way, on the one hand, the operating parameters of the hydrogen synthesis methanol equipment can be transmitted to the communication system through the signal line, and on the other hand, the communication system can send the control strategy to the hydrogen synthesis methanol equipment through the signal line.

[0076] At the same time, multiple clients can log in through one or more cloud platforms, and one or more cloud platforms are connected to the communication system through the network. In this way, on the one hand, the above-mentioned operating parameters can be uploaded to the communication system conveniently and quickly through the network, and the client can view the above-mentioned parameters accordingly. On the other hand, after the cloud platform determines the control strategy according to the operating parameters and the client's authority, the control strategy can be sent to the communication system through the network, thereby realizing the control of each hydrogen synthesis methanol equipment.

[0077] In an embodiment of the present application, a method for controlling a hydrogen-to-methanol synthesis device is implemented, which is mainly performed on the communication system side and is described in detail below.

[0078] See also Figure 2 As shown, in the embodiment of the present application, a specific process for controlling a hydrogen-to-methanol device is as follows:

[0079] Step 201: Collect the operating parameters of the hydrogen-to-methanol equipment and send the operating parameters to the target cloud platform through the network, wherein the target cloud platform is the cloud platform that sends the subscription request to the communication system.

[0080] In the embodiment of the present application, the communication protocol between the communication system and the cloud platform must first be specified. Before collecting the operating parameters of the hydrogen-to-methanol equipment, refer to Figure 3 As shown, it also includes:

[0081] Step 001: Set the communication protocol of the network connection between the communication system and at least one cloud platform to the MQTT protocol.

[0082] The Message Queuing Telemetry Transport (MQTT) protocol works on top of the TCP / IP protocol. It is a publish / subscribe messaging protocol designed for remote devices with low hardware performance and poor network conditions. It is lightweight, simple, open, and easy to implement, which makes it widely applicable. In the embodiment of the present application, in order to ensure the reliability of the transmission of operating parameters and control strategies, after a network connection is established between the communication system and each cloud platform, the communication protocol of the network connection is further set to the MQTT protocol.

[0083] After setting the communication protocol of the above network connection to the MQTT protocol, a new MQTT Broker can be created to establish a connection between the communication system and the cloud platform, that is, to establish a TCP connection for communication.

[0084] Step 002: Configure different IP addresses for each cloud platform.

[0085] Considering that the MQTT protocol uses IP address plus topic for addressing, during the implementation process, after setting the communication protocol to the MQTT protocol, multiple different IP addresses are pre-configured, and then different IP addresses are configured for each cloud platform respectively, so that during the network communication process, the unique cloud platform can be determined according to the IP address.

[0086] Step 003: Based on the type of operating parameters to be transmitted, different topics are configured for each port number of each cloud platform.

[0087] Since one cloud platform can be logged in by multiple clients, and the collected operating parameters of the hydrogen-to-methanol equipment include temperature, concentration and other different parameters, based on this, during the implementation process, after configuring an IP address for a cloud platform, the type of each operating parameter to be transmitted is analyzed, and different topics are configured for each port number of the cloud platform according to the different types of each operating parameter. In this way, the same client or different clients can obtain different types of operating parameters of the hydrogen-to-methanol equipment through the configured topics.

[0088] In the embodiment of the present application, the operating parameters of the hydrogen-to-methanol device during operation, such as temperature and concentration, can be collected by sensors arranged in the communication system. The above sensors are connected to the hydrogen-to-methanol device through a signal line. In order to actively send the collected operating parameters to the relevant cloud platform, for example, the operating parameters are sent to the cloud platform only when the operating parameters of the hydrogen-to-methanol device change. For another example, cloud platform A only needs the operating parameter of temperature, while cloud platform B only needs the operating parameter of concentration. Based on this, in the embodiment of the present application, the cloud platform is allowed to send a subscription request to the communication system, and the cloud platform that sent the subscription request is determined as the target cloud platform. In this way, after the operating parameters are collected, the operating parameters can be sent to the relevant target cloud platform through the network.

[0089] Considering the instability of network transmission, after collecting the operating parameters of the hydrogen-to-methanol equipment, before sending the operating parameters to the target cloud platform through the network, refer to Figure 4 As shown, it also includes:

[0090] Step 101: If it is detected that the network connection between the communication system and at least one cloud platform is disconnected, the operating parameters are written into a second temporary memory, wherein the second temporary memory has a different address from the memory space and the first temporary memory in the memory of the communication system.

[0091] In the embodiment of the present application, the communication system monitors the network connection between the communication system and each cloud platform in real time. When the network connection is detected to be unblocked, the operating parameters are uploaded to each cloud platform through the network connection. When the network connection between the communication system and at least one cloud platform is detected to be disconnected, the operating parameters cannot be uploaded to the corresponding cloud platform through the disconnected network connection.

[0092] In order to avoid the loss of the above-mentioned operating parameters and ensure the reliable transmission of the operating parameters, during the implementation process, a second temporary memory will be pre-opened in the memory of the communication system. The second temporary memory is different from the memory space and the first temporary memory in the memory of the communication system. The corresponding address is different. When the network connection is detected to be disconnected, the operating parameters to be sent will be written into the second temporary memory for temporary storage.

[0093] Step 102: Monitor whether the disconnected network connection is unblocked at a preset time interval.

[0094] Regarding the disconnected network connection between the communication system and the cloud platform, during the implementation process, the communication system will monitor in real time whether the disconnected network connection is restored. Preferably, the communication system will monitor whether the disconnected network connection is restored at a preset time interval. The size of the above time interval can be flexibly set according to the application scenario.

[0095] Step 103: If it is detected that the disconnected network connection is restored, the operating parameters are read from the second temporary memory.

[0096] During the implementation process, after monitoring that the above-mentioned disconnected network connection has been restored, the transmission channel between the corresponding communication system and the cloud platform will be able to upload the operating parameters to the cloud platform. In this case, the communication system will read the operating parameters from the second temporary memory, and further send the read operating parameters to the cloud platform, thereby ensuring the reliability of the transmission.

[0097] The above-mentioned operation parameters of the hydrogen-to-methanol equipment are collected and sent to the target cloud platform through the network. Figure 5 As shown, including:

[0098] Step 2011: collect the operating parameters of each hydrogen-to-methanol device at preset time intervals, and write the collected operating parameters into the first temporary memory, wherein different operating parameters have different corresponding address pointers in the first temporary memory.

[0099] During the implementation process, the operating parameters of each hydrogen-to-methanol synthesis device are first collected separately. Exemplarily, the above collection process is carried out at preset time intervals. However, considering the diversity of operating parameters and the different requirements of the target cloud platform for operating parameters, in order to send the operating parameters to the target cloud platform quickly and reliably, the embodiment of the present application adopts an operating mode of one main thread plus multiple sub-threads. The above-mentioned collected operating parameters are written into the memory pointed to by different address pointers of the first temporary memory through different sub-threads.

[0100] It should be noted that the first temporary memory is a space opened in the memory of the communication system. Different operating parameters can be stored in the memory corresponding to different address pointers of the first temporary memory.

[0101] Specifically, the above-mentioned collected operating parameters are written into the first temporary memory respectively, see Figure 6 As shown, including:

[0102] Step 20111: Write the collected operating parameters into the first temporary memory through different sub-threads respectively.

[0103] During the implementation process, the above-mentioned different sub-threads are processed asynchronously, that is, after the operating parameters of the hydrogen synthesis methanol equipment are collected, the operating parameters are written into the memory corresponding to an address pointer of the first temporary memory through one sub-thread, and after another operating parameter is collected, the operating parameter is written into the memory corresponding to another address pointer of the first temporary memory through another sub-thread, and so on, until all the collected operating parameters are written into the first temporary memory, thereby realizing efficient storage of the operating parameters.

[0104] Step 20112: If it is monitored that at least two child threads write operating parameters to the first temporary memory corresponding to the same address pointer, it is prohibited to write operating parameters to the first temporary memory corresponding to the same address pointer, and at least two memory spaces that are identical to the first temporary memory corresponding to the same address pointer are copied. After at least two child threads write operating parameters to the memory spaces respectively, the operating parameters in each memory space are merged, and it is allowed to write operating parameters to the first temporary memory corresponding to the same address pointer, and the merged operating parameters are written to the first temporary memory corresponding to the same address pointer, wherein the memory space and the first temporary memory have different corresponding addresses in the memory of the communication system.

[0105] Considering that the operating parameters are collected at preset time intervals, that is, there are parameter updates or changes for the same operating parameters, for example, the temperature parameters of the hydrogen synthesis methanol equipment are collected every ten seconds, and the subscription request sent by the target cloud platform indicates that the temperature parameters are received every ten minutes. In this case, the temperature parameters need to be updated every ten seconds. For example, a network interruption may cause the operating parameters to be rewritten.

[0106] In the above case, write protection is performed by resource sharing. During the implementation process, if at least two sub-threads are monitored to write operating parameters to the first temporary memory corresponding to the same address pointer, in order to avoid misoperation of the operating parameters, firstly, it is prohibited to write operating parameters to the first temporary memory corresponding to the same address pointer. Exemplarily, the permission of the first temporary memory corresponding to a certain address pointer is set to prohibit write operations, so that the operating parameters already written in the first temporary memory can be protected. Then copy at least two memory spaces that are the same as the first temporary memory corresponding to the same address pointer. The memory space here is a section of space in the memory of the communication system, and the memory space is different from the space corresponding to the first temporary memory and the second temporary memory.

[0107] However, the copied memory space allows the operation parameters already written in the first temporary memory to be updated or changed. That is, it allows new operation parameters to be written to the memory space through at least two sub-threads respectively. In order to unify the operation parameters in the memory space and the corresponding first temporary memory, during the implementation process, the operation parameters in each of the memory spaces are further merged to obtain the merged operation parameters, that is, the memory space is used to update or change the operation parameters. In this case, it is allowed to write the operation parameters to the first temporary memory corresponding to the same address pointer. For example, the permission of the first temporary memory corresponding to a certain address pointer is changed from prohibiting write operations to allowing write operations, and then the merged operation parameters are written to the first temporary memory corresponding to the same address pointer. In order to save memory, the copied memory space can be cancelled, so that the copied memory space can be used to store other operation parameters.

[0108] By means of the above-mentioned operation of copying the memory space, the data consistency and stability of the operating parameters are ensured, and the sharing of the same memory resource to multiple sub-threads is realized.

[0109] Step 2012: In response to the subscription request sent by the target cloud platform, read the operating parameters corresponding to the subscription request from the first temporary memory.

[0110] After writing each collected operating parameter into the first temporary memory respectively, the subscription request sent by the target cloud platform is parsed, that is, it is analyzed and when and what operating parameters need to be sent to the target cloud platform, and then the operating parameters corresponding to the subscription request are searched in the space corresponding to different address pointers of the first temporary memory, and the found operating parameters are read out.

[0111] Step 2013: Send the read operating parameters to the target cloud platform via the network.

[0112] During the implementation process, after reading the operating parameters required by the target cloud platform, the read operating parameters are sent to the target cloud platform through the network. Figure 7 As shown, including:

[0113] Step 20131: Establish a main thread for communicating with the target cloud platform.

[0114] In order to send the read operating parameters to the target cloud platform conveniently and reliably, in an embodiment of the present application, a main thread for communication between the communication system and the target cloud platform is established. Compared with the above-mentioned multiple sub-threads, the main thread is responsible for calling other sub-threads to perform tasks, and can perform the next step of processing based on the execution results of each sub-thread.

[0115] Step 20132: Send the read operating parameters to the target cloud platform through the network through the main thread.

[0116] During the implementation process, after the sub-thread reads the operating parameters, the main thread established above sends the read operating parameters to the target cloud platform through the network. The modes of the above-mentioned sub-threads and main thread can enable the target cloud platform to quickly receive the above-mentioned operating parameters through the network.

[0117] Step 202: Send the control strategy to the target hydrogen-to-methanol device through the signal line so that the target hydrogen-to-methanol device adjusts the operating parameters during operation, wherein the control strategy is determined by the target cloud platform based on the operating parameters and the client's authority, and sent to the communication system via the network.

[0118] After the target cloud platform receives the above operating parameters through the network, it will formulate a control strategy based on the permissions of the client that logs into the target cloud platform. Specifically, the target cloud platform determines the control strategy in the following ways:

[0119] (1) The target cloud platform determines the pre-selected control strategy that matches the operating parameters based on the mapping relationship between the preset parameters and strategies.

[0120] In the embodiments of the present application, mapping relationships between various operating parameters and corresponding control strategies are pre-set, for example, a one-to-one mapping relationship between temperature and temperature control adjustment strategy, a one-to-one mapping relationship between concentration and concentration adjustment strategy, etc. The above-mentioned operating parameters and corresponding control strategies constitute a mapping relationship between parameters and strategies.

[0121] After receiving the operating parameters through the network, the target cloud platform searches for parameters identical to the operating parameters in the mapping relationship between the above parameters and strategies, and determines the strategies corresponding to the identical parameters found as pre-selected control strategies matching the operating parameters.

[0122] (2) The target cloud platform determines the control strategy based on the pre-selected control strategy and the permissions of each client.

[0123] Considering the different permissions of each client, for example, some clients only formulate relevant control strategies for a certain operating parameter, and some clients formulate relevant control strategies for operating parameters within a certain numerical range, etc. During the implementation process, after determining the pre-selected control strategy, the target cloud platform will further screen the pre-selected control strategy in combination with the client's permissions, so as to obtain a control strategy that matches the client's permissions.

[0124] After the target cloud platform generates the control strategy, the control strategy will be sent to the communication system through the network. After receiving the control strategy, the communication system will send the control strategy to the target hydrogen synthesis methanol equipment through the signal line. In this way, the target hydrogen synthesis methanol equipment can adjust the operating parameters during operation. For example, when the communication system receives the concentration adjustment control strategy through the network, the concentration adjustment control strategy will be sent to the target hydrogen synthesis methanol equipment through the signal line. In this way, the target hydrogen synthesis methanol equipment can adjust the concentration as an operating parameter according to the concentration adjustment control strategy.

[0125] Based on the same inventive concept, see Figure 8 As shown, in an embodiment of the present application, a device for controlling a hydrogen-to-methanol device is provided, comprising:

[0126] A collection unit 801 is used to collect operating parameters of the hydrogen-to-methanol equipment and send the operating parameters to a target cloud platform through a network, wherein the target cloud platform is a cloud platform that sends a subscription request to the communication system; and

[0127] The control unit 802 is used to send the control strategy to the target hydrogen-to-methanol synthesis equipment through the signal line so that the target hydrogen-to-methanol synthesis equipment adjusts the operating parameters during operation, wherein the control strategy is determined by the target cloud platform based on the operating parameters and the client's authority, and sent to the communication system via the network.

[0128] Optionally, the operating parameters of the hydrogen-to-methanol device are collected and sent to the target cloud platform via the network. The collection unit 801 is used to:

[0129] Collecting the operating parameters of each hydrogen-to-methanol device at preset time intervals, and writing the collected operating parameters into the first temporary memory, wherein different operating parameters have different corresponding address pointers in the first temporary memory;

[0130] In response to the subscription request sent by the target cloud platform, read the operating parameters corresponding to the subscription request from the first temporary memory;

[0131] The read operating parameters are sent to the target cloud platform through the network.

[0132] Optionally, the collected operating parameters are written into the first temporary memory respectively, and the collection unit 801 is used to:

[0133] Writing the collected operating parameters into the first temporary memory through different sub-threads respectively;

[0134] If it is monitored that at least two child threads write operating parameters to the first temporary memory corresponding to the same address pointer, it is prohibited to write operating parameters to the first temporary memory corresponding to the same address pointer, and at least two memory spaces that are identical to the first temporary memory corresponding to the same address pointer are copied. After at least two child threads write operating parameters to the memory spaces respectively, the operating parameters in each memory space are merged, and it is allowed to write operating parameters to the first temporary memory corresponding to the same address pointer, and the merged operating parameters are written to the first temporary memory corresponding to the same address pointer, wherein the memory space and the first temporary memory have different corresponding addresses in the memory of the communication system.

[0135] Optionally, the read operating parameters are sent to the target cloud platform via the network, and the acquisition unit 801 is used to:

[0136] Establish the main thread for communication with the target cloud platform;

[0137] The main thread sends the read operating parameters to the target cloud platform through the network.

[0138] Optionally, the target cloud platform determines the control strategy in the following ways:

[0139] The target cloud platform determines the pre-selected control strategy that matches the operating parameters based on the mapping relationship between the preset parameters and strategies;

[0140] The target cloud platform determines the control strategy based on the pre-selected control strategy and the permissions of each client.

[0141] Optionally, before collecting the operating parameters of the hydrogen-to-methanol device, the method further includes:

[0142] Setting the communication protocol of the network connection between the communication system and at least one cloud platform to the MQTT protocol;

[0143] Configure different IP addresses for each cloud platform;

[0144] Based on the type of operating parameters to be transmitted, different topics are configured for each port number of each cloud platform.

[0145] Optionally, after collecting the operating parameters of the hydrogen-to-methanol device and before sending the operating parameters to the target cloud platform through the network, the method further includes:

[0146] If it is detected that the network connection between the communication system and at least one cloud platform is disconnected, the operating parameters are written into the second temporary memory, wherein the second temporary memory is different from the memory space and the address corresponding to the first temporary memory in the memory of the communication system;

[0147] Monitor whether the disconnected network connection is unblocked at preset time intervals;

[0148] If it is detected that the disconnected network connection is restored, the operating parameters are read from the second temporary memory.

[0149] Based on the same inventive concept, see Fig. 9 As shown, an embodiment of the present application provides a communication system, including: a memory 901, used to store executable instructions; a processor 902, used to read and execute the executable instructions stored in the memory, and execute any one of the methods of the first aspect above.

[0150] Based on the same inventive concept, an embodiment of the present application provides a computer-readable storage medium. When instructions in the storage medium are executed by a processor, the processor is enabled to execute the method described in any one of the first aspects above.

[0151] To summarize, in an embodiment of the present application, a method, device and storage medium for controlling a hydrogen synthesis methanol device are provided. The method is applied to a communication system, wherein the communication system is connected to at least one cloud platform via a network, the communication system is connected to at least one hydrogen synthesis methanol device via a signal line, and at least one client logs in via a cloud platform. The method includes: collecting operating parameters of the hydrogen synthesis methanol device, sending the operating parameters to a target cloud platform via the network, the target cloud platform is a cloud platform that sends a subscription request to the communication system, and sending a control strategy to the target hydrogen synthesis methanol device via a signal line so that the target hydrogen synthesis methanol device adjusts the operating parameters during operation. The control strategy is determined by the target cloud platform based on the operating parameters and the client's authority, and sent to the communication system via the network, thereby enabling the parameter collection and control strategy issuance of the hydrogen synthesis methanol device to be conveniently and quickly realized through the network.

[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program product systems. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product system implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program product systems according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0156] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for controlling a hydrogen-to-methanol device, characterized in that: Applied to a communication system, the communication system is connected to at least one cloud platform via a network, the communication system is connected to at least one hydrogen-to-methanol device via a signal line, at least one client logs in via one of the cloud platforms, and the method comprises: collecting operating parameters of a hydrogen-to-methanol device, and sending the operating parameters to a target cloud platform through a network, wherein the target cloud platform is a cloud platform that sends a subscription request to the communication system; and The control strategy is sent to the target hydrogen-to-methanol device through the signal line so that the target hydrogen-to-methanol device adjusts the operating parameters during operation, wherein the control strategy is determined by the target cloud platform based on the operating parameters and the authority of the client, and sent to the communication system via the network.

2. The method according to claim 1, characterized in that The collecting the operating parameters of the hydrogen-to-methanol equipment and sending the operating parameters to the target cloud platform through the network includes: Collecting the operating parameters of each hydrogen-to-methanol device at preset time intervals, and writing each of the collected operating parameters into a first temporary memory, wherein different operating parameters correspond to different address pointers in the first temporary memory; In response to the subscription request sent by the target cloud platform, reading an operating parameter corresponding to the subscription request from the first temporary memory; The read operating parameters are sent to the target cloud platform via the network.

3. The method according to claim 2, characterized in that The step of writing the collected operating parameters into the first temporary memory includes: Writing the collected operating parameters into the first temporary memory respectively through different sub-threads; If it is monitored that at least two of the sub-threads write the operating parameters to the first temporary memory corresponding to the same address pointer, it is prohibited to write the operating parameters to the first temporary memory corresponding to the same address pointer, and at least two memory spaces that are identical to the first temporary memory corresponding to the same address pointer are copied. After at least two sub-threads write the operating parameters to the memory spaces respectively, the operating parameters in each memory space are merged, and it is allowed to write the operating parameters to the first temporary memory corresponding to the same address pointer, and the merged operating parameters are written to the first temporary memory corresponding to the same address pointer, wherein the memory space and the first temporary memory have different corresponding addresses in the memory of the communication system.

4. The method according to claim 1, characterized in that The step of sending the read operating parameters to the target cloud platform via a network includes: Establishing a main thread for communicating with the target cloud platform; The main thread sends the read operating parameters to the target cloud platform via the network.

5. The method according to claim 1, characterized in that The target cloud platform determines the control strategy in the following manner: The target cloud platform determines a preselected control strategy that matches the operating parameters based on a mapping relationship between preset parameters and strategies; The target cloud platform determines the control strategy based on the preselected control strategy and the authority of each of the clients.

6. The method according to claim 1, characterized in that Before collecting the operating parameters of the hydrogen-to-methanol equipment, the method further includes: Setting the communication protocol of the network connection between the communication system and at least one of the cloud platforms to the MQTT protocol; Configure different IP addresses for each of the cloud platforms respectively; Based on the type of the operating parameters to be transmitted, different topics are configured for each port number of each cloud platform.

7. The method according to any one of claims 1 to 6, characterized in that: After collecting the operating parameters of the hydrogen-to-methanol equipment and before sending the operating parameters to the target cloud platform through the network, the method further includes: If it is detected that the network connection between the communication system and at least one of the cloud platforms is disconnected, the operating parameters are written into a second temporary memory, wherein the second temporary memory has a different address from the memory space and the first temporary memory in the memory of the communication system; Monitoring whether the disconnected network connection is unobstructed at a preset time interval; If it is monitored that the disconnected network connection is restored, the operating parameters are read from the second temporary memory.

8. A device for controlling a hydrogen-to-methanol device, characterized in that: include: a collection unit, used for collecting operating parameters of the hydrogen-to-methanol equipment, and sending the operating parameters to a target cloud platform through a network, wherein the target cloud platform is a cloud platform that sends a subscription request to the communication system; and A control unit is used to send a control strategy to a target hydrogen-to-methanol device via the signal line so that the target hydrogen-to-methanol device adjusts operating parameters during operation, wherein the control strategy is determined by the target cloud platform based on the operating parameters and the authority of the client, and sent to the communication system via the network.

9. A communication system, characterized in that: include: A memory for storing executable instructions; A processor, configured to read and execute the executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the method according to any one of claims 1 to 7.