Communication protocol conversion method, device, equipment and system, and storage medium

By obtaining and configuring the conversion data of different communication protocol devices, the conversion between the SNMP protocol and other protocols is realized, which solves the problem of devices that do not support the SNMP protocol accessing the network, reduces the development difficulty and cost, and expands the scope of application.

CN114268656BActive Publication Date: 2024-08-23SHENZHEN INVIC INTELLIGENT TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111564253.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2024-08-23
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

Existing technology makes it difficult for devices that do not support the SNMP protocol to access the network through the SNMP protocol, resulting in the inability to achieve centralized network management, and it is also difficult to develop devices that support the SNMP protocol.

Method used

By obtaining the conversion configuration data of devices that support different communication protocols, establishing communication connections, realizing conversion between different communication protocols, including conversion between serial communication protocols and SNMP protocols, and dynamically configuring the association between object identifiers and protocol instructions.

Benefits of technology

It achieves flexible conversion between different communication protocols, reduces development difficulty and cost, expands the scope of adaptation, and enables devices that do not support the SNMP protocol to access the network through the SNMP protocol to facilitate terminal management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114268656B
    Figure CN114268656B
Patent Text Reader

Abstract

The present invention discloses a communication protocol conversion method, device, equipment and system, and a computer-readable storage medium. The method includes: obtaining conversion configuration data corresponding to a first conversion communication device that supports a first conversion communication protocol; the conversion configuration data includes first conversion communication protocol information and object identification information; establishing a communication connection with a second conversion communication device that supports a second conversion communication protocol, so that the second conversion communication device obtains the object identification information based on the second conversion communication protocol and establishes a communication connection with the first conversion communication device corresponding to the object identification information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a communication protocol conversion method, device, equipment and system, and a computer-readable storage medium. Background Art

[0002] With the development of network technology, people have entered a new information age. Faced with increasingly complex network structures and increasing network traffic, more and more devices need to be connected to the network through the SNMP protocol (Simple Network Management Protocol) to facilitate terminal management of various devices. However, there are still some devices that do not support the SNMP protocol and only support serial communication protocols or non-SNMP network communication protocols, which will make it impossible to centrally manage the devices. According to existing technologies, in order to make these devices support the SNMP protocol, they need to be redeveloped, which is difficult. Summary of the invention

[0003] In order to solve the existing technical problems, the embodiments of the present invention provide a communication protocol conversion method, device, equipment and system, and a computer-readable storage medium that can realize conversion between different communication protocols.

[0004] The technical solution of the embodiment of the present invention is achieved as follows:

[0005] In a first aspect, a communication protocol conversion method is provided, which is applied to a protocol conversion device, comprising:

[0006] Acquire conversion configuration data corresponding to a first conversion communication device supporting a first conversion communication protocol; the conversion configuration data includes first conversion communication protocol information and object identification information;

[0007] A communication connection is established with a second conversion communication device supporting a second conversion communication protocol, so that the second conversion communication device acquires the object identification information based on the second conversion communication protocol and establishes a communication connection with the first conversion communication device corresponding to the object identification information.

[0008] In a second aspect, a communication protocol conversion method is provided, which is applied to a protocol conversion system, comprising:

[0009] The protocol conversion device obtains conversion configuration data corresponding to the first conversion communication device supporting the first conversion communication protocol; the conversion configuration data includes the first conversion communication protocol information and the object identification information;

[0010] The protocol conversion device establishes a communication connection with a second conversion communication device supporting a second conversion communication protocol;

[0011] The second conversion communication device obtains the object identification information from the protocol conversion device, and establishes a communication connection with the first conversion communication device based on the object identification information.

[0012] In a third aspect, a communication protocol conversion device is provided, comprising:

[0013] A configuration module, used to obtain conversion configuration data corresponding to a first conversion communication device supporting a first conversion communication protocol; the conversion configuration data includes first conversion communication protocol information and object identification information;

[0014] The conversion module is used to establish a communication connection with a second conversion communication device that supports a second conversion communication protocol, so that the second conversion communication device obtains the object identification information based on the second conversion communication protocol and establishes a communication connection with the first conversion communication device corresponding to the object identification information.

[0015] In a fourth aspect, a protocol conversion device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the communication protocol conversion method provided in the embodiment of the present application.

[0016] In a fifth aspect, a communication protocol conversion system is provided, comprising a first conversion communication device, a second conversion communication device and the protocol conversion device described in an embodiment of the present application, wherein the first conversion communication device comprises a serial communication device and / or an Ethernet communication device, and the second conversion communication device comprises an SNMP communication device.

[0017] In a sixth aspect, a storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the communication protocol conversion method provided in the embodiment of the present application.

[0018] The communication protocol conversion method, apparatus, device and system, and computer-readable storage medium provided in the above embodiments, the protocol conversion device obtains conversion configuration data corresponding to a first conversion communication device that supports a first conversion communication protocol, and establishes a communication connection with a second conversion communication device that supports a second conversion communication protocol, wherein the conversion configuration data includes first conversion communication protocol information and object identification information, so that the second conversion communication device can obtain the object identification information of the first conversion communication device from the protocol conversion device based on the second conversion communication protocol, and establish a communication connection with the first conversion communication device corresponding to the object identification information, thereby realizing conversion between different first conversion communication protocols and second conversion communication protocols, with higher flexibility and wider adaptability, which can reduce development difficulty and development costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Detailed description of an optional application scenario of a communication protocol conversion method in an embodiment;

[0020] Figure 2 is an optional application scenario diagram of a communication protocol conversion method in another embodiment;

[0021] Figure 3 is a flow chart of a communication protocol conversion method in one embodiment;

[0022] Figure 4 A flowchart of a communication protocol conversion method in another embodiment;

[0023] Figure 5 A flowchart of a communication protocol conversion method in another embodiment;

[0024] Figure 6 A framework diagram of a communication protocol conversion system in an optional specific example;

[0025] Figure 7 A flowchart of a communication protocol conversion method in an optional specific example;

[0026] Figure 8 A schematic diagram of a communication protocol conversion device in an embodiment;

