CN114449055A - Method and device for seamless protocol docking between industrial devices and electronic device - Google Patents

Method and device for seamless protocol docking between industrial devices and electronic device Download PDF

Info

Publication number
CN114449055A
CN114449055A CN202111641780.4A CN202111641780A CN114449055A CN 114449055 A CN114449055 A CN 114449055A CN 202111641780 A CN202111641780 A CN 202111641780A CN 114449055 A CN114449055 A CN 114449055A
Authority
CN
China
Prior art keywords
protocol
docking
information
query request
instruction based
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
Application number
CN202111641780.4A
Other languages
Chinese (zh)
Inventor
耿潇
汤表贤
吴清亮
罗亲庆
苏元座
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Tongxiang Digital Technology Co ltd
Original Assignee
Hainan Tongxiang Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hainan Tongxiang Digital Technology Co ltd filed Critical Hainan Tongxiang Digital Technology Co ltd
Priority to CN202111641780.4A priority Critical patent/CN114449055A/en
Publication of CN114449055A publication Critical patent/CN114449055A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to a method and a device for seamless protocol docking between industrial devices and electronic equipment, wherein the method comprises the following steps: acquiring a query request instruction based on a first protocol, and determining interface information of the docking equipment according to the query request instruction based on the first protocol; converting the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment; and obtaining response information by utilizing the request response instruction based on the second protocol. The seamless protocol docking method between the industrial devices, disclosed by the invention, enables data interaction to be more convenient and ensures that no error occurs in the interactive data.

Description

