CN115987749A - Bidirectional communication method and application - Google Patents
Bidirectional communication method and application Download PDFInfo
- Publication number
- CN115987749A CN115987749A CN202211699303.8A CN202211699303A CN115987749A CN 115987749 A CN115987749 A CN 115987749A CN 202211699303 A CN202211699303 A CN 202211699303A CN 115987749 A CN115987749 A CN 115987749A
- Authority
- CN
- China
- Prior art keywords
- management system
- heartbeat
- automation
- equipment
- control instruction
- 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.)
- Pending
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Computer And Data Communications (AREA)
Abstract
According to the bidirectional communication method and the application, the automatic equipment is in communication connection with the equipment management system based on the HTTP, the automatic equipment actively triggers communication with the equipment management system, the equipment management system responds and sends the heartbeat feedback message, and when a control command is sent to the automatic equipment, the control command is written into the heartbeat feedback message, so that the automatic equipment analyzes the control command when receiving the heartbeat feedback message, and executes the control command in time. According to the bidirectional communication method and the application, communication connection between the automation equipment and the equipment management system is achieved based on the HTTP, active service control of the equipment management system can be achieved, real-time communication between the equipment management system and the automation equipment is guaranteed, and cost for establishing real-time communication between the automation equipment and the equipment management system is controlled conveniently.
Description
Technical Field
The application relates to the technical field of automation equipment control, in particular to a bidirectional communication method and application.
Background
With the continuous development of the automation industry, the management appeal of users to the automation equipment is continuously improved. In order to implement management of the automation settings, a device management system is usually required to be set up, and the automation devices are managed by the device management system. Fig. 1 is a usage state diagram of a conventional device management system. As shown in fig. 1, the equipment management system 10 is communicatively connected to tens or hundreds of pieces of automation equipment 20, such as a first automation equipment 21, a second automation equipment 22, an nth automation equipment 23, and the like, respectively, wherein the automation equipment includes an automation processing equipment, an automation detection equipment, and the like. The equipment management system and the automation equipment perform real-time communication interaction so as to achieve the purposes of online production plan management and production process monitoring. Therefore, how to ensure the reliability of real-time communication between the device management system and the automation device is a technical problem to be solved urgently in the field.
Disclosure of Invention
The embodiment of the application provides a two-way communication method and application, which are used for ensuring real-time communication between an equipment management system and automation equipment.
In a first aspect, a bidirectional communication method provided by the present application is applied to an automation device, where the automation device is in communication connection with a device management system based on an HTTP protocol; the method comprises the following steps:
sending a heartbeat message to the equipment management system based on an HTTP (hyper text transport protocol), wherein the heartbeat message comprises attribute information of the automation equipment, and the attribute information is used for identifying the automation equipment;
receiving a heartbeat feedback message sent by the equipment management system in response to the heartbeat message;
analyzing the heartbeat feedback message, and detecting an extension field in the heartbeat feedback message, wherein the extension field is used for identifying a control instruction issued by the equipment management system;
if the control instruction issued by the equipment management system is analyzed according to the expanded field in the heartbeat feedback message, feeding back the received control instruction information to the equipment management system;
and executing the control instruction and reporting the execution result to the equipment management system.
Optionally, in the bidirectional communication method, after sending the heartbeat packet to the device management system based on the HTTP protocol, the method further includes:
and if the heartbeat feedback message sent by the equipment management system is not received within the preset time, sending an alarm and sending a reconnection request to the equipment management system.
Optionally, in the bidirectional communication method, detecting an extension field in the heartbeat feedback message includes:
determining whether an instruction field in an extension field of the heartbeat feedback message is empty;
and if the instruction field is not empty, determining a control instruction issued by the equipment management system according to the operation instruction name contained in the instruction field.
Optionally, in the bidirectional communication method, after determining the control instruction issued by the device management system according to the operation instruction name included in the instruction field, the method further includes:
and determining the parameters of the control instruction according to the operation instruction data contained in the instruction parameter field.
Optionally, in the bidirectional communication method, the heartbeat packet includes a request body, and the request body includes a serial number of the automation device, a working state of the automation device, a time for sending the heartbeat packet, and a communication address of the automation device, and is used to indicate attribute information of the automation device.
Optionally, in the bidirectional communication method, setting a first preset time interval in the automation device, and sending a heartbeat message to the device management system based on an HTTP protocol includes:
and sending heartbeat messages to the equipment management system at regular time according to the first preset time interval based on an HTTP (hyper text transport protocol).
In a second aspect, the present application further provides a bidirectional communication method, which is used for an equipment management system, where the equipment management system is in communication connection with an automatic equipment based on an HTTP protocol; the method comprises the following steps:
receiving a heartbeat message sent by the automation equipment based on an HTTP (hyper text transport protocol);
responding to the heartbeat message, if a control instruction for controlling the automation equipment is received, writing the control instruction into an extension field of a heartbeat feedback message, and sending the heartbeat feedback message written into the control instruction to the automation equipment.
Optionally, in the bidirectional communication method, the control instruction includes an operation instruction name and operation instruction data;
if a control instruction for controlling the automation equipment is received, writing the control instruction into an extension field of a heartbeat feedback message, wherein the control instruction comprises the following steps:
and if a control instruction for controlling the automation equipment is received, writing the operation instruction name into an instruction field in an extension field of the heartbeat message and writing the operation instruction data into an instruction parameter field in an extension field of a feedback message.
In a third aspect, the application further provides an automation device, where the automation device is in communication connection with the device management system based on an HTTP protocol; comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the two-way communication method of the first aspect when executing said computer program.
In a fourth aspect, the present application further provides an equipment management system, where the equipment management system is in communication connection with the automation equipment based on an HTTP protocol; comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the two-way communication method of the second aspect when executing said computer program.
According to the bidirectional communication method and the application, the communication connection between the automation equipment and the equipment management system is realized based on the HTTP, and the cost for establishing the real-time communication between the automation equipment and the equipment management system is controlled conveniently. Meanwhile, the automatic equipment actively triggers communication with the equipment management system, the equipment management system responds to the response and sends the heartbeat feedback message, and when a control command is sent to the automatic equipment, the control command is written into the heartbeat feedback message, so that the automatic equipment analyzes the control command when receiving the heartbeat feedback message and executes the control command in time. And the equipment management system can continuously monitor the connection state of the automation equipment by receiving the heartbeat message sent by the automation equipment. Therefore, the bidirectional communication method and the application provided by the application are convenient for ensuring real-time communication between the equipment management system and the automation equipment.
Drawings
In order to more clearly illustrate the technical solutions of the present disclosure, the drawings required to be used in some embodiments of the present disclosure will be briefly described below, and it is apparent that the drawings in the following description are only drawings of some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art according to these drawings. Furthermore, the drawings in the following description may be regarded as schematic diagrams, and do not limit the actual size of products, the actual flow of methods, the actual timing of signals, and the like, involved in the embodiments of the present disclosure.
Fig. 1 is a diagram illustrating a usage state of a conventional device management system;
FIG. 2 is a first flow chart of a method of bi-directional communication according to some embodiments;
FIG. 3 is a schematic diagram of an automated device provided in accordance with some embodiments;
FIG. 4 is a flow chart two of a method of two-way communication according to some embodiments;
fig. 5 is a schematic structural diagram of a device management system according to some embodiments.
Detailed Description
Technical solutions in some embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided by the present disclosure belong to the protection scope of the present disclosure.
Currently, the real-time communication between the device management system 10 and each of the automation devices 20 may be accomplished by PLC real-time communication or TCP-based communication protocol.
When real-time communication is performed using the PLC, since the automation device 20 generally has a PLC for device control, data communication between the PLCs is increased, and communication data is collected to an upper-level PLC and then finally communicated and interacted with the master PLC by the device management system 10. However, as the number of automation devices 20 connected to the device management system 10 increases, the number of upper PLC managing sub-PLCs is limited, and generally one production line needs one upper PLC, and such a PLC often needs hundreds of thousands of hardware costs, which is very disadvantageous for the current situation that a factory continuously expands the production line.
The communication is accomplished using a TCP-based communication protocol, such as the HSMS standard protocol, to enable the device management system 10 to communicate with the automation device 20. However, the protocol implementation cost is high, the protocol is a special protocol applied in the industrial field, the open-source protocol implementation is lacked, the protocol implementation needs to be performed by both the device management system 10 and the automation device 20, and the development cost is high. And the TCP-like protocol needs to continuously maintain the connection channel, and for the current continuous increase of the number of devices in a factory, the application development of the device management system 10 is not friendly, and it is difficult to achieve a large number of continuous extensions.
In the embodiment of the present application, in order to implement real-time communication between the device management system 10 and each of the automation devices 20, the management system 10 is in communication connection with each of the automation devices 20 based on the HTTP protocol. The easy expansion and the wide use feedback of the B/S communication enable software development to easily find an open source module, and the realization cost is very low. And the manageable scale is uniform even if the device is used for thousands of devices. However, the existing HTTP protocol is characterized by a connectionless protocol and is actively triggered by the client side. Therefore, in order to achieve the purpose of managing the production process between the device management system 10 and each of the automation devices 20, the automation devices 20 continuously and actively report production data during the production process to interact to achieve the application. However, the equipment management system often has some active operations, such as performing active product formula switching, production line shutdown maintenance and other business actions on a production line, which are all expected to be actively sent by the upper management system, and cannot be directly realized in the protocol scene, which also creates a retardation for the subsequent intelligent control of the plant.
In order to realize interactive communication between the device management system 10 and each automation device 20, which supports bidirectional active operation, the embodiment of the present application provides a bidirectional communication method based on HTTP protocol communication connection between the device management system 10 and each automation device 20. By the bidirectional communication method provided by the embodiment of the application, the extension of the existing protocol is realized based on the communication protocol mode of the HTTP, the active service control of the equipment management system 10 is realized, and the effect of bidirectional active communication is achieved.
Fig. 2 is a flowchart illustrating a bidirectional communication method according to some embodiments, where the bidirectional communication method is used for the automation device 20. As shown in fig. 2, a bidirectional communication method provided in an embodiment of the present application includes:
s101: and sending a heartbeat message to the equipment management system based on an HTTP (hyper text transport protocol), wherein the heartbeat message comprises attribute information of the automation equipment, and the attribute information is used for identifying the automation equipment.
The automation device 20 actively sends a heartbeat message to the device management system 10 based on the HTTP protocol, so that a stable communication channel is formed between the automation device 20 and the device management system 10. And the automation device 20 sends the heartbeat message to the device management system 10, so that the device management system 10 can monitor whether the automation device 20 is online.
The heartbeat message sent by the automation device 20 to the device management system 10 includes attribute information of the automation device 20, and the attribute information of the automation device 20 is used to identify the automation device 20 so as to distinguish different automation devices 20 connected to the device management system 10. The attribute information of the automation device 20 includes a serial number of the automation device, a communication protocol version number of the automation device, an operating state of the automation device, a process bit of the automation device, an IP address of communication of the automation device, an MAC address of the automation device, and the like. Therefore, when the device management system 10 receives the heartbeat message sent by the automation device, the state of the automation device 20 can be known.
In some embodiments of the present application, the request URL of the heartbeat message may be http:// server IP + ":" + port + "/machien monitor controller/machien heartbeat endpoint, and the server IP is the IP of the device management system 10. The heartbeat message can adopt a Post request, and the request body can adopt a JSON format.
The method comprises the following steps:
{
"machineSn":"PG7000483",
"stationId":"AAZZ_G01-4FT-02_1_AE-34",
"cellId":"",
"uploadDate":"2021-11-23 13:03:22",
"deviceIp":"10.195.135.100",
"deviceMac":"FE-FC-FE-0B-FB-41",
"apiVersion":"V1.0.1",
}
wherein, maschinesn represents an automatic equipment serial number, stationId represents an equipment process bit, cellId represents a product ID, uploadDate represents a heartbeat message sending time, deviceIp represents an IP address which is too difficult to pass a new year, deviceMac represents an MAC address, and apiVersion represents a communication protocol version number.
In some embodiments of the present application, the automation device 20 sends heartbeat messages to the device management system 10 at regular time, a time interval between two adjacent heartbeat messages may be determined according to a response requirement of an active service of the device management system 10, so as to further balance a load, and the time interval may be selected from 1S, which is certainly not limited to 1S. Illustratively, a first preset time interval is set in the automation device 20, and the automation device 20 sends a heartbeat message according to the first preset time interval by the device management system 10 based on the HTTP protocol; the first preset time interval may be 1S but is not limited to 1S.
S102: and receiving a heartbeat feedback message sent by the equipment management system in response to the heartbeat message.
The device management system 10 receives the heartbeat message sent by the automation device 20, sends a heartbeat feedback message to the automation device in response to the received heartbeat message, and the automation device 20 receives the heartbeat feedback message.
In some embodiments of the present application, the heartbeat feedback message sent by the device management system 10 to the automation device 20 may carry a control instruction issued by the device management system 10 to the automation device 20, where the control instruction is used for the device management system 10 to control the automation device 20 to execute some service actions; the control command is written into an extension field in the heartbeat feedback message. Illustratively, when the device management system 10 receives a heartbeat message sent by the automation device 20, if a control instruction that needs to be issued to the automation device 20 is received, the device management system 10 writes the control instruction into an extension field of the heartbeat feedback message, so as to form a heartbeat feedback message carrying a control instruction for controlling the automation device 20.
In some embodiments, the control instruction issued by the device management system 10 to the automation device 20 includes an operation instruction name and operation instruction data, the extension field includes an instruction field and an instruction parameter field, the instruction field is used for writing the operation instruction name, and the instruction parameter field is used for writing the operation instruction data.
If the automation device 20 does not receive the heartbeat feedback message sent by the device management system 10 in response to the heartbeat message within the preset time, the automation device 20 sends an alarm. Further, the automation device 20 does not receive the heartbeat feedback message sent by the device management system 10 in response to the heartbeat message, possibly because the connection between the automation device 20 and the device management system 10 is broken, so the automation device 20 sends a reconnection request to the device management system 10 to reestablish the connection between the automation device 20 and the device management system 10.
S103: analyzing the heartbeat feedback message, and detecting an extension field in the heartbeat feedback message, wherein the extension field is used for identifying a control instruction issued by the equipment management system.
When the automation device 20 receives the heartbeat feedback message sent by the device management system 10, the heartbeat feedback message is analyzed, and the extension field in the heartbeat feedback message is detected, so as to determine whether the device management system 10 sends a control instruction to the automation device or not by detecting the extension field in the heartbeat feedback message. In some embodiments of the present application, when the extension field is empty, the heartbeat feedback message sent by the device management system 10 to the automation device 20 does not include a control instruction; when the extension field is not empty, the heartbeat feedback message sent by the device management system 10 to the automation device 20 includes a control instruction. Illustratively, the extension field includes an instruction field for identifying an operation instruction; if the instruction field in the extension field is not empty, the heartbeat feedback message sent by the device management system 10 to the automation device 20 includes a control instruction, and the automation device 20 determines the control instruction issued by the device management system 10 according to the operation instruction name included in the instruction field.
In some embodiments of the present application, the extension field further includes an instruction parameter field, where the instruction parameter field is used to identify operation instruction data; when the automation device 20 detects an extension field in the heartbeat feedback message, the instruction parameter field is detected. When the instruction parameter field is not empty, the automation device 20 determines the parameters of the control instruction issued by the device management system 10 to the automation device 20 according to the operation instruction data included in the instruction parameter field.
When the heartbeat feedback message sent by the device management system 10 to the automation device 20 includes the control instruction, the automation device 20 executes step S104; when the heartbeat feedback message sent by the device management system 10 to the automation device 20 does not include the control instruction, the automation device 20 waits for the next heartbeat message to be sent to the device management system 10.
S104: and if the control instruction issued by the equipment management system is analyzed according to the extension field in the heartbeat feedback message, feeding back the received control instruction information to the equipment management system.
When the automation device 20 detects that the heartbeat feedback message sent by the device management system 10 to the automation device 20 includes a control instruction, the automation device 20 feeds back the received control instruction information to the device management system 10 to inform the device management system 10 that the control instruction is received and start to execute the control instruction.
S105: and executing the control instruction and reporting the execution result to the equipment management system.
When the automation device 20 sends the received control instruction information to the device management system 10, the automation device executes the control instruction, and reports an execution result to the device management system.
Based on the bidirectional communication method provided in the above embodiment, the embodiment of the present application further provides an automation device 20. Fig. 3 is a schematic diagram of an automated device according to some embodiments. As shown in fig. 3, the automation device 20 provided by the embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the bidirectional communication method provided by the above embodiment.
Fig. 4 is a flowchart of a two-way communication method according to some embodiments, where the two-way communication method is used in a device management system. As shown in fig. 4, the bidirectional communication method provided in the embodiment of the present application includes:
s201: and receiving a heartbeat message sent by the automation equipment based on an HTTP (hyper text transport protocol).
When the automation device 20 sends a heartbeat message to the device management system 10 at regular time, the device management system 10 will receive the heartbeat message sent by the automation device 20 at regular time.
When the device management system 10 receives the heartbeat message sent by the automation device 20, the device management system 10 sends a heartbeat feedback message to the automation device 20 in response to the received heartbeat message. If the device management system 10 receives a control instruction for controlling the automation device when the device management system 10 responds to the received heartbeat message, step S202 is executed to write the control instruction into the heartbeat feedback message and send the heartbeat feedback message to the automation device 20; if the device management system 10 does not receive the control instruction for controlling the automation device 10 when the device management system 10 responds to the received heartbeat message, the device management system 10 directly sends a heartbeat feedback message that does not include the control instruction to the automation device 20.
S202: responding to the heartbeat message, if a control instruction for controlling the automation equipment is received, writing the control instruction into an extension field of a heartbeat feedback message and sending the heartbeat feedback message written into the control instruction to the automation equipment.
When the device management system 10 responds to the received heartbeat message, if the device management system 10 receives a control instruction for controlling the automation device, that is, the device management system 10 needs to control the automation device to execute some service actions, the device management system 10 writes the control instruction into an extension field of the heartbeat feedback message, and sends the heartbeat feedback message written with the control instruction to the automation device 20.
In some embodiments of the present application, the device management system 10 writes the control instruction in the extension field of the heartbeat feedback message in response to a control instruction of a user controlling the automation device through the device management system 10, that is, the extension field of the heartbeat feedback message is not empty. When the device management system 10 does not receive the control instruction for controlling the automation device 10, the extension field of the heartbeat feedback message is set to be null.
In some embodiments, the device management system 10 presets some operation instruction names, and in response to a received control instruction for controlling the automation device 20, writes the preset operation instruction name corresponding to the control instruction into an extension field of the heartbeat feedback packet.
In some embodiments of the present application, the control instruction includes an operation instruction name and operation instruction data, and the operation instruction data is used for a specific service parameter corresponding to the operation instruction name. In some embodiments of the present application, the extension field includes an instruction field and an instruction parameter field. When the control instruction is written into the extension field of the heartbeat feedback message, the name of the operation instruction is written into the instruction field, and the data of the operation instruction is written into the parameter field of the instruction.
For example, the following is a format of a Response Body of a heartbeat feedback message, which shows a heartbeat feedback message provided in an embodiment of the present application.
{
"status":"OK",
"message":"successfully",
"data":"",
"errorNum":0,
"errorData":""
"actionName":"ToEngineer",
"actionData":""
}
Wherein actionName represents the name of the operation instruction, and actionData represents the data of the operation instruction. In the heartbeat feedback message, the actionName includes a toanner, and is not empty, that is, the heartbeat feedback message includes a control instruction issued by the device management system 10 to the automation device 20; if actionData is null, the heartbeat feedback message does not include the operation instruction data. When the heartbeat feedback message sent by the device management system 10 to the automation device 20 does not include a control instruction, the actionName is null. When the device management system 10 sends the control instruction to the automation device through the heartbeat feedback packet, the parameter field of the operation instruction may be null.
Based on the bidirectional communication method provided in the foregoing embodiment, the embodiment of the present application further provides a device management system 10. Fig. 5 is a schematic structural diagram of a device management system according to some embodiments. As shown in fig. 5, the device management system provided in the embodiment of the present application includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the bidirectional communication method provided in the above embodiment when executing the computer program.
According to the bidirectional communication method, the automation device and the device management system provided by the embodiment of the application, the automation device 20 is in communication connection with the device management system 10 based on the HTTP protocol, the automation device 20 actively triggers communication with the device management system 10, the device management system 10 responds to send a heartbeat feedback message, and when a control instruction is sent to the automation device 20, the control instruction is written into the heartbeat feedback message, so that the automation device 20 analyzes the control instruction when receiving the heartbeat feedback message, and executes the control instruction in time. Therefore, the bidirectional communication method provided in the embodiment of the present application realizes the communication connection between the automation device 20 and the device management system 10 based on the HTTP protocol, and not only can realize the control of the active service of the device management system 10, ensure the real-time communication between the device management system and the automation device, but also is convenient for controlling the cost of establishing the real-time communication between the automation device and the device management system.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (10)
1. The bidirectional communication method is applied to automation equipment, and the automation equipment is in communication connection with an equipment management system based on an HTTP (hyper text transport protocol); the method comprises the following steps:
sending a heartbeat message to the equipment management system based on an HTTP (hyper text transport protocol), wherein the heartbeat message comprises attribute information of the automation equipment, and the attribute information is used for identifying the automation equipment;
receiving a heartbeat feedback message sent by the equipment management system in response to the heartbeat message;
analyzing the heartbeat feedback message, and detecting an extension field in the heartbeat feedback message, wherein the extension field is used for identifying a control instruction issued by the equipment management system;
if the control instruction issued by the equipment management system is analyzed according to the expanded field in the heartbeat feedback message, feeding back the received control instruction information to the equipment management system;
and executing the control instruction and reporting the execution result to the equipment management system.
2. The bi-directional communication method according to claim 1, wherein after sending the heartbeat packet to the device management system based on the HTTP protocol, the method further comprises:
and if the heartbeat feedback message sent by the equipment management system is not received within the preset time, sending an alarm and sending a reconnection request to the equipment management system.
3. The bi-directional communication method according to claim 1, wherein detecting an extension field in the heartbeat feedback message comprises:
determining whether an instruction field in an extension field of the heartbeat feedback message is empty;
and if the instruction field is not empty, determining a control instruction issued by the equipment management system according to the operation instruction name contained in the instruction field.
4. The bidirectional communication method according to claim 3, after determining the control command issued by the device management system according to the operation command name included in the command field, further comprising:
and determining the parameters of the control instruction according to the operation instruction data contained in the instruction parameter field.
5. The bidirectional communication method according to claim 1, wherein the heartbeat message includes a request body, and the request body includes a serial number of the automation device, an operating state of the automation device, a time for sending the heartbeat message, and a communication address of the automation device, and is used for indicating attribute information of the automation device.
6. The bidirectional communication method of claim 1, wherein a first preset time interval is set in the automation device, and a heartbeat message is sent to the device management system based on an HTTP protocol, and the method includes:
and sending a heartbeat message to the equipment management system at regular time according to the first preset time interval based on an HTTP (hyper text transport protocol).
7. A bidirectional communication method is used for a device management system which is in communication connection with automatic devices based on an HTTP protocol; the method comprises the following steps:
receiving a heartbeat message sent by the automation equipment based on an HTTP (hyper text transport protocol);
responding to the heartbeat message, if a control instruction for controlling the automation equipment is received, writing the control instruction into an extension field of a heartbeat feedback message and sending the heartbeat feedback message written into the control instruction to the automation equipment.
8. The bidirectional communication method according to claim 7, wherein the control instruction includes an operation instruction name and operation instruction data;
if a control instruction for controlling the automation equipment is received, writing the control instruction into an extension field of a heartbeat feedback message, wherein the control instruction comprises the following steps:
and if a control instruction for controlling the automation equipment is received, writing the operation instruction name into an instruction field in an extension field of the heartbeat message and writing the operation instruction data into an instruction parameter field in an extension field of a feedback message.
9. An automation device, characterized in that the automation device is in communication connection with a device management system based on the HTTP protocol; comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the two-way communication method of any one of claims 1 to 6 when executing said computer program.
10. The equipment management system is characterized in that the equipment management system is in communication connection with an automation device based on an HTTP protocol; comprising a memory, a processor and a computer program stored in said memory and executable on said processor, said processor implementing the two-way communication method of claim 7 or 8 when executing said computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211699303.8A CN115987749A (en) | 2022-12-28 | 2022-12-28 | Bidirectional communication method and application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211699303.8A CN115987749A (en) | 2022-12-28 | 2022-12-28 | Bidirectional communication method and application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115987749A true CN115987749A (en) | 2023-04-18 |
Family
ID=85957607
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211699303.8A Pending CN115987749A (en) | 2022-12-28 | 2022-12-28 | Bidirectional communication method and application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115987749A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118051457A (en) * | 2024-04-16 | 2024-05-17 | 南京德克威尔自动化有限公司 | Data interaction system based on free communication module |
-
2022
- 2022-12-28 CN CN202211699303.8A patent/CN115987749A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118051457A (en) * | 2024-04-16 | 2024-05-17 | 南京德克威尔自动化有限公司 | Data interaction system based on free communication module |
CN118051457B (en) * | 2024-04-16 | 2024-06-21 | 南京德克威尔自动化有限公司 | Data interaction system based on free communication module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10409251B2 (en) | Automatic inspection and monitoring method based on time domain slotting control | |
CN114296405A (en) | Implementation of serverless functionality using container orchestration systems and operating technology devices | |
CN114253224A (en) | Integrating a container arrangement system with an operating technology device | |
JP2005033787A (en) | Method and device for self-setting monitor control and data collection (scada) system for dispersed control | |
JP5104673B2 (en) | Device management apparatus and program | |
US11063855B2 (en) | Monitoring of the data transmission in a client/server-based device access system | |
CN115987749A (en) | Bidirectional communication method and application | |
EP4398127A1 (en) | Data acquisition method, device, and system for semiconductor process equipment | |
CN104065526A (en) | Server fault alarming method and device thereof | |
CN115004650B (en) | Node configuration method, node configuration device, distributed system and computer readable medium | |
WO2012144537A1 (en) | Network analysis assistance device, network assessment device, network analysis assistance method, network assessment method, network analysis assistance programme and network assessment programme | |
CN110809262B (en) | COAP protocol-based operation and maintenance management method for Internet of things equipment | |
KR102593008B1 (en) | Method and apparatus for distributed smart factory operation using opc ua | |
US20150185723A1 (en) | Facility controlling system and history recording method | |
US20220138030A1 (en) | Common gateway platform | |
CN103701657A (en) | Device and method for monitoring and processing dysfunction of continuously running data processing system | |
JP2015192202A (en) | steel plant control system | |
CN115842860A (en) | Monitoring method, device and system for data link | |
CN114691493A (en) | Lithium battery testing method and system | |
CN112033453A (en) | Data acquisition and monitoring system based on welding machine | |
Tang et al. | Development of upper computer software based on OPC UA technology | |
TWI830278B (en) | Scada web hmi system | |
CN111818129B (en) | Equipment monitoring method and device based on MQTT protocol | |
CN212385483U (en) | Multi-mobile mechanical arm device cooperative control system | |
CN113110219A (en) | Remote control method, device and equipment for robot stop 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 |