[0027] Fig. 9 Schematic diagram of a protocol conversion device in an embodiment. DETAILED DESCRIPTION

[0028] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the technical field of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the scope of protection of the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0030] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it should be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0031] See also Figure 1, is a schematic diagram of an optional application scenario of a communication protocol conversion method provided in an embodiment of the present application, wherein the system architecture of the communication protocol conversion method includes a first conversion communication device 31, a protocol conversion device 32, and a second conversion communication device 33. The first conversion communication device 31 is a communication device that supports the first conversion communication protocol. The second conversion communication device 33 is a communication device that supports the second conversion communication protocol. The protocol conversion device 32 obtains and stores the conversion configuration data corresponding to the first conversion communication device 31, and the second conversion communication device 33 establishes a communication connection with the protocol conversion device 32 through the second conversion communication protocol, and obtains the conversion configuration data from the protocol conversion device 32 to establish a communication connection with the first conversion communication device 31. Among them, the protocol conversion device 32 may include a display device, and a protocol conversion configuration client for configuring the first conversion communication device is installed in the protocol conversion device. The user can perform configuration operations through the protocol conversion device 32, open the configuration interface of the protocol conversion configuration client and input the conversion configuration data to complete the configuration of the conversion configuration data of the first conversion communication device 31. The protocol conversion device 32 obtains the conversion configuration data, and realizes the conversion from the first conversion communication protocol to the second conversion communication protocol by running the computer program of the communication protocol conversion method provided in the embodiment of the present application, and establishes a communication connection between the first conversion communication device 31 and the second conversion communication device 33.

[0032] See also Figure 2 , is a schematic diagram of an optional application scenario of a communication protocol conversion method provided in another embodiment of the present application. The system architecture of the communication protocol conversion method also includes a configuration terminal 34. The protocol conversion device 32 does not include a display device. The configuration terminal 34 is installed with a protocol conversion configuration client for configuring the first conversion communication device 31. The user can operate through the configuration terminal, open the configuration interface of the protocol conversion configuration client and input the conversion configuration data to complete the configuration of the conversion configuration data of the first conversion communication device 31. The configuration terminal 34 sends the conversion configuration data to the protocol conversion device 32. The protocol conversion device 32 implements the conversion from the first conversion communication protocol to the second conversion communication protocol by running the computer program of the communication protocol conversion method provided in the embodiment of the present application, and establishes a communication connection between the first conversion communication device 31 and the second conversion communication device 33. The configuration terminal 34 can be various intelligent devices with storage and computing capabilities, such as personal computers, mobile phones, tablets and other electronic equipment terminals.

[0033] See also Figure 3 , which is a flow chart of a communication protocol conversion method provided in an embodiment of the present application, can be applied to Figure 1 or Figure 2 The protocol converter shown in the figure, the communication protocol conversion method includes the following steps.

[0034] S101, obtaining conversion configuration data corresponding to a first conversion communication device supporting a first conversion communication protocol; the conversion configuration data includes first conversion communication protocol information and object identification information.

[0035] The first conversion communication protocol refers to one of the two communication protocols that need to be converted to each other, such as a communication protocol that needs to be converted to the second conversion communication protocol. The first conversion communication device refers to a device that supports the first conversion communication protocol. The device can be various types of devices that support the first conversion communication protocol and need to access the network with the second conversion communication protocol to facilitate unified management of the terminal, such as smart home devices, smart security devices, etc. The conversion configuration data may refer to the information required to configure the first conversion communication device to realize the conversion of the first conversion communication protocol supported by the first conversion communication device to the second conversion communication protocol, including the first conversion communication protocol information and object identification information. The first conversion communication protocol information may refer to the name, identification, etc. of the communication protocol that can uniquely characterize the identity of the first conversion communication protocol. Among them, the object identification information may include the object identifier (OID) of the first conversion communication device, the data type of the object identifier, the read and write properties of the object identifier, the mapping relationship between the object identifier and the communication protocol data that needs to be converted, etc.

[0036] S103: Establish a communication connection with a second conversion communication device that supports a second conversion communication protocol, so that the second conversion communication device obtains the object identification information based on the second conversion communication protocol and establishes a communication connection with the first conversion communication device corresponding to the object identification information.

[0037] The second conversion communication protocol refers to the other of the two communication protocols that need to be converted to each other, such as the type of communication protocol that the first conversion communication protocol is expected to be converted to. The second conversion communication device is a device that supports the second conversion communication protocol and needs to establish a communication connection with the first conversion communication device that supports the first conversion communication protocol. The protocol conversion device can use the corresponding first conversion communication protocol to establish a communication connection with the first conversion communication device according to the first conversion communication protocol information in the conversion configuration data. The protocol conversion device supports the second conversion communication protocol and establishes a communication connection with the second conversion communication device, so that the second conversion communication device can read the object identification information corresponding to the first conversion communication device from the protocol conversion device through the second conversion communication protocol, and establish a communication connection with the first conversion communication device according to the object identification information, thereby realizing the communication protocol conversion between the first conversion communication protocol and the second conversion communication protocol.

[0038] In the above embodiment, the protocol conversion device obtains conversion configuration data corresponding to the first conversion communication device that supports the first conversion communication protocol, and establishes a communication connection with the second conversion communication device that supports the second conversion communication protocol, wherein the conversion configuration data includes the first conversion communication protocol information and the object identification information. In this way, the second conversion communication device can obtain the object identification information of the first conversion communication device from the protocol conversion device based on the second conversion communication protocol, and establish a communication connection with the first conversion communication device corresponding to the object identification information, thereby realizing conversion between different first conversion communication protocols and second conversion communication protocols, with higher flexibility and wider adaptability, reducing development difficulty and reducing development costs.

[0039] In some embodiments, see Figure 4 , the object identification information includes an object identifier and an association relationship between the object identifier and a designated bit of the first conversion communication protocol instruction;

[0040] The step S103 of establishing a communication connection with a second conversion communication device supporting a second conversion communication protocol, so that the second conversion communication device acquires the object identification information based on the second conversion communication protocol, and establishes a communication connection with the first conversion communication device corresponding to the object identification information, includes:

