Protocol conversion method and device

A protocol conversion and protocol technology, applied in the field of communication network, can solve the problems of single product function and poor reusability, and achieve the effect of flexible configuration, good adaptability and scalability

CN102045334AInactive Publication Date: 2011-05-04BEIJING TELLHOW INTELLIGENT ENG CO LTD
4 Cites 74 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2011-05-04
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention provides a protocol conversion method and device. The protocol conversion device at least comprises a first communication interface and a second communication interface. The protocol conversion method comprises the following steps: binding corresponding protocol types for the communication interfaces, and selecting corresponding decoding and encoding rules from a preset rule base; receiving source communication protocol data from a first communication interface, judging the protocol type of the source communication protocol data, and decoding the source communication protocol data to generate decoded data; and encoding the decoded data to generate target communication data, and sending out the target communication data through a second communication interface. The method and the device in the invention have the advantages that the types of source communication protocols and target communication protocols are unrestricted, thus realizing data conversion for a plurality of the existing standard protocols and manufacturer custom protocols, and solving the problems such as single product function and worse reusability as a result that only specific protocols can be converted in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of communication networks, in particular to a protocol conversion method and device. Background technique

[0002] In the existing communication field, there are many different network communication protocols. Taking the building equipment monitoring system, automatic fire alarm system, safety protection system, energy consumption collection and monitoring system configured in the intelligent building system as examples, due to the composition of the above The manufacturers, production time and application occasions of the various devices of several systems are different, and the communication protocols adopted are also very different. Some devices use Ethernet communication protocols such as Modbus / TCP, Ethernet / IP, BACnet / IP, etc., and some The equipment adopts PROFIBUS, DeviceNet, CANopen, BACnet / MSTP and other fieldbus communication protocols, and some of them adopt private protocols customized by manufa...

Examples

Embodiment Construction

[0024] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0025] refer to figure 1 , shows the flow of the first embodiment of the protocol conversion method of the present invention. In this preferred embodiment, the device for performing protocol conversion includes two or more hardware communication interfaces, and the interface type can be an Ethernet interface, RS232 interface, RS485 interface, USB interface or bus expansion interface, protocol conversion specifically includes the following steps:

[0026] Step S101: Bind corresponding protocol types to each communication interface, and select corresponding decoding rules and encoding rules from a preset rule base.

[0027] For RS485 interface or RS232 interface, Modbus / RTU protocol, Modbus / ASCII protocol, Modbus / MSTP protocol or o...