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
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 2 Figure 3
Abstract
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...