[0041] S1031, establish a communication connection with a second conversion communication device that supports a second conversion communication protocol, so that the second conversion communication device obtains the association relationship based on the second conversion communication protocol, determines an object identifier according to the data value of the designated bit of the first conversion communication protocol instruction in the association relationship, and establishes a communication connection with the first conversion communication device represented by the object identifier.

[0042] The designated bit of the first conversion communication protocol instruction may refer to the designated data bit of the first conversion communication protocol data transmitted by the first conversion communication protocol. The association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction refers to the mapping relationship between the data value of the object identifier of the first communication conversion device and the first conversion communication protocol data. By setting the association relationship, the protocol conversion device can read the data value of the designated data bit of the first conversion communication protocol data through the first conversion communication protocol, so that the data value of the object identifier of the first conversion communication device can be obtained according to the association relationship. For example: the protocol conversion device reads and stores the data value of the designated bit of the first conversion communication protocol instruction, associates the data value with the data value of the object identifier of the first conversion communication device, and thus obtains the data value of the object identifier of the first conversion communication device; the second conversion communication device can read the data value of the object identifier of the first conversion communication device from the protocol conversion device through the second conversion communication protocol, and indirectly obtains the data value of the designated bit of the first conversion communication protocol instruction according to the association relationship, so as to establish a communication connection of the first conversion communication device corresponding to the object identification information, and achieve conversion between the first conversion communication protocol and the second conversion communication protocol.

[0043] In the above embodiment, when the protocol conversion device implements conversion between the first conversion communication protocol and the second conversion communication protocol, the conversion configuration data of the first conversion communication device includes the configuration of the association relationship between the object identifier of the first conversion communication device and the designated bit of the first conversion communication protocol instruction. In this way, the protocol conversion device can obtain the data value of the object identifier of the first conversion communication device by reading the data value of the designated bit of the first conversion communication protocol instruction, thereby not only completing the conversion between the first conversion communication protocol and the second conversion communication protocol, but also realizing dynamic configuration of the object identifiers of different conversion communication devices. Compared with the method of statically configuring the relevant information of the object identifier in the protocol conversion device, the dynamic configuration method is more flexible and can greatly reduce manpower and material resources, save development costs, and reduce development difficulty.

[0044] Optionally, the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction includes a mapping relationship between the object identifier and the designated bit of the register address defined by the first conversion communication protocol.

[0045] In this embodiment, the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction refers to the association relationship between the object identifier and the address set in the register address of the first conversion communication protocol instruction. In an optional specific example, the first conversion communication protocol is the Modbus-RTU serial port communication protocol, and the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction refers to the association between the object identifier and the register address 0 defined by the Modbus-RTU serial port communication protocol. The second conversion communication device establishes a communication connection with the protocol conversion device through the second conversion communication protocol, so that the second conversion communication device obtains the association relationship in the object identification information from the protocol conversion device. The protocol conversion device reads the data value of the register address 0 defined by the first conversion communication protocol through the Modbus-RTU serial port communication protocol, and uses the data value as the data value of the object identifier, thereby obtaining the data value of the object identifier of the first conversion communication device; the second conversion communication device can read the data value of the object identifier from the protocol conversion device through the second conversion communication protocol, thereby indirectly obtaining the data value of the register address 0 defined by the Modbus-RTU serial port communication protocol, and establishes a communication connection with the first conversion communication device corresponding to the data value of the object identifier, thereby achieving conversion between the first conversion communication protocol and the second conversion communication protocol.

[0046] In another optional specific example, the first conversion communication protocol is the Modbus-TCP Ethernet communication protocol, and the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction refers to the association between the object identifier and the register address 0 defined by the Modbus-RTU Ethernet communication protocol. The second conversion communication device establishes a communication connection with the protocol conversion device through the second conversion communication protocol, so that the second conversion communication device obtains the association relationship in the object identification information from the protocol conversion device. The protocol conversion device reads the data value of the register address 0 defined by the Modbus-TCP Ethernet communication protocol through the Modbus-TCP Ethernet communication protocol, and uses the data value as the data value of the object identifier, thereby obtaining the data value of the object identifier of the first conversion communication device; the second conversion communication device can read the data value of the object identifier from the protocol conversion device through the second conversion communication protocol, thereby indirectly obtaining the data value of the register address 0 defined by the Modbus-TCP Ethernet communication protocol of the first conversion communication conversion device, and realizes the establishment of the communication connection of the first conversion communication device corresponding to the data value of the object identifier, so as to achieve the conversion between the first conversion communication protocol and the second conversion communication protocol.

[0047] In the above embodiment, the association relationship between the object identifier in the object identification information and the designated bit of the first conversion communication protocol instruction includes a mapping relationship between the object identifier and the designated bit of the register address defined by the first conversion communication protocol, providing a specific implementation method for associating the object identifier with the first conversion communication protocol data, and the register reading speed is fast, which is beneficial to improving the conversion efficiency between the first conversion communication protocol and the second conversion communication protocol.

[0048] In some embodiments, the first converted communication protocol includes the first communication protocol and / or the second communication protocol, and the second converted communication protocol is a third communication protocol;

[0049] The obtaining of conversion configuration data corresponding to the first conversion communication device includes:

[0050] Acquire conversion configuration data corresponding to a first conversion communication device supporting a first communication protocol, and / or acquire conversion configuration data corresponding to a first conversion communication device supporting a second communication protocol.

[0051] The first conversion communication protocol may be a communication protocol that is selected through dynamic configuration and needs to be converted to and from the second conversion communication protocol, such as the first conversion communication protocol may be the first communication protocol or the second communication protocol. Secondly, the first conversion communication protocol may also be a plurality of communication protocols that are selected through dynamic configuration and need to be converted to and from the second conversion communication protocol, such as the first conversion communication protocol may include the first communication protocol and the second communication protocol. Accordingly, the conversion configuration data of the first conversion communication device that needs to be converted obtained by the protocol converter may include the conversion configuration data corresponding to the first conversion communication device that supports the first communication protocol, and / or the conversion configuration data corresponding to the first conversion communication device that supports the second communication protocol.

