| The development of electronic technology and network technology accelerates the process of the ship’s automation.Embedded technology takes application as the center,based on computer technology and hardware and software could be cut to meet the strict requirements of system in function,reliability,cost and volume,which has wide application prospect in the ship’s engine room monitoring and alarm system.This paper analyzes the development status and trend of the engine room monitoring-alarm system,then propose the embedded design based on Ethernet and CAN two-stage network.This design takes into consideration both of the underlying high real time capability and the upper large capacity data transmission.Meanwhile,the uninterruptible power supply module is designed for that 24V emergency power can supply power for system automatically when the main switch board comes into failure.This system mainly designs the field Distributed Processing Unit(DPU),the CAN-Ethernet gateway and Extension Alarm Device(EAD).DPUs are distributed at monitoring stations of engine,which is mainly responsible for collection of digital and analog data on the site and drive of movement of the actuator.All of DPU modules use the STM32 microprocessor based on ARM CortexTM-M3 core and realize full dual redundant CAN communication.In the KeilμVision5 software development platform,compose control logic control program in C language,according to the flow chart of control logic control flow chart.In the software system,μC/OSⅡ operating system is transplanted to improve the performance of the performance in real-time and multitasking systemEADs are located at engineers’ cabins,bridge and public places,which are designed for the basic principles of unmanned engine room.EAD,with STM32F103 microprocessor as the core,refers to Kongsberg extension alarm device control interface and makes film with buttons and the display window.The upper Ethernet network are made with EDA,control platform and control platform.CAN-Ethernet gateway is designed for connecting DPU and EAD,and achieving the conversion of CAN to Ethernet.The hardware design is based on W7100A net microprocessor and CAN controller SJA1000.W7100A contains 8051 kernel and the whole hardware TCP/IP protocol,with advantages of stable performance and low cost.After the debugging of each part and overall performance test,DPU and EAD can realize the basic control function,which lays foundation for later improvement of system. |