Method and device for seamless protocol docking between industrial devices and electronic device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for seamless protocol docking between industrial devices, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of communication technology, how to implement unified access and control on equipment of cross-system across equipment types in industrial equipment, and then implement linkage requirements between equipment is a key problem to be solved urgently.
At present, for different service systems, the situations of mutual receiving and response between different protocols may exist, confusion is easily caused at this time, and data interaction between industrial equipment is relatively passive, resulting in mismatching or loss of transmission data.
Disclosure of Invention
In view of the above, there is a need to provide a method, an apparatus, an electronic device and a computer readable storage medium for seamless docking of protocols between industrial devices, so as to solve the problem of inconvenient data interaction between industrial devices in the prior art.
In order to solve the above problems, the present invention provides a seamless docking method for protocols between industrial devices, comprising:
acquiring a query request instruction based on a first protocol, and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
converting the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and obtaining response information by utilizing the request response instruction based on the second protocol.
Further, determining the interface information of the docking device according to the query request instruction based on the first protocol includes:
extracting the encapsulation information in the query request command based on the first protocol, and obtaining the interface information of the docking equipment according to the encapsulation information.
Further, the interface information of the docking device includes at least one of a device ID, a device model, an interface type, an interface name, an interface parameter, and interface return value information.
Further, before converting the query request command based on the first protocol into a request response command based on the second protocol according to a preset protocol conversion rule and the interface information of the docking device, the method includes:
and acquiring interface information of the target docking equipment.
Further, converting the query request command based on the first protocol into a request response command based on a second protocol according to a preset protocol conversion rule and the interface information of the docking device, including:
establishing a conversion channel between the interface information of the docking equipment and the interface information of the target docking equipment by using a preset network protocol;
and converting the query request command based on the first protocol in the conversion channel according to the command format of the second protocol to obtain a request response command based on the second protocol.
Further, the preset network protocol is an IPSec VPN protocol.
Further, the first protocol is an HTTP protocol;
the second protocol is a TCP protocol.
The invention also provides a device for seamless protocol docking between the industrial devices, which comprises an instruction acquisition module, a protocol conversion module and an information response module;
the instruction acquisition module is used for acquiring a query request instruction based on a first protocol and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
the protocol conversion module is used for converting the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and the information response module is used for obtaining response information by utilizing the request response instruction based on the second protocol.
The invention also provides an electronic device, which comprises a memory and a processor, wherein the memory is stored with a computer program, and when the computer program is executed by the processor, the seamless docking method for the protocols between the industrial devices is realized according to any technical scheme.
The invention also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for seamless docking of protocols between industrial devices according to any of the above technical solutions is realized.
The beneficial effects of adopting the above embodiment are: according to the seamless protocol docking method between the industrial devices, the query request instruction based on the first protocol is obtained, the query request instruction based on the first protocol is used for determining the interface information of the docking device, the query request instruction based on the first protocol is converted into the request response instruction based on the second protocol according to the preset protocol conversion rule, and the request response instruction based on the second protocol is used for obtaining the response information, so that data interaction is more convenient, and the interactive data are guaranteed not to be mistaken.
Drawings
FIG. 1 is a flowchart illustrating an embodiment of a seamless docking method for protocols between industrial devices according to the present invention;
FIG. 2 is a block diagram of an embodiment of a seamless docking apparatus for an inter-industrial device protocol according to the present invention;
fig. 3 is a block diagram of an embodiment of an electronic device provided in the present invention.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
The invention provides a method and a device for seamless protocol docking between industrial devices, an electronic device and a computer readable storage medium, which are respectively described in detail below.
The embodiment of the invention provides a seamless docking method for protocols between industrial devices, which has a flow schematic diagram, and as shown in fig. 1, the seamless docking method for protocols between industrial devices comprises the following steps:
s101, acquiring a query request instruction based on a first protocol, and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
step S102, converting the query request command based on the first protocol into a request response command based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and step S103, obtaining response information by using the request response instruction based on the second protocol.
In a particular embodiment, a first industrial device sends a first protocol based query request instruction to a second industrial device.
It should be noted that, by obtaining the query request instruction based on the first protocol, determining the interface information of the docking device by using the query request instruction based on the first protocol, converting the query request instruction based on the first protocol into the request response instruction based on the second protocol by using the preset protocol conversion rule, and obtaining the response information by using the request response instruction based on the second protocol, the data interaction is more convenient, and it is ensured that errors are not easily generated in the data interaction process.
As a preferred embodiment, determining the interface information of the docking device according to the query request instruction based on the first protocol includes:
extracting the encapsulation information in the query request command based on the first protocol, and obtaining the interface information of the docking equipment according to the encapsulation information.
In a specific embodiment, the package information includes a device ID, an interface ID, and parameter information.
As a preferred embodiment, the interface information of the docking device includes at least one of a device ID, a device model, an interface type, an interface name, an interface parameter, and interface return value information.
As a preferred embodiment, before converting the query request command based on the first protocol into the request response command based on the second protocol according to the preset protocol conversion rule and the interface information of the docking device, the method includes:
and acquiring interface information of the target docking equipment.
In a specific embodiment, the target docking device is the second industrial device.
As a preferred embodiment, converting the query request command based on the first protocol into a request response command based on the second protocol according to a preset protocol conversion rule and the interface information of the docking device includes:
establishing a conversion channel between the interface information of the docking equipment and the interface information of the target docking equipment by using a preset network protocol;
and converting the query request command based on the first protocol in the conversion channel according to the command format of the second protocol to obtain a request response command based on the second protocol.
It should be noted that, establishing the conversion channel can better ensure data transmission, and also improve data transmission efficiency, so that data interaction is more convenient.
As a preferred embodiment, the preset network protocol is an IPSec VPN protocol.
In a specific embodiment, the connection between the first industrial device and the second industrial device is established via an IPSec VPN (IP security protocol virtual private network) protocol.
As a preferred embodiment, the first protocol is the HTTP protocol;
the second protocol is a TCP protocol.
The embodiment of the invention provides a seamless docking device for protocols between industrial equipment, which has a structural block diagram, as shown in fig. 2, and comprises an instruction acquisition module 201, a protocol conversion module 202 and an information response module 203;
the instruction obtaining module 201 is configured to obtain a query request instruction based on a first protocol, and determine interface information of a docking device according to the query request instruction based on the first protocol;
the protocol conversion module 202 is configured to convert the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking device;
the information response module 203 is configured to obtain response information by using the request response instruction based on the second protocol.
As shown in fig. 3, the present invention also provides an electronic device, which can be a mobile terminal, a desktop computer, a notebook, a palmtop computer, a server, or other computing devices. The electronic device includes a processor 100, a display 200, and a memory 300.
The memory 300 may be an internal storage unit of the computer device, such as a hard disk or a memory of the computer device, in some embodiments. The memory 300 may also be an external storage device of the computer device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device. Further, the memory 300 may also include both an internal storage unit and an external storage device of the computer device. The memory 300 is used for storing application software installed in the computer device and various types of data, such as program codes installed in the computer device. The memory 300 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 300 stores an inter-industrial device protocol seamless docking program 400, and the inter-industrial device protocol seamless docking program 400 can be executed by the processor 100 to implement the inter-industrial device protocol seamless docking method according to the embodiments of the present invention.
The processor 100 may be, in some embodiments, a Central Processing Unit (CPU), microprocessor or other data Processing chip for executing program codes stored in the memory 300 or Processing data, such as executing an inter-industrial device protocol seamless docking program.
The display 200 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 200 is used for displaying information at the computer device and for displaying a visualized user interface. The components 100 and 300 of the computer device communicate with each other via a system bus.
In one embodiment, the following steps are implemented when processor 100 executes the inter-industrial device protocol seamless docking program 400 in memory 300:
acquiring a query request instruction based on a first protocol, and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
converting the query request command based on the first protocol into a request response command based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and obtaining response information by utilizing the request response instruction based on the second protocol.
The present embodiments also provide a computer-readable storage medium having stored thereon an industrial inter-device protocol seamless docking program, which when executed by a processor, performs the steps of:
acquiring a query request instruction based on a first protocol, and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
converting the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and obtaining response information by utilizing the request response instruction based on the second protocol.
According to the seamless protocol docking method, the device, the electronic equipment and the computer readable storage medium among the industrial equipment, the inquiry request instruction based on the first protocol is obtained, the inquiry request instruction based on the first protocol is used for determining the interface information of the docking equipment, the inquiry request instruction based on the first protocol is converted into the request response instruction based on the second protocol according to the preset protocol conversion rule, and the response information is obtained through the request response instruction based on the second protocol, so that the data interaction is more convenient, and the interactive data is ensured not to be mistaken.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.