[0052] In the above embodiments, the protocol conversion device can realize conversion between different first conversion communication protocols and second conversion communication protocols based on dynamic configuration, and can support conversion between multiple different first conversion communication protocols and second conversion communication protocols, so that communication devices that do not support the second conversion communication protocol can be connected to the network through the second conversion communication protocol through protocol conversion, which facilitates the unified management of access devices by terminals and has a wide range of applications.

[0053] In some embodiments, the acquiring of conversion configuration data corresponding to a first conversion communication device supporting a first communication protocol includes:

[0054] Based on the conversion configuration interface, a selection instruction of the serial port communication protocol is obtained, and according to the selection instruction, first conversion communication protocol information is obtained as the serial port communication protocol;

[0055] Based on the conversion configuration interface, a first object identifier of the serial communication device to be converted, a data type of the first object identifier, a read / write property of the first object identifier, and an association relationship between the first object identifier and a designated bit of a serial communication protocol instruction are obtained.

[0056] Wherein, the acquisition of conversion configuration data can be completed by a protocol conversion configuration client installed on the protocol conversion device or a configuration terminal connected to the protocol conversion device. In the case where the protocol conversion configuration client is installed on the configuration terminal to provide the user with conversion configuration, the configuration terminal can send the received conversion configuration data to the protocol conversion device according to the user's configuration operation. The protocol conversion configuration client provides a conversion configuration interface, and the user can enter the conversion configuration interface to enter the relevant configuration information. Optionally, the conversion configuration interface is provided with a candidate for the first conversion communication protocol, and the candidate can be provided in different forms such as a drop-down menu, a list or a list. The user can obtain the first conversion communication protocol information by selecting one of the options. In this embodiment, the candidate for the first conversion communication protocol includes a serial communication protocol, and the protocol converter obtains a selection instruction for the serial communication protocol, and determines that the first conversion communication protocol information is a serial communication protocol according to the selection instruction.

[0057] Optionally, the conversion configuration interface is provided with an input area for the first object identifier, and the user can fill in the first object identifier of the serial communication device that needs to be converted into the second conversion communication protocol in the input area to achieve the setting of the first object identifier. Optionally, the conversion configuration interface is provided with options for the data type of the first object identifier and / or options for the read-write properties of the first object identifier. The options for the data type may include integer type, character type, etc., and the options for the read-write properties may include read-only, readable and writable, etc. Optionally, the conversion configuration interface is provided with options for associating the first object identifier with the optional number of bits of the serial communication protocol instruction, and the user can select a data bit from the optional number of bits to set the specified bit.

[0058] In the above embodiment, through the conversion configuration interface, the user can be provided with the ability to complete the conversion between different first conversion communication protocols to second conversion communication protocols in the communication protocol conversion from a visual perspective, and to complete the configuration of the first conversion communication device with different object identifiers accessing the network with the second conversion communication protocol through protocol conversion; secondly, the conversion configuration interface can provide guidance for the user to configure the conversion configuration data, thereby simplifying the difficulty of the user's configuration operation and improving the adaptability of the communication protocol conversion method.

[0059] In some embodiments, obtaining conversion configuration data corresponding to the first conversion communication device supporting the second communication protocol includes:

[0060] Acquire a selection instruction of the Ethernet communication protocol based on the conversion configuration interface, and acquire first conversion communication protocol information as the Ethernet communication protocol according to the selection instruction;

[0061] Based on the conversion configuration interface, a second object identifier corresponding to the Ethernet communication device to be converted, a data type of the second object identifier, a read-write attribute of the second object identifier, and an association relationship between the second object identifier and a designated bit of an Ethernet communication protocol instruction are obtained.

[0062] Wherein, the acquisition of conversion configuration data can be completed by a protocol conversion configuration client installed on the protocol conversion device or a configuration terminal connected to the protocol conversion device. In the case where the protocol conversion configuration client is installed on the configuration terminal to provide the user with conversion configuration, the configuration terminal can send the received conversion configuration data to the protocol conversion device according to the user's configuration operation. The protocol conversion configuration client provides a conversion configuration interface, and the user can enter the conversion configuration interface to enter the relevant configuration information. For example, the conversion configuration interface is provided with a candidate for the first conversion communication protocol, and the candidate can be provided in different forms such as a drop-down menu, a checklist or a list. The user can obtain the first conversion communication protocol information by selecting one of the options. In this embodiment, the candidate for the first conversion communication protocol includes the Ethernet communication protocol, and the protocol converter obtains a selection instruction for the Ethernet communication protocol, and determines that the first conversion communication protocol information is the Ethernet communication protocol according to the selection instruction.

[0063] Optionally, the conversion configuration interface is provided with an input area for the first object identifier, and the user can fill in the first object identifier of the Ethernet communication device that needs to be converted into the second conversion communication protocol in the input area to achieve the setting of the first object identifier. Optionally, the conversion configuration interface is provided with options for the data type of the first object identifier and / or options for the read-write properties of the first object identifier. The options for the data type may include integer type, character type, etc., and the options for the read-write properties may include read-only, readable and writable, etc. Optionally, the conversion configuration interface is provided with options for associating the first object identifier with the optional number of bits of the Ethernet communication protocol instruction, and the user can select a data bit from the optional number of bits to set the specified bit.

[0064] Optionally, the candidate items for the first conversion communication protocol in the conversion configuration interface may include multiple communication protocols such as serial communication protocol, Ethernet communication protocol, etc. as candidate items. Accordingly, when the user performs configuration operations based on the conversion configuration interface, when a different communication protocol is selected as the first conversion communication protocol to be converted, the conversion configuration interface can be switched to a configuration sub-page containing configuration options matching the selected first conversion communication protocol based on the selected operation, so as to facilitate the targeted design of configuration sub-pages according to different communication protocols that need to be converted, making the conversion configuration page more intuitive and indirect, so as to better achieve the purpose of simplifying user configuration operations.

