| As the most centralized part of the entire ship system,the ship engine room is in the center of the ship system.The ship monitoring system monitors and analyzes the operating parameters of all the cabin systems.There are various kinds of cabin parameters in the cabin system,and the sensor devices that collect these parameters often come from different vendors.The communication protocols used by different vendors’ devices are often different from each other,and these protocols are often incompatible with each other,which easily leads to data transmission failure.Therefore,this paper mainly studies and develops a cabin security data acquisition system that supports multiple protocols.To achieve the conversion of many different protocols into a standard and fast communication protocol acquisition system,and to solve the problem of incompatibility of data transmission due to incompatibility of multiple protocols,which will help to facilitate the data collection technology and improve the monitoring efficiency of the engine room.This paper firstly designs the overall solution of the acquisition system based on the requirements analysis and functional positioning of the system.Afterwards,it mainly designs and develops the software and hardware of the multi-protocol engine room security data acquisition system,and tests the system application.This paper develops through single-chip device,collects ship parameters through RS485,RS232 and CAN interface,converts various communication protocols into TCP/IP protocol and uploads it to upper computer to achieve the purpose of monitoring the safety data of engine room.The hardware design is mainly to carry on the circuit principle design to each module of the system and make the collection device,to realize the hardware function of the multi-agreement acquisition system.On the basis of the hardware design,the C language is used for the software program design of each communication module to realize the collection and conversion of ship data.Finally,the terminal test software is designed to test and practically debug the system.The engine room security data acquisition system that can support multi-protocol is with clear structure,good versatility and scalability,after the system debugging and experiment,the data acquisition system can transfer MODBUS,protocol 103,CAN bus protocol into TCP / IP protocol and upload to the host computer,which can monitor and alarm cabin parameters,which has practical significance and promotion value in improving the safety and security of ship cabins. |