Claims (10)

1. A seamless docking method for protocols between industrial devices is characterized by comprising the following steps:
acquiring a query request instruction based on a first protocol, and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
converting the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and obtaining response information by utilizing the request response instruction based on the second protocol.
2. The method of claim 1, wherein determining interface information of the docking device according to the query request command based on the first protocol comprises:
extracting the encapsulation information in the query request command based on the first protocol, and obtaining the interface information of the docking equipment according to the encapsulation information.
3. The seamless docking method for industrial inter-device protocol as claimed in claim 2, wherein the docking device interface information includes at least one of device ID, device model, interface type, interface name, interface parameter, and interface return value information.
4. The seamless docking method for the industrial device-to-device protocol according to claim 1, wherein before converting the query request command based on the first protocol into the request response command based on the second protocol according to the preset protocol conversion rule and the docking device interface information, the method comprises:
and acquiring interface information of the target docking equipment.
5. The seamless docking method for the industrial device-to-device protocol according to claim 4, wherein converting the query request command based on the first protocol into a request response command based on the second protocol according to a preset protocol conversion rule and the interface information of the docking device comprises:
establishing a conversion channel between the interface information of the docking equipment and the interface information of the target docking equipment by using a preset network protocol;
and converting the query request command based on the first protocol in the conversion channel according to the command format of the second protocol to obtain a request response command based on the second protocol.
6. The seamless docking method for industrial device-to-device protocol according to claim 5, wherein the predetermined network protocol is IPSec VPN protocol.
7. The inter-industrial-device protocol seamless docking method according to claim 1, wherein the first protocol is an HTTP protocol;
the second protocol is a TCP protocol.
8. A seamless protocol docking device between industrial equipment is characterized by comprising an instruction acquisition module, a protocol conversion module and an information response module;
the instruction acquisition module is used for acquiring a query request instruction based on a first protocol and determining interface information of the docking equipment according to the query request instruction based on the first protocol;
the protocol conversion module is used for converting the query request instruction based on the first protocol into a request response instruction based on a second protocol according to a preset protocol conversion rule and the interface information of the docking equipment;
and the information response module is used for obtaining response information by utilizing the request response instruction based on the second protocol.
9. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, implements the inter-industrial device protocol seamless docking method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the inter-industrial-device-protocol seamless docking method according to any one of claims 1 to 7.
CN202111641780.4A 2021-12-29 2021-12-29 Method and device for seamless protocol docking between industrial devices and electronic device Pending CN114449055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111641780.4A CN114449055A (en) 2021-12-29 2021-12-29 Method and device for seamless protocol docking between industrial devices and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111641780.4A CN114449055A (en) 2021-12-29 2021-12-29 Method and device for seamless protocol docking between industrial devices and electronic device