[0065] In the above embodiment, through the conversion configuration interface, the user can be provided with the ability to complete the conversion between different first conversion communication protocols to second conversion communication protocols in the communication protocol conversion from a visual perspective, and to complete the configuration of the first conversion communication device with different object identifiers accessing the network with the second conversion communication protocol through protocol conversion; secondly, the conversion configuration interface can provide guidance for the user to configure the conversion configuration data, thereby simplifying the difficulty of the user's configuration operation and improving the adaptability of the communication protocol conversion method.

[0066] In some embodiments, after obtaining the conversion configuration data corresponding to the first conversion communication device supporting the first conversion communication protocol, the method further includes:

[0067] decrypting the conversion configuration data;

[0068] Performing data verification on the decrypted conversion configuration data;

[0069] If the decryption fails or the data verification is unsuccessful, the method returns to the step of obtaining the conversion configuration data corresponding to the first conversion communication device supporting the first conversion communication protocol, and / or returns a failure prompt message.

[0070] In the process of saving the conversion configuration data of the first conversion communication device in the protocol converter through the visual interface, the communication data is encrypted. After receiving the conversion configuration data, the protocol converter first decrypts the conversion configuration data to ensure the security of data communication. In addition, the conversion configuration data includes a check code, and the protocol conversion device decrypts the conversion configuration data and then checks it to ensure the correctness of data communication.

[0071] See also Figure 5 On the other hand, the embodiment of the present application further provides a communication protocol conversion method, which is applied to a protocol conversion system, wherein the protocol conversion system includes a first conversion communication device, a protocol converter, and a second conversion communication device. The communication protocol conversion method may include the following steps:

[0072] S201, a protocol conversion device obtains conversion configuration data corresponding to a first conversion communication device that supports a first conversion communication protocol; the conversion configuration data includes first conversion communication protocol information and object identification information.

[0073] The protocol conversion device may include a display device and a protocol converter installed with a protocol conversion configuration client for configuring the first conversion communication device. The protocol conversion device may obtain the conversion configuration data by the protocol conversion device opening the protocol conversion configuration client through the user, and obtaining the conversion configuration data based on the configuration operation in the conversion configuration interface. Optionally, the configuration operation may include the user selecting the first conversion communication protocol to be selected in the conversion configuration interface, inputting the object identifier corresponding to the first conversion communication device, setting the type data of the object identifier, setting the read and write properties of the object identifier, and setting the association relationship between the object identifier and the specified bit of the first conversion communication protocol instruction.

[0074] In other embodiments, the protocol conversion device is communicatively connected to a configuration terminal, the configuration terminal includes a display device and is installed with a protocol conversion configuration client for configuring the first conversion communication device, and the user performs configuration operations in the conversion configuration interface through the protocol conversion configuration client on the configuration terminal, so that the configuration terminal obtains the conversion configuration data and sends it to the protocol conversion device.

[0075] It should be noted that the protocol conversion configuration client can be an application client (such as a mobile phone APP), a web client, a mini program, etc., and there is no restriction here.

[0076] S203: The protocol conversion device establishes a communication connection with a second conversion communication device that supports a second conversion communication protocol.

[0077] The protocol conversion device is a protocol conversion device that supports a second conversion communication protocol. In an optional example, the second conversion communication protocol is an SNMP communication protocol, and the protocol conversion device is an SNMP protocol converter.

[0078] S205: The second conversion communication device obtains the object identification information from the protocol conversion device, and establishes a communication connection with the first conversion communication device based on the object identification information.

[0079] The second conversion communication device establishes a data communication connection with the protocol conversion device through the second conversion communication protocol, obtains the object identification information in the conversion configuration data from the protocol conversion device, establishes a communication connection with the first conversion communication device according to the object identification information, and realizes the communication protocol conversion between the first conversion communication protocol and the second conversion communication protocol.

[0080] In the above embodiment, the protocol conversion device obtains conversion configuration data corresponding to the first conversion communication device that supports the first conversion communication protocol, and establishes a communication connection with the second conversion communication device that supports the second conversion communication protocol, wherein the conversion configuration data includes the first conversion communication protocol information and the object identification information. In this way, the second conversion communication device can obtain the object identification information of the first conversion communication device from the protocol conversion device based on the second conversion communication protocol, and establish a communication connection with the first conversion communication device corresponding to the object identification information, thereby realizing the conversion between different first conversion communication protocols and second conversion communication protocols through dynamic configuration, which has higher flexibility and wider adaptability, reduces development difficulty, and reduces development costs.

[0081] In some embodiments, the communication protocol conversion method further includes:

[0082] The configuration terminal obtains a selection instruction for the first conversion communication protocol based on the configuration operation received on the conversion configuration interface, determines the first conversion communication protocol information according to the selection instruction, obtains the object identifier of the first conversion communication device and the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction;

[0083] The configuration terminal forms conversion configuration data according to the first conversion communication protocol information and the association relationship and sends the conversion configuration data to the protocol conversion device.

[0084] In this embodiment, the protocol conversion system includes a configuration terminal that is connected to the protocol conversion device in communication and physically independent of the protocol conversion device. The protocol conversion configuration client provides a conversion configuration interface, and the user can input relevant configuration information by performing configuration operations in the conversion configuration interface. For example, the conversion configuration interface is provided with a candidate for the first conversion communication protocol, and the candidate can be provided in different forms such as a drop-down menu, a list or a list. The user can obtain the first conversion communication protocol information by selecting one of the options. Optionally, the conversion configuration interface is provided with an input area for the first object identifier, and the user can fill in the first object identifier of the serial communication device that needs to be converted into the second conversion communication protocol in the input area to achieve the setting of the first object identifier. Optionally, the conversion configuration interface is provided with a candidate for the data type of the first object identifier and / or a candidate for the read-write attribute of the first object identifier. The candidate for the data type can include integer type, character type, etc., and the candidate for the read-write attribute can include read-only, read-write, etc. Optionally, the conversion configuration interface is provided with a candidate item for associating the first object identifier with an optional number of bits of the serial communication protocol instruction, and the user can select a data bit from the optional number of bits to set the designated bit.

[0085] In the above embodiment, the configuration terminal can be any smart terminal that can load the protocol conversion configuration client and provide user configuration operations, such as a mobile phone, a personal computer, etc., so that users can use existing smart terminals to complete the configuration of protocol conversion and improve ease of use; through the conversion configuration interface, users can be provided with the ability to complete the conversion between different first conversion communication protocols to second conversion communication protocols in the communication protocol conversion from a visual perspective, and to complete the configuration of the first conversion communication device with different object identifiers accessing the network through the second conversion communication protocol through protocol conversion; secondly, the conversion configuration interface can provide guidance for users to configure the conversion configuration data, thereby simplifying the difficulty of user configuration operations and improving the adaptability of the communication protocol conversion method.

[0086] In some embodiments, the second conversion communication device obtains the object identification information from the protocol conversion device, and establishes a communication connection with the first conversion communication device based on the object identification information, including:

[0087] The second conversion communication device establishes a communication connection with the protocol conversion device via the second conversion communication protocol;

[0088] The second conversion communication device reads the data value of the designated bit of the first conversion communication protocol instruction from the protocol conversion device, obtains the data value of the object identifier according to the data value of the designated bit of the first conversion communication protocol instruction and the association relationship, and realizes communication with the first conversion communication device.

[0089] By setting the association relationship, the protocol conversion device can read and store the data value of the designated data bit of the first conversion communication protocol data through the first conversion communication protocol, thereby providing the second conversion communication device with the data value of the designated bit and obtaining the data value of the object identifier of the first conversion communication device according to the association relationship. For example, the protocol conversion device reads the data value of the designated bit of the first conversion communication protocol instruction of the first conversion communication device through the first conversion communication protocol, associates the data value with the data value of the object identifier, thereby obtaining the data value of the object identifier of the first conversion communication device; the second conversion communication device can read the data value of the object identifier from the protocol conversion device through the second conversion communication protocol, indirectly obtain the data value of the designated bit of the first conversion communication protocol instruction according to the association relationship, and realize the second conversion communication device to establish a communication connection with the first conversion communication device corresponding to the object identification information, thereby achieving conversion between the first conversion communication protocol and the second conversion communication protocol.

[0090] In the above embodiment, when the protocol conversion device implements conversion between the first conversion communication protocol and the second conversion communication protocol, the conversion configuration data of the first conversion communication device includes the configuration of the association relationship between the object identifier of the first conversion communication device and the designated bit of the first conversion communication protocol instruction. In this way, the protocol conversion device can obtain the data value of the object identifier of the first conversion communication device by reading the data value of the designated bit of the first conversion communication protocol instruction, thereby not only completing the conversion between the first conversion communication protocol and the second conversion communication protocol, but also realizing dynamic configuration of the object identifiers of different conversion communication devices. Compared with the method of statically configuring the relevant information of the object identifier in the protocol conversion device, the dynamic configuration method is more flexible and can greatly reduce manpower and material resources, save development costs, and reduce development difficulty.

[0091] In order to have a more holistic and complete understanding of the communication protocol conversion method provided in the embodiment of the present application, please refer to Figure 6 and Figure 7 , the following is an example in which the protocol conversion device is an SNMP protocol converter, the first conversion communication device includes a serial communication device and an Ethernet communication device, and the second conversion communication device is an SNMP communication device. The communication protocol conversion method includes the following steps:

[0092] S11, the serial communication device is connected to the SNMP protocol converter in a serial communication mode, and / or the Ethernet communication device is connected to the SNMP protocol converter in an Ethernet communication mode;

[0093] S12, the host computer obtains the conversion configuration data through the user's configuration operation on the protocol conversion configuration client and sends it to the SNMP protocol converter; wherein the protocol conversion configuration client may include different configuration methods such as application client, web client, applet, etc.; the host computer can be any smart terminal that can load the protocol conversion configuration client and provide user configuration operations, such as a mobile phone, a personal computer, etc.

[0094] S13, the SNMP protocol converter obtains and stores conversion configuration data from the host computer; the conversion configuration data includes but is not limited to the communication protocol to be converted, the object identifier, the data type, the read-write attribute, and the association between the object identifier and the communication protocol register address to be converted, and the conversion configuration data can be adjusted based on actual application requirements;

[0095] S14, the SNMP communication device reads the data value of the object identifier from the SNMP protocol converter through the SNMP protocol, and indirectly obtains the data value of the communication protocol register address that needs to be converted according to the association relationship, so as to realize the conversion between the SNMP protocol and the communication protocol that needs to be converted.

[0096] For example, if the communication protocol to be converted is a serial communication protocol, it is configured through the serial port. The host computer and the SNMP protocol converter are connected through the serial port in hardware. The configuration client is opened on the host computer. Through the visual interface, the communication protocol to be converted into the SNMP protocol is selected as the serial communication protocol. At the same time, the OID information of the serial communication device is filled in, such as: OID data type, OID read and write properties, the mapping relationship between OID and serial communication protocol data, etc. After the configuration is completed, the configuration information is saved to the SNMP protocol converter through the serial port. In a specific example, the configuration operation can select the communication protocol to be converted as the Modbus-RTU serial port protocol, fill in an OID1 information, the data type is an integer, the read-write attribute is read-only, and the mapping relationship is to associate OID1 with Modbus-RTU register address 0. The SNMP protocol converter reads the data of the register address 0 of the serial communication device through the Modbus-RTU protocol, and the read register value is saved inside the SNMP protocol converter. This register value is used as the data value of OID1. The SNMP communication device can read the data value of OID1 through the SNMP protocol, and indirectly obtain the data value of the Modbus-RTU protocol register address 0 of the serial communication device, thereby achieving the conversion between the serial communication protocol and the SNMP protocol.