Publications (1)

Publication Number Publication Date
CN114449055A true CN114449055A (en) 2022-05-06

Family

ID=81364933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111641780.4A Pending CN114449055A (en) 2021-12-29 2021-12-29 Method and device for seamless protocol docking between industrial devices and electronic device

Country Status (1)

Country Link
CN (1) CN114449055A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037811A (en) * 2022-08-12 2022-09-09 中达安股份有限公司 Equipment data interaction method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855680A (en) * 2019-11-18 2020-02-28 中国电子科技集团公司信息科学研究院 Internet of things equipment docking method and device
US20200106864A1 (en) * 2018-10-01 2020-04-02 Fisher-Rosemount Systems, Inc. Wireless protocol converter for field devices
US20210211509A1 (en) * 2017-10-12 2021-07-08 Convida Wireless, Llc Interworking service for the restful internet of things

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210211509A1 (en) * 2017-10-12 2021-07-08 Convida Wireless, Llc Interworking service for the restful internet of things
US20200106864A1 (en) * 2018-10-01 2020-04-02 Fisher-Rosemount Systems, Inc. Wireless protocol converter for field devices
CN110855680A (en) * 2019-11-18 2020-02-28 中国电子科技集团公司信息科学研究院 Internet of things equipment docking method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037811A (en) * 2022-08-12 2022-09-09 中达安股份有限公司 Equipment data interaction method, device, equipment and storage medium
CN115037811B (en) * 2022-08-12 2022-11-25 中达安股份有限公司 Equipment data interaction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN108255513B (en) Electronic device, springmvc-based data interface, automatic generation method of description of springmvc-based data interface, and storage medium
WO2019100613A1 (en) Electronic insurance policy signing method and apparatus, computer device and storage medium
CN108415925B (en) Electronic device, data call log generation and query method and storage medium
CN110222119B (en) Data conversion synchronization method, equipment and storage medium for heterogeneous database
CN110826978A (en) Unified backlog processing method and device based on enterprise browser
CN110808868B (en) Test data acquisition method and device, computer equipment and storage medium
WO2023005163A1 (en) Method for loading application page, storage medium and related device thereof
CN112422450B (en) Computer equipment, and flow control method and device for service request
CN113242331A (en) Different types of address translation methods, different types of address translation devices, different types of computer equipment and different types of storage media
CN114449055A (en) Method and device for seamless protocol docking between industrial devices and electronic device
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN112328486A (en) Interface automation test method and device, computer equipment and storage medium
CN109299173A (en) Data transmission method, device and storage medium
CN111158777A (en) Component calling method and device and computer readable storage medium
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN114500666A (en) XML-based custom message general method and device and electronic equipment
CN114780519A (en) DBC file generation method, device, equipment and medium based on CAN communication
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
CN111585897B (en) Request route management method, system, computer system and readable storage medium
CN115145989B (en) Data sharing method and device based on data model of Internet of things
CN110602655B (en) Short message-based equipment communication address modification method and device and readable storage medium
CN110427600B (en) Batch text management method and device
CN115002218B (en) Traffic distribution method, traffic distribution device, computer equipment and storage medium
CN116302847B (en) Dynamic acquisition method and device of abnormal information, computer equipment and 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