[0097] For another example, if the communication protocol to be converted is the Ethernet communication protocol, it is configured through Ethernet, the host computer and the SNMP protocol converter are connected through Ethernet in hardware, and the web client is opened on the host computer. By accessing the IP address of the SNMP protocol converter, the communication protocol to be converted into the SNMP protocol is selected in the web visual interface, and the OID information is filled in, such as: OID data type, OID read and write attributes, the mapping relationship between OID and the communication protocol data to be converted, etc. After the configuration is completed, the configured information is saved to the SNMP protocol converter 3 through Ethernet. In a specific example, the configuration operation may include selecting the communication protocol to be converted as the Modbus-TCP serial port protocol, filling in an OID1 information, the data type is an integer, the read-write attribute is read-only, and the mapping relationship is to associate OID1 with Modbus-TCP register address 0. The SNMP protocol converter reads the data of register address 0 of Ethernet communication device 1 through the Modbus-TCP protocol, and the read register value is saved inside the SNMP protocol converter 3. This register value is used as the data value of OID1. Then, the SNMP communication device 4 can read the data value of OID1 through the SNMP protocol, and indirectly obtain the data value of the Modbus-TCP protocol register address 0 of the Ethernet communication device 1, thereby achieving the conversion between the Ethernet communication protocol and the SNMP protocol.

[0098] By configuring the mapping relationship between the object identifier and the communication protocol data that needs to be converted, when the user needs to change the OID configuration, he only needs to change the visual interface to change the internal information of the SNMP protocol converter, thereby achieving the purpose of dynamic configuration without having to change the software again.

[0099] It should be noted that the communication protocol conversion method can have multiple implementation schemes, such as OID dynamic configuration, conversion between serial communication protocol and SNMP communication protocol, and conversion between Ethernet communication protocol and SNMP communication protocol. For devices that need to be converted into SNMP protocol, that is, they support serial port interface and Ethernet interface, and the OID is clear and will not be changed, the implementation scheme of conversion between serial communication protocol and SNMP communication protocol and Ethernet communication protocol combination can be applied; for devices that need to be converted into SNMP protocol, when only serial port interface is supported but not Ethernet interface, the implementation scheme of OID dynamic configuration and conversion between serial communication protocol and SNMP communication protocol combination can be applied; for devices that need to be converted into SNMP protocol, when only Ethernet interface is supported but not serial port interface, the implementation scheme of OID dynamic configuration and conversion between Ethernet communication protocol and SNMP communication protocol combination can be applied; for devices that need to be converted into SNMP protocol, when only Ethernet interface is supported but not serial port interface, the implementation scheme of OID dynamic configuration and conversion between Ethernet communication protocol and SNMP communication protocol combination can be applied; for devices that need to be converted into SNMP protocol, when both serial port interface and Ethernet interface are supported, the implementation scheme of OID dynamic configuration, conversion between serial communication protocol and SNMP communication protocol and conversion between Ethernet communication protocol and SNMP communication protocol combination can be applied.

[0100] The communication protocol conversion method provided in the above embodiment, on the one hand, solves the conversion problem between the SNMP protocol and other network communication protocols, and connects serial communication devices and / or Ethernet communication devices that do not support the SNMP protocol to the network by converting to the SNMP protocol, which is convenient for terminal management, has a wider application coverage and more extensive application scenarios; on the other hand, the OID can be configured according to different needs, and the OID is bound to the communication protocol data to form a mapping relationship. Compared with the current SNMP OID static configuration method, the dynamic configuration method is more flexible, can greatly reduce manpower and material resources, save development costs, and reduce development difficulty.

[0101] See also Figure 8On the other hand, an embodiment of the present application provides a communication protocol conversion device, including: a configuration module 111, used to obtain conversion configuration data corresponding to a first conversion communication device that supports a first conversion communication protocol; the conversion configuration data includes first conversion communication protocol information and object identification information; a conversion module 112, used to establish a communication connection with a second conversion communication device that supports a second conversion communication protocol, so that the second conversion communication device obtains the object identification information based on the second conversion communication protocol and establishes a communication connection with the first conversion communication device corresponding to the object identification information.

[0102] Optionally, the object identification information includes an object identifier and an association between the object identifier and a designated bit of the first conversion communication protocol instruction; the conversion module 112 is also used to establish a communication connection with a second conversion communication device that supports a second conversion communication protocol, so that the second conversion communication device obtains the association based on the second conversion communication protocol, determines the object identifier according to the data value of the designated bit of the first conversion communication protocol instruction in the association, and establishes a communication connection with the first conversion communication device represented by the object identifier.

[0103] Optionally, the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction includes a mapping relationship between the object identifier and the designated bit of the register address defined by the first conversion communication protocol.

[0104] Optionally, the first conversion communication protocol includes a first communication protocol and / or a second communication protocol, and the second conversion communication protocol is a third communication protocol; the configuration module 111 is also used to obtain conversion configuration data corresponding to a first conversion communication device supporting the first communication protocol, and / or to obtain conversion configuration data corresponding to a first conversion communication device supporting the second communication protocol.

[0105] Optionally, the configuration module 111 is also used to obtain a selected instruction of the serial port communication protocol based on a conversion configuration interface, and obtain first conversion communication protocol information to the serial port communication protocol according to the selected instruction; based on the conversion configuration interface, obtain a first object identifier of the serial port communication device to be converted, a data type of the first object identifier, read and write properties of the first object identifier, and an association relationship between the first object identifier and a specified bit of the serial port communication protocol instruction.

[0106] Optionally, the configuration module 111 is further used to obtain a selection instruction of the Ethernet communication protocol based on a conversion configuration interface, and obtain first conversion communication protocol information to the Ethernet communication protocol according to the selected instruction; based on the conversion configuration interface, obtain a second object identifier corresponding to the Ethernet communication device to be converted, a data type of the second object identifier, read and write properties of the second object identifier, and an association relationship between the second object identifier and a designated bit of the Ethernet communication protocol instruction.

[0107] It can be understood by those skilled in the art that Figure 8 The structure of the communication protocol conversion device does not constitute a limitation on the communication protocol conversion device, and the various modules can be implemented in whole or in part by software, hardware, and a combination thereof. The above modules can be embedded in or independent of the controller in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the controller can call and execute the operations corresponding to the above modules. In other embodiments, the communication protocol conversion device may include more or fewer modules than those shown in the figure.

[0108] See also Fig. 9 On the other hand, an embodiment of the present application further provides a protocol conversion device, including a memory 211 and a processor 212, wherein the memory 211 stores a computer program, and when the computer program is executed by the processor, the processor 212 executes the steps of the communication protocol conversion method provided in any of the above embodiments of the present application.

[0109] On the other hand, an embodiment of the present application also provides a communication protocol conversion system, including a first conversion communication device, a second conversion communication device and the protocol conversion device described in the embodiment of the present application, wherein the first conversion communication device includes a serial communication device and / or an Ethernet communication device, and the second conversion communication device includes an SNMP communication device.

[0110] On the other hand, an embodiment of the present application further provides a storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the communication protocol conversion method provided in any of the above embodiments of the present application.

[0111] Those skilled in the art can understand that all or part of the processes in the methods provided in the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0112] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. The protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A communication protocol conversion method, applied to a protocol conversion device, characterized in that: include: Acquire conversion configuration data corresponding to a first conversion communication device supporting a first conversion communication protocol obtained based on an input operation of a configuration interface of a protocol conversion configuration client; the conversion configuration data includes first conversion communication protocol information and object identification information; wherein the object identification information includes an object identifier and an association relationship between the object identifier and a designated bit of a first conversion communication protocol instruction; Establishing a communication connection with a second conversion communication device supporting a second conversion communication protocol, so that the second conversion communication device obtains the association relationship based on the second conversion communication protocol, determines an object identifier according to the data value of the designated bit of the first conversion communication protocol instruction in the association relationship, and establishes a communication connection with the first conversion communication device represented by the object identifier; The second conversion communication device is a device that supports the second conversion communication protocol and needs to establish a communication connection with the first conversion communication device that supports the first conversion communication protocol.

2. The communication protocol conversion method according to claim 1, characterized in that: The association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction includes a mapping relationship between the object identifier and the designated bit of the register address defined by the first conversion communication protocol.

3. The communication protocol conversion method according to claim 1, characterized in that: The first conversion communication protocol includes the first communication protocol and / or the second communication protocol, and the second conversion communication protocol is the third communication protocol; The obtaining of conversion configuration data corresponding to the first conversion communication device includes: Acquire conversion configuration data corresponding to a first conversion communication device supporting a first communication protocol, and / or acquire conversion configuration data corresponding to a first conversion communication device supporting a second communication protocol.

4. The communication protocol conversion method according to claim 3, characterized in that: The obtaining of conversion configuration data corresponding to a first conversion communication device supporting a first communication protocol includes: Based on the conversion configuration interface, a selection instruction of the serial port communication protocol is obtained, and according to the selection instruction, first conversion communication protocol information is obtained as the serial port communication protocol; Based on the conversion configuration interface, a first object identifier of the serial communication device to be converted, a data type of the first object identifier, a read / write property of the first object identifier, and an association relationship between the first object identifier and a designated bit of the serial communication protocol instruction are obtained.

5. The communication protocol conversion method according to claim 3, characterized in that: The obtaining of conversion configuration data corresponding to the first conversion communication device supporting the second communication protocol includes: Acquire a selection instruction of the Ethernet communication protocol based on the conversion configuration interface, and acquire first conversion communication protocol information as the Ethernet communication protocol according to the selection instruction; Based on the conversion configuration interface, a second object identifier corresponding to the Ethernet communication device to be converted, a data type of the second object identifier, a read-write attribute of the second object identifier, and an association relationship between the second object identifier and a designated bit of an Ethernet communication protocol instruction are obtained.

6. A communication protocol conversion method, applied to a protocol conversion system, characterized in that: include: The protocol conversion device obtains conversion configuration data corresponding to the first conversion communication device supporting the first conversion communication protocol obtained based on the input operation of the configuration interface of the protocol conversion configuration client; the conversion configuration data includes the first conversion communication protocol information and object identification information; wherein the object identification information includes an object identifier and an association relationship between the object identifier and a specified bit of the first conversion communication protocol instruction; The protocol conversion device establishes a communication connection with a second conversion communication device supporting a second conversion communication protocol; The second conversion communication device obtains the association relationship from the protocol conversion device, determines the object identification information according to the data value of the designated bit of the first conversion communication protocol instruction in the association relationship, and establishes a communication connection with the first conversion communication device based on the object identification information; wherein the second conversion communication device is a device that supports the second conversion communication protocol and needs to establish a communication connection with the first conversion communication device that supports the first conversion communication protocol.

7. The communication protocol conversion method according to claim 6, characterized in that: Also includes: The configuration terminal obtains a selection instruction for the first conversion communication protocol based on the configuration operation received by the configuration interface, determines the first conversion communication protocol information according to the selection instruction, obtains the object identifier of the first conversion communication device and the association relationship between the object identifier and the designated bit of the first conversion communication protocol instruction; The configuration terminal forms conversion configuration data according to the first conversion communication protocol information and the association relationship and sends the conversion configuration data to the protocol conversion device.

8. A communication protocol conversion device, characterized in that: include: A configuration module, used to obtain conversion configuration data corresponding to a first conversion communication device supporting a first conversion communication protocol obtained based on an input operation of a configuration interface of a protocol conversion configuration client; the conversion configuration data includes first conversion communication protocol information and object identification information; wherein the object identification information includes an object identifier and an association relationship between the object identifier and a specified bit of a first conversion communication protocol instruction; a conversion module, configured to establish a communication connection with a second conversion communication device supporting a second conversion communication protocol, so that the second conversion communication device acquires the association relationship based on the second conversion communication protocol, determines an object identifier according to the data value of the designated bit of the first conversion communication protocol instruction in the association relationship, and establishes a communication connection with the first conversion communication device represented by the object identifier; The second conversion communication device is a device that supports the second conversion communication protocol and needs to establish a communication connection with the first conversion communication device that supports the first conversion communication protocol.

9. A protocol conversion device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.

10. A communication protocol conversion system, characterized in that: It comprises a first conversion communication device, a second conversion communication device and the protocol conversion device as claimed in claim 9, wherein the first conversion communication device comprises a serial communication device and / or an Ethernet communication device, and the second conversion communication device comprises an SNMP communication device.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.